Skip to content

Commit

Permalink
chore(pkg): use npm-run-all for package script management
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinfreund committed Jan 6, 2025
1 parent 9851916 commit 6c23349
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,5 @@ jobs:
- if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: npm clean-install
- run: npm audit signatures
- run: npm run lint:lockfile
- run: npm run lint:code
- run: npm run lint:types
- run: npm run lint
- run: npm run test
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run lint:code:fix
npm run fix
123 changes: 123 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@
"test:debug": "cross-env VITE_DEBUG=true npm run test",
"test:watch": "vitest watch",
"test:watch:debug": "cross-env VITE_DEBUG=true npm run test:watch",
"lint": "run-p lint:*",
"lint:code": "eslint",
"lint:code:fix": "npm run lint:code -- --fix",
"lint:lockfile": "lockfile-lint --path package-lock.json --validate-hosts --allowed-hosts npm",
"lint:types": "tsc --noEmit",
"fix": "run-p fix:*",
"fix:code": "npm run lint:code -- --fix",
"build": "vite build",
"prepare": "husky"
},
Expand All @@ -46,6 +48,7 @@
"husky": "^9.1.7",
"jsdom": "^25.0.1",
"lockfile-lint": "^4.14.0",
"npm-run-all2": "^7.0.2",
"typescript": "~5.7.2",
"typescript-eslint": "^8.19.0",
"vite": "^6.0.7",
Expand Down

0 comments on commit 6c23349

Please sign in to comment.