knip

v5.31.0
Find unused files, dependencies and exports in your TypeScript and JavaScript projects
analysis analyze class cli dead code dependencies detect devDependencies duplicate and 21 more...

knip

node ./dist/cli.js --directory ../..

knip:production

node ./dist/cli.js --directory ../.. --production --strict

lint

biome lint ../..

format

biome format --write .

test

bun test test/*.test.ts test/**/*.test.ts

test:node

glob -c "npx -y tsx --test --import ./transform-test.js" "test/**/*.test.ts"

watch

npm link && tsc --watch

prebuild

node rmdir.js dist

build

tsc

qa

bun lint && bun run build && bun knip && bun knip:production && bun run test

release

release-it

create-plugin

bun ./scripts/create-new-plugin.ts

postcreate-plugin

biome format --write schema.json schema-jsonc.json src/ConfigurationValidator.ts
npm i knip

Metadata

  • ISC
  • >=18.6.0
  • Lars Kappert
  • released 10/3/2024

Downloads

Maintainers