Skip to content

Commit

Permalink
Add engine field verification (#581)
Browse files Browse the repository at this point in the history
I used `knip` as a good project to verify the latest addition of workspace support in my `installed-check` module, and I thought I could just as well send a PR in case you are interested in running it yourself
  • Loading branch information
voxpelli authored Apr 5, 2024
1 parent 9c5c167 commit f6684ad
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 1 deletion.
236 changes: 236 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 @@ -23,9 +23,12 @@
"watch": "npm run watch --workspace packages/knip",
"docs": "npm run dev --workspace packages/docs",
"format": "npm run format --workspaces --if-present",
"test": "npm run qa --workspaces --if-present"
"test": "npm run qa --workspaces --if-present && installed-check --no-include-workspace-root --ignore-dev"
},
"peerDependencies": {
"knip": "file:packages/knip"
},
"devDependencies": {
"installed-check": "^9.1.0"
}
}
3 changes: 3 additions & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"url": "github:webpro/knip",
"directory": "packages/docs"
},
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
},
"scripts": {
"prebuild": "tsx scripts/generate-plugin-docs.ts",
"build": "astro check && astro build",
Expand Down
3 changes: 3 additions & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"type": "module",
"main": "./index.js",
"types": "./index.d.ts",
"engines": {
"node": "^18.18.0 || >=20.0.0"
},
"dependencies": {
"@eslint/js": "^8.57.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
Expand Down

0 comments on commit f6684ad

Please sign in to comment.