Skip to content

Commit 74e6179

Browse files
committed
Use pnpm to run scripts
1 parent a803605 commit 74e6179

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run staged
1+
pnpm run staged

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run coverage
1+
pnpm run coverage

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
"scripts": {
3232
"eslint": "eslint src/**/*.ts",
3333
"staged": "lint-staged",
34-
"coverage": "c8 npm test",
35-
"ci": "c8 npm test && c8 report --reporter=json",
34+
"coverage": "c8 pnpm test",
35+
"ci": "c8 pnpm test && c8 report --reporter=json",
3636
"build:types": "tsc --project tsconfig.d.ts.json",
37-
"build": "tsc && npm run build:types",
37+
"build": "tsc && pnpm run build:types",
3838
"test": "ava --fail-fast",
3939
"cleanup": "del-cli @type lib",
4040
"postinstall": "husky install",
41-
"prepublishOnly": "npm run cleanup && npm run build && pinst --disable",
41+
"prepublishOnly": "pnpm run cleanup && pnpm run build && pinst --disable",
4242
"postpublish": "pinst --enable"
4343
},
4444
"author": "Nick K.",

0 commit comments

Comments
 (0)