Skip to content

Commit

Permalink
Specify expected package manager for project. Use pnpm to run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Apr 8, 2023
1 parent 62ac14b commit da64bab
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
npm run lint:types
npm run staged
pnpm lint:types
pnpm staged
8 changes: 4 additions & 4 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
npm run coverage
npm run cleanup
npm run build
npm run size-limit
pnpm coverage
pnpm cleanup
pnpm build
pnpm size-limit
3 changes: 1 addition & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"useSuspender.ts": "eslint --fix",
"*.test.{ts,tsx}": "eslint --fix"
"src/**/*.test.{ts,tsx}": "eslint --fix"
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"type": "module",
"name": "use-suspender",
"version": "1.1.0",
Expand Down Expand Up @@ -32,10 +33,10 @@
"coverage": "c8 npm test",
"test": "ava",
"lint:types": "tsc --noEmit",
"eslint": "eslint useSuspender.ts useSuspender.test.tsx",
"eslint": "eslint src/**/*.ts src/**/*.tsx",
"ci": "c8 npm test && c8 report --reporter=json",
"postinstall": "husky install",
"prepublishOnly": "npm run build && pinst --disable",
"prepublishOnly": "pnpm lint:types pnpm cleanup && pnpm build && pinst --disable",
"postpublish": "pinst --enable"
},
"devDependencies": {
Expand Down

0 comments on commit da64bab

Please sign in to comment.