Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .depcheckrc.json

This file was deleted.

14 changes: 14 additions & 0 deletions knip.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { KnipConfig } from 'knip';

const config: KnipConfig = {
entry: ['src/index.ts', 'src/node.ts'],
project: ['src/**/*.ts'],
// Both are wired in through the Yarn plugin and the `lavamoat.allowScripts`
// field rather than imported, so knip cannot see the usage.
ignoreDependencies: [
'@lavamoat/allow-scripts',
'@lavamoat/preinstall-always-fail',
],
};

export default config;
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@
"scripts": {
"build": "ts-bridge --project tsconfig.build.json --clean",
"build:docs": "typedoc",
"lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog",
"lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies && yarn lint:changelog",
"lint:changelog": "auto-changelog validate --prettier",
"lint:constraints": "yarn constraints",
"lint:dependencies": "depcheck && yarn dedupe",
"lint:dependencies": "knip --config knip.config.mts --dependencies && yarn dedupe --check",
"lint:dependencies:fix": "knip --config knip.config.mts --dependencies && yarn dedupe",
"lint:eslint": "eslint . --cache",
"lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies && yarn lint:changelog",
"lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies:fix && yarn lint:changelog",
"lint:misc": "oxfmt --ignore-path .gitignore",
"prepack": "./scripts/prepack.sh",
"test": "yarn test:source && yarn test:types",
Expand Down Expand Up @@ -89,7 +90,6 @@
"@types/node": "~18.18.14",
"@types/semver": "^7",
"@types/uuid": "^9.0.8",
"depcheck": "^1.4.7",
"eslint": "^9.39.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
Expand All @@ -102,11 +102,11 @@
"jest": "^30.4.2",
"jest-it-up": "^2.0.2",
"jest-when": "^3.7.0",
"knip": "^6.23.0",
"oxfmt": "^0.44.0",
"prettier": "^3.3.3",
"stdio-mock": "^1.2.0",
"ts-jest": "^29.4.11",
"ts-node": "^10.7.0",
"tsd": "^0.29.0",
"typedoc": "^0.25.13",
"typescript": "~5.3.3",
Expand Down
Loading
Loading