Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit 36c307b

Browse files
author
Ernest
committed
build: use pnpm
1 parent 9d030e1 commit 36c307b

19 files changed

+8101
-7590
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414
with:
1515
node-version-file: .nvmrc
1616

17-
- run: yarn install
18-
- run: yarn lint
17+
- run: pnpm install
18+
19+
- run: pnpm run lint
1920

2021
build:
2122
runs-on: ubuntu-latest
@@ -28,12 +29,13 @@ jobs:
2829
with:
2930
node-version-file: .nvmrc
3031

31-
- run: yarn install
32-
- run: yarn build
32+
- run: pnpm install
33+
34+
- run: pnpm run build
3335

34-
- run: yarn test:cypress
36+
- run: pnpm run test:cypress
3537

36-
- run: yarn test:jest --coverage
38+
- run: pnpm run test:jest --coverage
3739
env:
3840
CI: true
3941

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
- name: Build docs
2525
run: |
2626
cd docs
27-
yarn install
28-
yarn docs:build
27+
pnpm install
28+
pnpm run docs:build
2929
cd .vitepress/dist
3030
git init
3131
git add -A

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
git init
2929
cd examples
30-
eval $(echo yarn add vue-next-select@$(cat ../package.json | head -3 | sed 1,2d | sed 's/^.*\: "//' | sed 's/",$//'))
30+
eval $(echo pnpm add vue-next-select@$(cat ../package.json | head -3 | sed 1,2d | sed 's/^.*\: "//' | sed 's/",$//'))
3131
git add .
3232
git commit -m 'chore(bot): bump vue-next-select' || exit 0
3333
cd ..

.github/workflows/release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,22 @@ jobs:
1717
node-version-file: .nvmrc
1818

1919
- name: Install
20-
run: yarn
20+
run: pnpm install
2121

2222
- name: Lint
23-
run: yarn run lint
23+
run: pnpm run lint
2424

2525
- name: Build
26-
run: yarn run build
26+
run: pnpm run build
2727

2828
- name: Test
29-
run: |
30-
yarn run test:cypress
31-
yarn run test:jest
29+
run: pnpm run test
3230

3331
- name: Release
3432
run: |
3533
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3634
git config --local user.name "github-actions[bot]"
37-
yarn run release
35+
pnpm run release
3836
3937
- name: Create Pull Request
4038
uses: peter-evans/create-pull-request@v5

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ cypress/screenshots
22
cypress/videos
33
node_modules
44
coverage
5-
yarn-error.log
65
.vscode
76
.DS_Store
87
dist

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn commitlint --edit $1
4+
pnpm exec commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint
4+
pnpm run lint

.husky/pre-push

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
git diff --exit-code
55
git diff --staged --exit-code
6-
yarn lint
7-
yarn build
8-
yarn test
6+
pnpm run lint
7+
pnpm run build
8+
pnpm run test

.prettierignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ dist
22
node_modules
33
coverage
44
CHANGELOG.md
5-
yarn.lock
6-
yarn-error.log
5+
pnpm-lock.yaml
76
LICENSE

.versionrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
scripts: {
3-
postbump: 'yarn build',
3+
postbump: 'pnpm run build',
44
},
55
}

0 commit comments

Comments
 (0)