Skip to content

Commit

Permalink
chore: migrate to pnpm (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang committed Jan 22, 2024
1 parent bd9cb6f commit 6986365
Show file tree
Hide file tree
Showing 7 changed files with 10,394 additions and 10,348 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/ci.yml
Expand Up @@ -10,35 +10,38 @@ jobs:
test-webpack4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set node version to 16
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install
- run: yarn test:webpack4
node-version: '16'
cache: 'pnpm'
- run: pnpm install
- run: pnpm pretest:webpack4
- run: pnpm test:webpack4

test-webpack5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set node version to 16
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install
- run: yarn test
node-version: '16'
cache: 'pnpm'
- run: pnpm install
- run: pnpm pretest
- run: pnpm test

test-webpack5-inline-match-resource:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set node version to 16
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install
- run: yarn test:match-resource
node-version: '16'
cache: 'pnpm'
- run: pnpm install
- run: pnpm pretest:match-resource
- run: pnpm test:match-resource
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -35,6 +35,7 @@
"prettier --parser=typescript --write"
]
},
"packageManager": "pnpm@8.12.0",
"dependencies": {
"chalk": "^4.1.0",
"watchpack": "^2.4.0"
Expand All @@ -54,6 +55,7 @@
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.11.5",
"@intlify/vue-i18n-loader": "^3.0.0",
"@types/cssesc": "^3.0.2",
"@types/estree": "^0.0.45",
"@types/jest": "^26.0.13",
"@types/jsdom": "^16.2.13",
Expand All @@ -63,6 +65,7 @@
"cache-loader": "^4.1.0",
"conventional-changelog-cli": "^2.1.1",
"css-loader": "^4.3.0",
"cssesc": "^3.0.0",
"file-loader": "^6.1.0",
"html-webpack-plugin": "^4.5.0",
"html-webpack-plugin-v5": "npm:html-webpack-plugin@^5.3.2",
Expand Down

0 comments on commit 6986365

Please sign in to comment.