knip

v4.0.0-canary.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...

qa

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

knip

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

lint

eslint scripts src test

test

node --no-warnings --test tmp

build

tsc

watch

npm link && tsc --watch

format

prettier scripts src test schema.json schema-jsonc.json --with-node-modules --write

pretest

node rmdir.js tmp && swc src -d tmp/src && swc test -d tmp/test

release

release-it

coverage

c8 --reporter html node --no-warnings --loader tsx --test test/*.test.ts test/*/*.test.ts

lint:fix

eslint scripts src test --fix

prebuild

node rmdir.js dist

create-plugin

tsx --no-warnings ./scripts/create-new-plugin.ts

knip:production

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

postcreate-plugin

prettier schema.json schema-jsonc.json src/ConfigurationValidator.ts --write --config .prettierrc --log-level silent

Metadata

  • ISC
  • >=18.6.0
  • Lars Kappert
  • released 12/28/2023

Downloads

Maintainers