Skip to content

Commit

Permalink
running knip: explicit version, --yes to avoid prompt
Browse files Browse the repository at this point in the history
After reading more about how npx works
(https://docs.npmjs.com/cli/v8/commands/npm-exec)
I'm more confident that running knip via npx (to workaround the
install-tree issue) is fine for dev and for CI.
  • Loading branch information
trentm committed Oct 11, 2024
1 parent 722c7b4 commit 971f52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"bump": "lerna publish",
"changelog": "lerna-changelog",
"lint": "lerna run lint && npm run lint:deps",
"lint:deps": "npx knip --dependencies --production --tags=-knipignore",
"lint:deps": "npx --yes knip@5.33.3 --dependencies --production --tags=-knipignore",
"lint:fix": "lerna run lint:fix",
"lint:examples": "eslint ./examples/**/*.js",
"lint:examples:fix": "eslint ./examples/**/*.js --fix",
Expand Down

0 comments on commit 971f52e

Please sign in to comment.