Skip to content

Commit d00c928

Browse files
committed
workflow: switch to pnpm
1 parent 2a88e71 commit d00c928

File tree

9 files changed

+6045
-5719
lines changed

9 files changed

+6045
-5719
lines changed

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
with:
1515
fetch-depth: 0
16-
- uses: actions/setup-node@v1
16+
- uses: actions/setup-node@v2
1717
- name: Create Release
1818
run: npx conventional-github-releaser -p angular
1919
env:

Diff for: .github/workflows/nodejs.yml renamed to .github/workflows/test.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,28 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
15+
16+
- name: Install pnpm
17+
uses: pnpm/[email protected]
18+
with:
19+
version: 6.23.5
20+
21+
- name: Set node version to ${{ matrix.node_version }}
22+
uses: actions/setup-node@v2
1623
with:
17-
node-version: ${{ matrix.node-version }}
24+
node-version: ${{ matrix.node_version }}
25+
cache: "pnpm"
26+
1827
- name: Install
19-
run: yarn install --frozen-lockfile
20-
- name: Typing Declartion Tests
21-
run: yarn test-dts
28+
run: pnpm i
29+
30+
- name: Unit Tests
31+
run: pnpm run test
2232
env:
2333
CI: true
24-
- name: Unit Tests
25-
run: yarn test-unit
34+
35+
- name: Typing Declartion Tests
36+
run: pnpm run test:dts
2637
env:
2738
CI: true
39+

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

Diff for: .yarnrc

-3
This file was deleted.

Diff for: package.json

+16-17
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,15 @@
3333
"index.js"
3434
],
3535
"scripts": {
36-
"start": "concurrently \"tsc --emitDeclarationOnly -w\" \"cross-env rollup -c -w\"",
37-
"build": "rimraf dist typings && tsc --emitDeclarationOnly && rollup -c",
36+
"start": "rollup -c -w",
37+
"build": "rimraf dist && rollup -c",
3838
"lint": "prettier --write --parser typescript \"{src,test,test-dts}/**/*.ts?(x)\" && prettier --write \"{src,test}/**/*.js\"",
39-
"test": "yarn test-dts && yarn test-unit",
40-
"test-unit": "cross-env NODE_ENV=test jest",
41-
"test-dts": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.vue3.json && yarn build && tsc -p ./test-dts/tsconfig.build.json",
39+
"test": "cross-env NODE_ENV=test jest",
40+
"test:all": "pnpm run test && pnpm run test:dts",
41+
"test:dts": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.vue3.json && pnpm run build && tsc -p ./test-dts/tsconfig.build.json",
4242
"update-readme": "node ./scripts/update-readme.js",
43-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
44-
"version": "yarn changelog && yarn update-readme && git add CHANGELOG.md README.*",
45-
"release": "yarn version && yarn test && yarn publish --non-interactive && git push --follow-tags",
43+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && pnpm run update-readme && git add CHANGELOG.md README.*",
44+
"release": "bumpp -x \"npm run changelog\" --all --tag --commit --push && npm publish",
4645
"release-gh": "conventional-github-releaser -p angular"
4746
},
4847
"bugs": {
@@ -56,25 +55,25 @@
5655
"tslib": "^2.3.1"
5756
},
5857
"devDependencies": {
59-
"@rollup/plugin-node-resolve": "^13.0.6",
60-
"@rollup/plugin-replace": "^2.4.2",
58+
"@rollup/plugin-node-resolve": "^13.1.3",
59+
"@rollup/plugin-replace": "^3.0.1",
6160
"@types/jest": "^26.0.24",
62-
"@types/node": "^15.14.9",
63-
"concurrently": "^6.3.0",
64-
"conventional-changelog-cli": "^2.1.1",
61+
"@types/node": "^17.0.12",
62+
"bumpp": "^7.1.1",
63+
"conventional-changelog-cli": "^2.2.2",
6564
"conventional-github-releaser": "^3.1.5",
6665
"cross-env": "^7.0.3",
6766
"husky": "^4.3.8",
6867
"jest": "^26.6.3",
6968
"lint-staged": "^11.2.6",
70-
"prettier": "^2.4.1",
69+
"prettier": "^2.5.1",
7170
"rimraf": "^3.0.2",
72-
"rollup": "^2.59.0",
71+
"rollup": "^2.66.1",
7372
"rollup-plugin-dts": "^3.0.2",
7473
"rollup-plugin-terser": "^7.0.2",
75-
"rollup-plugin-typescript2": "^0.30.0",
74+
"rollup-plugin-typescript2": "^0.31.1",
7675
"ts-jest": "^26.5.6",
77-
"typescript": "^4.4.4",
76+
"typescript": "^4.5.5",
7877
"vue": "^2.6.14",
7978
"vue-router": "^3.5.3",
8079
"vue-server-renderer": "^2.6.14",

0 commit comments

Comments
 (0)