mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
feat: migrated to pnpm
This commit is contained in:
parent
cf39e9ae73
commit
34842d47f8
@ -14,10 +14,7 @@ node_modules
|
|||||||
.vscode/*
|
.vscode/*
|
||||||
!.vscode/launch.json
|
!.vscode/launch.json
|
||||||
|
|
||||||
# Npm & Yarn
|
# Npm
|
||||||
package-lock.json
|
package-lock.json
|
||||||
.yarn/*
|
|
||||||
!.yarn/releases
|
|
||||||
!.yarn/plugins
|
|
||||||
|
|
||||||
benchmark/index.js
|
benchmark/index.js
|
||||||
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -13,26 +13,29 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
|
||||||
- name: Setup node and restore cached dependencies
|
- name: Setup node and restore cached dependencies
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '18'
|
||||||
cache: 'yarn'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: yarn install --prefer-offline
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: yarn lint
|
run: pnpm lint
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: yarn test --ci --coverage
|
run: pnpm test --ci --coverage
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build
|
run: pnpm build
|
||||||
|
|
||||||
- name: ESCheck
|
- name: ESCheck
|
||||||
run: yarn run check
|
run: pnpm run check
|
||||||
|
|
||||||
- name: Publish to Codecov
|
- name: Publish to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
|||||||
11
.github/workflows/codeql.yml
vendored
11
.github/workflows/codeql.yml
vendored
@ -30,17 +30,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
|
||||||
- name: Setup node and restore cached dependencies
|
- name: Setup node and restore cached dependencies
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '18'
|
||||||
cache: 'yarn'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: yarn install --prefer-offline
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v2
|
||||||
|
|||||||
17
.github/workflows/docs.yml
vendored
17
.github/workflows/docs.yml
vendored
@ -16,22 +16,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
- name: Setup pnpm
|
||||||
fetch-depth: 0
|
uses: pnpm/action-setup@v2
|
||||||
|
|
||||||
- name: Setup node and restore cached dependencies
|
- name: Setup node and restore cached dependencies
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '18'
|
||||||
registry-url: 'https://registry.npmjs.org/'
|
cache: 'pnpm'
|
||||||
cache: 'yarn'
|
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: yarn install --prefer-offline
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build specific version
|
- name: Build specific version
|
||||||
run: yarn docs:build --base /${{ github.event.inputs.version }}/
|
run: pnpm docs:build --base /${{ github.event.inputs.version }}/
|
||||||
if: ${{ github.event.inputs.version != 'latest' }}
|
if: ${{ github.event.inputs.version != 'latest' }}
|
||||||
|
|
||||||
- name: Deploy to specific version
|
- name: Deploy to specific version
|
||||||
@ -47,7 +46,7 @@ jobs:
|
|||||||
commit-message: 'Deploy docs for ${{ github.event.inputs.version }}'
|
commit-message: 'Deploy docs for ${{ github.event.inputs.version }}'
|
||||||
|
|
||||||
- name: Build latest
|
- name: Build latest
|
||||||
run: yarn docs:build
|
run: pnpm docs:build
|
||||||
if: ${{ github.event.inputs.version == 'latest' }}
|
if: ${{ github.event.inputs.version == 'latest' }}
|
||||||
|
|
||||||
- name: Deploy to latest
|
- name: Deploy to latest
|
||||||
|
|||||||
13
.github/workflows/publish.yml
vendored
13
.github/workflows/publish.yml
vendored
@ -16,20 +16,23 @@ jobs:
|
|||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
|
||||||
- name: Setup node and restore cached dependencies
|
- name: Setup node and restore cached dependencies
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '18'
|
||||||
registry-url: 'https://registry.npmjs.org/'
|
registry-url: 'https://registry.npmjs.org/'
|
||||||
cache: 'yarn'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: yarn install --prefer-offline
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Publish to NPM
|
- name: Publish to NPM
|
||||||
run: npm publish --access public
|
run: pnpm publish --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,7 +13,6 @@ docs/.vitepress/cache
|
|||||||
# Random
|
# Random
|
||||||
/ignore
|
/ignore
|
||||||
*.log
|
*.log
|
||||||
benchmark/yarn.lock
|
|
||||||
|
|
||||||
# Vscode
|
# Vscode
|
||||||
.vscode/*
|
.vscode/*
|
||||||
@ -21,6 +20,7 @@ benchmark/yarn.lock
|
|||||||
|
|
||||||
# Npm & Yarn
|
# Npm & Yarn
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
benchmark/yarn.lock
|
||||||
.yarn/*
|
.yarn/*
|
||||||
!.yarn/releases
|
!.yarn/releases
|
||||||
!.yarn/plugins
|
!.yarn/plugins
|
||||||
|
|||||||
@ -12,3 +12,4 @@ changelog.md
|
|||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
|
|
||||||
_comparison-benchmark.md
|
_comparison-benchmark.md
|
||||||
|
pnpm-lock.yaml
|
||||||
@ -1,6 +1,5 @@
|
|||||||
// https://github.com/arthurfiorette/prettier-config
|
// https://github.com/arthurfiorette/prettier-config
|
||||||
|
|
||||||
module.exports = require('@arthurfiorette/prettier-config')({
|
module.exports = require('@arthurfiorette/prettier-config')({
|
||||||
tsdoc: true,
|
// Any options here will override @arthurfiorette/prettier-config defaults
|
||||||
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-jsdoc']
|
|
||||||
});
|
});
|
||||||
|
|||||||
147520
.yarn/releases/yarn-1.22.17.cjs
vendored
147520
.yarn/releases/yarn-1.22.17.cjs
vendored
File diff suppressed because one or more lines are too long
4
.yarnrc
4
.yarnrc
@ -1,4 +0,0 @@
|
|||||||
version-git-message: "tag: v%s"
|
|
||||||
version-git-tag: true
|
|
||||||
|
|
||||||
yarn-path ".yarn/releases/yarn-1.22.17.cjs"
|
|
||||||
@ -38,16 +38,17 @@
|
|||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"benchmark": "cd benchmark && yarn start",
|
"benchmark": "cd benchmark && pnpm start",
|
||||||
"build": "sh build/build.sh",
|
"build": "sh build/build.sh",
|
||||||
"check": "sh build/check.sh",
|
"check": "sh build/check.sh",
|
||||||
"docs:build": "vitepress build docs",
|
"docs:build": "vitepress build docs",
|
||||||
"docs:dev": "vitepress dev docs --port 1227",
|
"docs:dev": "vitepress dev docs --port 1227",
|
||||||
"docs:serve": "vitepress serve docs",
|
"docs:serve": "vitepress serve docs",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
|
"preinstall": "npx only-allow pnpm",
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"test": "jest --coverage",
|
"test": "jest --coverage",
|
||||||
"version": "auto-changelog -p && cp CHANGELOG.md docs/src/others/changelog.md git add CHANGELOG.md docs/src/others/changelog.md"
|
"version": "auto-changelog -p && cp CHANGELOG.md docs/src/others/changelog.md && git add CHANGELOG.md docs/src/others/changelog.md"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"colors": "1.4.0"
|
"colors": "1.4.0"
|
||||||
@ -60,6 +61,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@arthurfiorette/prettier-config": "*",
|
"@arthurfiorette/prettier-config": "*",
|
||||||
"@types/jest": "^29.2.4",
|
"@types/jest": "^29.2.4",
|
||||||
|
"@types/node": "^18.13.0",
|
||||||
"@types/webpack": "^5.28.0",
|
"@types/webpack": "^5.28.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
||||||
"@typescript-eslint/parser": "^5.50.0",
|
"@typescript-eslint/parser": "^5.50.0",
|
||||||
@ -85,7 +87,7 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"axios": "^1"
|
"axios": "^1"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@1.22.19",
|
"packageManager": "pnpm@7.27.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
},
|
},
|
||||||
|
|||||||
5354
pnpm-lock.yaml
generated
Normal file
5354
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user