knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
134 lines • 3.63 kB
JSON
{
"name": "knip",
"version": "5.78.0",
"description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects",
"homepage": "https://knip.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/webpro-nl/knip.git",
"directory": "packages/knip"
},
"bugs": "https://github.com/webpro-nl/knip/issues",
"license": "ISC",
"author": {
"name": "Lars Kappert",
"email": "lars@webpro.nl"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/webpro"
},
{
"type": "opencollective",
"url": "https://opencollective.com/knip"
}
],
"exports": {
".": {
"types": "./dist/types.d.ts",
"default": "./dist/index.js"
},
"./session": {
"types": "./dist/session/index.d.ts",
"default": "./dist/session/index.js"
}
},
"bin": {
"knip": "bin/knip.js",
"knip-bun": "bin/knip-bun.js"
},
"type": "module",
"types": "./dist/types.d.ts",
"files": [
"dist",
"vendor",
"schema.json",
"schema-jsonc.json"
],
"dependencies": {
"@nodelib/fs.walk": "^1.2.3",
"fast-glob": "^3.3.3",
"formatly": "^0.3.0",
"jiti": "^2.6.0",
"js-yaml": "^4.1.1",
"minimist": "^1.2.8",
"oxc-resolver": "^11.15.0",
"picocolors": "^1.1.1",
"picomatch": "^4.0.1",
"smol-toml": "^1.5.2",
"strip-json-comments": "5.0.3",
"zod": "^4.1.11"
},
"peerDependencies": {
"@types/node": ">=18",
"typescript": ">=5.0.4 <7"
},
"devDependencies": {
"@jest/types": "^29.6.3",
"@types/bun": "^1.3.3",
"@types/js-yaml": "^4.0.9",
"@types/minimist": "^1.2.5",
"@types/picomatch": "^4.0.1",
"@types/webpack": "^5.28.5",
"@wdio/types": "^9.20.0",
"codeclimate-types": "^0.3.1",
"glob-bin": "^1.0.0",
"tsx": "^4.20.3",
"typescript": "^5.5.2"
},
"engines": {
"node": ">=18.18.0"
},
"engineStrict": true,
"keywords": [
"analysis",
"analyze",
"class",
"cli",
"dead code",
"dependencies",
"detect",
"devDependencies",
"duplicate",
"entropy",
"enum",
"export",
"files",
"find",
"javascript",
"lint",
"maintenance",
"members",
"missing",
"monorepo",
"namespace",
"package",
"scan",
"types",
"typescript",
"unreferenced",
"unresolved",
"unused",
"workspace"
],
"scripts": {
"knip": "node ./dist/cli.js --directory ../..",
"knip:production": "node ./dist/cli.js --directory ../.. --production --strict",
"lint": "biome lint",
"format": "biome format --write",
"test": "node scripts/run-test.ts",
"test:node": "tsx --test test/*.test.ts test/**/*.test.ts",
"test:bun": "bun test test/*.test.ts test/**/*.test.ts",
"test:smoke": "glob-bin -c \"tsx --test\" \"test/*.test.ts\" && glob-bin -c \"tsx --test\" \"test/{plugins,util}/*.test.ts\"",
"test:bun:smoke": "bun test test/*.test.ts test/{plugins,util}/*.test.ts",
"watch": "npm link && tsc --watch",
"prebuild": "pnpm run generate-plugin-defs && node rmdir.js dist",
"build": "tsc",
"qa": "pnpm lint && pnpm build && pnpm knip && pnpm knip:production && pnpm run test",
"release": "release-it",
"create-plugin": "tsx ./scripts/create-new-plugin.ts",
"postcreate-plugin": "pnpm run build && biome format --write schema.json schema-jsonc.json src/schema/plugins.ts",
"generate-plugin-defs": "node ./scripts/generate-plugin-defs.js && biome check --write src/plugins/index.ts src/types/PluginNames.ts src/schema/plugins.ts"
}
}