UNPKG

knip

Version:

Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects

125 lines 3.27 kB
{ "name": "knip", "version": "6.14.2", "description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects", "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" ], "homepage": "https://knip.dev", "bugs": "https://github.com/webpro-nl/knip/issues", "license": "ISC", "author": { "name": "Lars Kappert", "email": "lars@webpro.nl" }, "repository": { "type": "git", "url": "git+https://github.com/webpro-nl/knip.git", "directory": "packages/knip" }, "funding": [ { "type": "github", "url": "https://github.com/sponsors/webpro" }, { "type": "opencollective", "url": "https://opencollective.com/knip" } ], "bin": { "knip": "bin/knip.js", "knip-bun": "bin/knip-bun.js" }, "files": [ "dist", "schema.json", "schema-jsonc.json" ], "type": "module", "types": "./dist/types.d.ts", "exports": { ".": { "types": "./dist/types.d.ts", "default": "./dist/index.js" }, "./session": { "types": "./dist/session/index.d.ts", "default": "./dist/session/index.js" } }, "dependencies": { "fdir": "^6.5.0", "formatly": "^0.3.0", "get-tsconfig": "4.14.0", "jiti": "^2.7.0", "minimist": "^1.2.8", "oxc-parser": "^0.130.0", "oxc-resolver": "^11.19.1", "picomatch": "^4.0.4", "smol-toml": "^1.6.1", "strip-json-comments": "5.0.3", "tinyglobby": "^0.2.16", "unbash": "^3.0.0", "yaml": "^2.9.0", "zod": "^4.1.11" }, "devDependencies": { "@jest/types": "^29.6.3", "@types/bun": "^1.3.3", "@types/minimist": "^1.2.5", "@types/picomatch": "^4.0.1", "@types/webpack": "^5.28.5", "@typescript/native-preview": "7.0.0-dev.20260512.1", "@wdio/types": "^9.20.0", "codeclimate-types": "^0.3.1", "prettier": "^3.8.1", "tsx": "^4.21.0" }, "engines": { "node": "^20.19.0 || >=22.12.0" }, "engineStrict": true, "scripts": { "knip": "node ./src/cli.ts --directory ../..", "knip:production": "node ./src/cli.ts --directory ../.. --production --strict", "lint": "oxlint", "fmt": "oxfmt -c ../../.oxfmtrc.json --ignore-path ../../.prettierignore", "test": "node scripts/run-test.js", "prebuild": "pnpm run generate-plugin-defs && node rmdir.js dist", "build": "tsgo", "qa": "pnpm lint && pnpm build && pnpm knip && pnpm knip:production && pnpm test", "release": "NODE_OPTIONS=--no-deprecation release-it", "create-plugin": "node ./scripts/create-new-plugin.ts", "postcreate-plugin": "pnpm run build && (oxfmt schema.json schema-jsonc.json src/schema/plugins.ts || true)", "generate-plugin-defs": "node ./scripts/generate-plugin-defs.js && (oxfmt src/plugins/index.ts src/types/PluginNames.ts src/schema/plugins.ts || true)" } }