Skip to content

Commit

Permalink
chore: npm заменен на pnpm в конфиге git хуков и package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mxseev committed Nov 22, 2022
1 parent 5257cef commit c726458
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ pre-commit:
commands:
eslint:
glob: "*.{js,ts,tsx}"
run: npx eslint {staged_files}
run: pnpm exec eslint {staged_files}

typecheck:
run: npm run lint:typecheck
run: pnpm run lint:typecheck

packagesort:
glob: "package.json"
run: npm run style:packagesort; git add package.json
run: pnpm run style:packagesort; git add package.json

pre-push:
parallel: true
commands:
test:
run: npm run test
run: pnpm run test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"commit": "git add . && cz",
"preinstall": "npx only-allow pnpm",
"postinstall": "sh ./scripts/add_base_remote.sh",
"lint": "concurrently -c green \"npm:lint:*\"",
"lint": "concurrently -c green \"pnpm:lint:*\"",
"lint:base": "sh ./scripts/check_base_update.sh",
"lint:ts": "eslint --ext .ts,.tsx .",
"lint:typecheck": "tsc --noEmit --project tsconfig.json",
"release": "standard-version",
"start": "ts-node src/index.ts",
"style:packagesort": "sort-package-json",
"test": "concurrently -c green \"npm:test:*\"",
"test": "concurrently -c green \"pnpm:test:*\"",
"test:unit": "jest"
},
"dependencies": {
Expand Down

0 comments on commit c726458

Please sign in to comment.