knip

v5.9.4
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...

ci

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

knip

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

lint

biome lint .

test

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

build

tsc

watch

npm link && tsc --watch

format

biome format --write .

release

release-it

prebuild

node rmdir.js dist

test:node

glob -c "node --test --import ./transform-test.js --import tsx/esm" "test/**/*.test.ts"

create-plugin

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

knip:production

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

postcreate-plugin

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

Metadata

  • ISC
  • >=18.6.0
  • Lars Kappert
  • released 4/11/2024

Downloads

Maintainers