diff --git a/lefthook.yml b/lefthook.yml index 4ba37ff..875896c 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -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 diff --git a/package.json b/package.json index 5b838fa..dea7ca6 100644 --- a/package.json +++ b/package.json @@ -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": {