knip 0.0.0-graph.3 → 0.0.0-node-types.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +7 -915
  2. package/bin/knip.js +2 -0
  3. package/dist/ConfigurationChief.d.ts +14 -6
  4. package/dist/ConfigurationChief.js +104 -70
  5. package/dist/ConfigurationValidator.d.ts +553 -321
  6. package/dist/ConfigurationValidator.js +7 -1
  7. package/dist/DependencyDeputy.d.ts +4 -1
  8. package/dist/DependencyDeputy.js +13 -11
  9. package/dist/PrincipalFactory.d.ts +5 -2
  10. package/dist/PrincipalFactory.js +11 -7
  11. package/dist/ProjectPrincipal.d.ts +18 -15
  12. package/dist/ProjectPrincipal.js +43 -25
  13. package/dist/WorkspaceWorker.d.ts +9 -7
  14. package/dist/WorkspaceWorker.js +45 -63
  15. package/dist/binaries/bash-parser.js +1 -1
  16. package/dist/binaries/index.js +12 -3
  17. package/dist/binaries/resolvers/c8.js +2 -1
  18. package/dist/binaries/resolvers/dotenv.js +2 -1
  19. package/dist/binaries/resolvers/fallback.js +4 -2
  20. package/dist/binaries/resolvers/index.d.ts +1 -0
  21. package/dist/binaries/resolvers/index.js +1 -0
  22. package/dist/binaries/resolvers/node.js +1 -1
  23. package/dist/binaries/resolvers/nodemon.js +2 -1
  24. package/dist/binaries/resolvers/npx.js +2 -1
  25. package/dist/binaries/resolvers/nx.js +1 -1
  26. package/dist/binaries/resolvers/pnpm.js +1 -1
  27. package/dist/binaries/resolvers/rollup.js +2 -1
  28. package/dist/binaries/resolvers/tsx.d.ts +2 -0
  29. package/dist/binaries/resolvers/tsx.js +6 -0
  30. package/dist/binaries/resolvers/yarn.js +1 -1
  31. package/dist/binaries/util.d.ts +0 -3
  32. package/dist/binaries/util.js +1 -3
  33. package/dist/cli.d.ts +0 -1
  34. package/dist/cli.js +10 -9
  35. package/dist/constants.d.ts +0 -1
  36. package/dist/constants.js +5 -4
  37. package/dist/index.js +101 -65
  38. package/dist/manifest/index.js +8 -4
  39. package/dist/plugins/_template/index.js +15 -3
  40. package/dist/plugins/_template/types.d.ts +1 -0
  41. package/dist/plugins/angular/index.js +11 -11
  42. package/dist/plugins/astro/index.d.ts +7 -0
  43. package/dist/plugins/astro/index.js +19 -0
  44. package/dist/plugins/ava/index.d.ts +1 -1
  45. package/dist/plugins/ava/index.js +28 -7
  46. package/dist/plugins/ava/types.d.ts +5 -1
  47. package/dist/plugins/babel/helpers.d.ts +1 -2
  48. package/dist/plugins/babel/helpers.js +28 -20
  49. package/dist/plugins/babel/index.js +17 -14
  50. package/dist/plugins/capacitor/index.js +7 -3
  51. package/dist/plugins/changesets/index.js +10 -6
  52. package/dist/plugins/commitizen/index.d.ts +1 -0
  53. package/dist/plugins/commitizen/index.js +8 -4
  54. package/dist/plugins/commitizen/types.d.ts +1 -1
  55. package/dist/plugins/commitlint/index.js +7 -3
  56. package/dist/plugins/cspell/index.js +7 -3
  57. package/dist/plugins/cspell/types.d.ts +1 -1
  58. package/dist/plugins/cypress/index.d.ts +3 -1
  59. package/dist/plugins/cypress/index.js +17 -4
  60. package/dist/plugins/drizzle/index.js +5 -7
  61. package/dist/plugins/eslint/fallback.js +6 -1
  62. package/dist/plugins/eslint/helpers.d.ts +4 -11
  63. package/dist/plugins/eslint/helpers.js +24 -26
  64. package/dist/plugins/eslint/index.d.ts +1 -1
  65. package/dist/plugins/eslint/index.js +14 -4
  66. package/dist/plugins/gatsby/index.js +11 -5
  67. package/dist/plugins/github-actions/index.d.ts +1 -1
  68. package/dist/plugins/github-actions/index.js +7 -4
  69. package/dist/plugins/graphql-codegen/index.d.ts +7 -0
  70. package/dist/plugins/graphql-codegen/index.js +46 -0
  71. package/dist/plugins/graphql-codegen/types.d.ts +25 -0
  72. package/dist/plugins/graphql-codegen/types.js +3 -0
  73. package/dist/plugins/husky/index.js +9 -4
  74. package/dist/plugins/index.d.ts +4 -0
  75. package/dist/plugins/index.js +4 -0
  76. package/dist/plugins/jest/index.d.ts +1 -1
  77. package/dist/plugins/jest/index.js +21 -12
  78. package/dist/plugins/jest/types.d.ts +3 -0
  79. package/dist/plugins/lefthook/index.js +12 -8
  80. package/dist/plugins/lint-staged/index.d.ts +1 -0
  81. package/dist/plugins/lint-staged/index.js +10 -7
  82. package/dist/plugins/markdownlint/index.js +7 -4
  83. package/dist/plugins/mocha/index.d.ts +1 -0
  84. package/dist/plugins/mocha/index.js +12 -7
  85. package/dist/plugins/mocha/types.d.ts +4 -0
  86. package/dist/plugins/mocha/types.js +1 -0
  87. package/dist/plugins/next/index.d.ts +2 -1
  88. package/dist/plugins/next/index.js +7 -0
  89. package/dist/plugins/node-test-runner/index.d.ts +6 -0
  90. package/dist/plugins/node-test-runner/index.js +19 -0
  91. package/dist/plugins/npm-package-json-lint/index.d.ts +1 -0
  92. package/dist/plugins/npm-package-json-lint/index.js +8 -4
  93. package/dist/plugins/nx/index.js +13 -10
  94. package/dist/plugins/nyc/index.js +6 -3
  95. package/dist/plugins/nyc/types.d.ts +3 -0
  96. package/dist/plugins/nyc/types.js +1 -0
  97. package/dist/plugins/playwright/index.d.ts +5 -1
  98. package/dist/plugins/playwright/index.js +25 -2
  99. package/dist/plugins/playwright-ct/index.d.ts +3 -1
  100. package/dist/plugins/playwright-ct/index.js +18 -2
  101. package/dist/plugins/postcss/index.js +12 -9
  102. package/dist/plugins/prettier/index.js +11 -6
  103. package/dist/plugins/prettier/types.d.ts +8 -0
  104. package/dist/plugins/prettier/types.js +1 -0
  105. package/dist/plugins/release-it/index.d.ts +1 -0
  106. package/dist/plugins/release-it/index.js +14 -10
  107. package/dist/plugins/remark/index.d.ts +1 -0
  108. package/dist/plugins/remark/index.js +20 -4
  109. package/dist/plugins/remark/types.d.ts +3 -0
  110. package/dist/plugins/remark/types.js +1 -0
  111. package/dist/plugins/remix/index.d.ts +2 -1
  112. package/dist/plugins/remix/index.js +9 -0
  113. package/dist/plugins/rollup/index.d.ts +2 -1
  114. package/dist/plugins/rollup/index.js +8 -1
  115. package/dist/plugins/semantic-release/index.d.ts +1 -0
  116. package/dist/plugins/semantic-release/index.js +10 -4
  117. package/dist/plugins/semantic-release/types.d.ts +1 -1
  118. package/dist/plugins/sentry/index.d.ts +2 -1
  119. package/dist/plugins/sentry/index.js +7 -0
  120. package/dist/plugins/storybook/index.js +28 -10
  121. package/dist/plugins/storybook/types.d.ts +7 -0
  122. package/dist/plugins/stryker/index.js +13 -9
  123. package/dist/plugins/stylelint/index.js +8 -5
  124. package/dist/plugins/svelte/index.d.ts +2 -1
  125. package/dist/plugins/svelte/index.js +6 -0
  126. package/dist/plugins/tsup/index.d.ts +6 -0
  127. package/dist/plugins/tsup/index.js +23 -0
  128. package/dist/plugins/tsup/types.d.ts +7 -0
  129. package/dist/plugins/tsup/types.js +1 -0
  130. package/dist/plugins/typedoc/index.d.ts +1 -0
  131. package/dist/plugins/typedoc/index.js +8 -4
  132. package/dist/plugins/typedoc/types.d.ts +1 -1
  133. package/dist/plugins/typescript/index.js +16 -11
  134. package/dist/plugins/vite/index.js +7 -5
  135. package/dist/plugins/vitest/helpers.d.ts +2 -2
  136. package/dist/plugins/vitest/index.d.ts +4 -4
  137. package/dist/plugins/vitest/index.js +55 -26
  138. package/dist/plugins/vitest/types.d.ts +23 -2
  139. package/dist/plugins/webpack/index.js +31 -19
  140. package/dist/plugins/webpack/types.d.ts +2 -1
  141. package/dist/reporters/codeowners.js +2 -2
  142. package/dist/reporters/json.js +14 -9
  143. package/dist/reporters/symbols.js +3 -2
  144. package/dist/reporters/util.d.ts +8 -2
  145. package/dist/reporters/util.js +7 -1
  146. package/dist/types/cli.d.ts +1 -1
  147. package/dist/types/config.d.ts +9 -4
  148. package/dist/types/exports.d.ts +1 -0
  149. package/dist/types/imports.d.ts +6 -0
  150. package/dist/types/issues.d.ts +11 -1
  151. package/dist/types/package-json.d.ts +41 -0
  152. package/dist/types/package-json.js +1 -0
  153. package/dist/types/plugins.d.ts +5 -7
  154. package/dist/types/util.d.ts +16 -0
  155. package/dist/types/util.js +1 -0
  156. package/dist/types/workspace.d.ts +4 -1
  157. package/dist/typescript/SourceFile.d.ts +5 -0
  158. package/dist/typescript/SourceFileManager.js +3 -3
  159. package/dist/typescript/ast-helpers.d.ts +7 -14
  160. package/dist/typescript/ast-helpers.js +11 -9
  161. package/dist/typescript/createHosts.d.ts +1 -0
  162. package/dist/typescript/createHosts.js +1 -1
  163. package/dist/typescript/getImportsAndExports.d.ts +7 -5
  164. package/dist/typescript/getImportsAndExports.js +35 -18
  165. package/dist/typescript/resolveModuleNames.d.ts +1 -1
  166. package/dist/typescript/resolveModuleNames.js +38 -12
  167. package/dist/typescript/visitors/exports/exportDeclaration.js +14 -1
  168. package/dist/typescript/visitors/exports/exportKeyword.js +5 -2
  169. package/dist/typescript/visitors/exports/moduleExportsAccessExpression.js +29 -21
  170. package/dist/typescript/visitors/imports/importCall.js +1 -1
  171. package/dist/typescript/visitors/imports/importDeclaration.js +3 -3
  172. package/dist/typescript/visitors/imports/importEqualsDeclaration.js +1 -1
  173. package/dist/typescript/visitors/imports/jsDocType.js +37 -5
  174. package/dist/typescript/visitors/imports/propertyAccessCall.js +1 -1
  175. package/dist/typescript/visitors/imports/reExportDeclaration.js +8 -3
  176. package/dist/typescript/visitors/imports/requireCall.js +5 -5
  177. package/dist/util/array.d.ts +3 -1
  178. package/dist/util/cli-arguments.d.ts +3 -2
  179. package/dist/util/cli-arguments.js +6 -6
  180. package/dist/util/compilers.d.ts +122 -80
  181. package/dist/util/debug.d.ts +3 -3
  182. package/dist/util/debug.js +12 -18
  183. package/dist/util/fs.d.ts +2 -0
  184. package/dist/util/fs.js +22 -3
  185. package/dist/util/get-included-issue-types.js +14 -18
  186. package/dist/util/git.js +1 -1
  187. package/dist/util/glob.js +1 -1
  188. package/dist/util/loader.d.ts +2 -0
  189. package/dist/util/loader.js +23 -3
  190. package/dist/util/modules.d.ts +7 -1
  191. package/dist/util/modules.js +20 -10
  192. package/dist/util/object.d.ts +1 -0
  193. package/dist/util/object.js +3 -0
  194. package/dist/util/parse-args.d.ts +3 -0
  195. package/dist/util/parse-args.js +8 -0
  196. package/dist/util/path.d.ts +1 -0
  197. package/dist/util/path.js +5 -3
  198. package/dist/util/plugin.d.ts +4 -3
  199. package/dist/util/plugin.js +11 -4
  200. package/dist/util/protocols.d.ts +9 -0
  201. package/dist/util/protocols.js +9 -0
  202. package/dist/util/register.d.ts +2 -1
  203. package/dist/util/register.js +9 -13
  204. package/dist/util/require.js +7 -5
  205. package/dist/util/tsconfig-loader.js +2 -1
  206. package/dist/util/unwrap-function.d.ts +1 -0
  207. package/dist/util/unwrap-function.js +13 -0
  208. package/dist/version.d.ts +1 -1
  209. package/dist/version.js +1 -1
  210. package/package.json +86 -85
  211. package/schema-jsonc.json +11 -0
  212. package/schema.json +27 -3
  213. package/dist/plugins/vite/types.d.ts +0 -4
  214. /package/dist/plugins/{vite → jest}/types.js +0 -0
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "0.0.0-graph.3",
3
+ "version": "0.0.0-node-types.0",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
- "homepage": "https://github.com/webpro/knip",
6
- "repository": "github:webpro/knip",
5
+ "homepage": "https://knip.dev",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "github:webpro/knip",
9
+ "directory": "packages/knip"
10
+ },
7
11
  "bugs": "https://github.com/webpro/knip/issues",
8
12
  "license": "ISC",
9
13
  "author": {
@@ -12,85 +16,82 @@
12
16
  },
13
17
  "main": "./dist/index.js",
14
18
  "bin": {
15
- "knip": "./dist/cli.js"
19
+ "knip": "./bin/knip.js"
16
20
  },
17
21
  "type": "module",
18
22
  "types": "./dist/index.d.ts",
19
23
  "scripts": {
20
- "knip": "node ./dist/cli.js",
21
- "knip:production": "node ./dist/cli.js --production --strict --ignore-internal",
22
- "lint": "eslint scripts src tests",
23
- "lint:fix": "eslint scripts src tests --fix",
24
- "format": "prettier scripts src tests schema.json --with-node-modules --write --config .prettierrc",
25
- "pretest": "node rmdir.js tmp && swc src -d tmp/src && swc tests -d tmp/tests",
24
+ "knip": "node ./dist/cli.js --directory ../..",
25
+ "knip:production": "node ./dist/cli.js --directory ../.. --production --strict",
26
+ "lint": "eslint scripts src test",
27
+ "lint:fix": "eslint scripts src test --fix",
28
+ "format": "prettier scripts src test schema.json schema-jsonc.json --with-node-modules --write",
29
+ "pretest": "node rmdir.js tmp && swc src -d tmp/src && swc test -d tmp/test",
26
30
  "test": "node --no-warnings --test tmp",
27
- "coverage": "c8 --reporter html node --no-warnings --loader tsx --test tests/*.test.ts tests/*/*.test.ts",
28
- "watch": "rm $(which knip); npm link && tsc --watch",
31
+ "coverage": "c8 --reporter html node --no-warnings --loader tsx --test test/*.test.ts test/*/*.test.ts",
32
+ "watch": "npm link && tsc --watch",
29
33
  "prebuild": "node rmdir.js dist",
30
34
  "build": "tsc",
31
- "docs": "npm run docs:cli && npm run docs:plugins && npm run docs:format",
32
- "docs:cli": "tsx ./scripts/update-cli-usage-in-readme.ts",
33
- "docs:plugins": "tsx ./scripts/generate-plugin-docs.ts",
34
- "docs:format": "remark README.md docs/*.md .github/*.md src/plugins/*/README.md -o",
35
35
  "qa": "npm run lint && npm run build && npm run knip && npm run knip:production && npm test",
36
36
  "release": "release-it",
37
37
  "create-plugin": "tsx --no-warnings ./scripts/create-new-plugin.ts",
38
- "postcreate-plugin": "prettier schema.json src/ConfigurationValidator.ts --write --config .prettierrc --log-level silent"
38
+ "postcreate-plugin": "prettier schema.json schema-jsonc.json src/ConfigurationValidator.ts --write --config .prettierrc --log-level silent"
39
39
  },
40
40
  "files": [
41
41
  "dist",
42
- "schema.json"
42
+ "schema.json",
43
+ "schema-jsonc.json"
43
44
  ],
44
45
  "dependencies": {
45
- "@ericcornelissen/bash-parser": "^0.5.2",
46
- "@npmcli/map-workspaces": "^3.0.4",
46
+ "@ericcornelissen/bash-parser": "0.5.2",
47
+ "@npmcli/map-workspaces": "3.0.4",
48
+ "@pkgjs/parseargs": "0.11.0",
47
49
  "@pnpm/logger": "5.0.0",
48
- "@pnpm/workspace.pkgs-graph": "2.0.6",
49
- "@snyk/github-codeowners": "^1.1.0",
50
+ "@pnpm/workspace.pkgs-graph": "^2.0.10",
51
+ "@snyk/github-codeowners": "1.1.0",
50
52
  "chalk": "^5.2.0",
51
- "easy-table": "^1.2.0",
52
- "fast-glob": "^3.2.12",
53
- "globby": "^13.1.3",
54
- "jiti": "^1.19.3",
55
- "js-yaml": "^4.1.0",
56
- "micromatch": "^4.0.5",
57
- "minimist": "^1.2.8",
58
- "pretty-ms": "^8.0.0",
59
- "strip-json-comments": "^5.0.0",
60
- "summary": "^2.1.0",
61
- "typescript": "^5.0.2",
62
- "zod": "^3.22.2",
63
- "zod-validation-error": "^1.5.0"
53
+ "easy-table": "1.2.0",
54
+ "fast-glob": "3.3.2",
55
+ "globby": "^14.0.0",
56
+ "jiti": "1.21.0",
57
+ "js-yaml": "4.1.0",
58
+ "micromatch": "4.0.5",
59
+ "minimist": "1.2.8",
60
+ "pretty-ms": "8.0.0",
61
+ "strip-json-comments": "5.0.1",
62
+ "summary": "2.1.0",
63
+ "zod": "3.22.4",
64
+ "zod-validation-error": "2.1.0"
65
+ },
66
+ "peerDependencies": {
67
+ "typescript": ">=5.0.4",
68
+ "@types/node": ">=18"
64
69
  },
65
70
  "devDependencies": {
66
71
  "@jest/types": "29.6.3",
72
+ "@knip/eslint-config": "0.0.0",
67
73
  "@npmcli/package-json": "5.0.0",
68
- "@release-it/bumper": "5.1.0",
69
- "@swc/cli": "0.1.62",
70
- "@swc/core": "1.3.90",
71
- "@types/eslint": "8.44.3",
72
- "@types/js-yaml": "4.0.6",
73
- "@types/micromatch": "4.0.3",
74
- "@types/minimist": "1.2.3",
75
- "@types/node": "20.7.1",
76
- "@types/npmcli__map-workspaces": "3.0.2",
77
- "@types/webpack": "5.28.3",
78
- "@typescript-eslint/eslint-plugin": "6.7.3",
79
- "@typescript-eslint/parser": "6.7.3",
74
+ "@release-it/bumper": "^6.0.1",
75
+ "@swc/cli": "^0.1.63",
76
+ "@swc/core": "^1.3.100",
77
+ "@types/js-yaml": "^4.0.9",
78
+ "@types/micromatch": "^4.0.6",
79
+ "@types/minimist": "^1.2.5",
80
+ "@types/npmcli__map-workspaces": "^3.0.4",
81
+ "@types/npmcli__package-json": "^4.0.3",
82
+ "@types/pkgjs__parseargs": "^0.10.3",
83
+ "@types/webpack": "^5.28.5",
80
84
  "c8": "8.0.1",
81
- "eslint": "8.50.0",
82
- "eslint-import-resolver-typescript": "3.6.1",
83
- "eslint-plugin-import": "2.28.1",
84
- "eslint-plugin-n": "16.1.0",
85
- "prettier": "3.0.3",
86
- "release-it": "16.2.1",
87
- "remark-cli": "11.0.0",
88
- "remark-preset-webpro": "0.0.3",
89
- "tsx": "3.13.0",
90
- "type-fest": "4.3.2"
85
+ "eslint": "^8.54.0",
86
+ "playwright": "^1.40.1",
87
+ "prettier": "^3.1.0",
88
+ "release-it": "^17.0.0",
89
+ "tsx": "^4.6.1",
90
+ "type-fest": "^4.8.2",
91
+ "typescript": "5.3.2"
91
92
  },
92
93
  "engines": {
93
- "node": ">=16.17.0 <17 || >=18.6.0"
94
+ "node": ">=18.6.0"
94
95
  },
95
96
  "engineStrict": true,
96
97
  "release-it": {
@@ -100,8 +101,10 @@
100
101
  "npm run build",
101
102
  "npm run knip",
102
103
  "npm run knip:production",
103
- "npm run docs",
104
104
  "npm test"
105
+ ],
106
+ "after:bump": [
107
+ "git add ../../package-lock.json"
105
108
  ]
106
109
  },
107
110
  "github": {
@@ -116,37 +119,35 @@
116
119
  }
117
120
  }
118
121
  },
119
- "remarkConfig": {
120
- "plugins": [
121
- "preset-webpro"
122
- ]
123
- },
124
122
  "keywords": [
125
- "find",
126
- "detect",
123
+ "analysis",
127
124
  "analyze",
128
- "scan",
129
- "lint",
130
- "unused",
131
- "unreferenced",
132
- "unresolved",
133
- "missing",
134
- "unimported",
135
- "files",
125
+ "class",
126
+ "cli",
127
+ "dead code",
136
128
  "dependencies",
129
+ "detect",
137
130
  "devDependencies",
138
- "exports",
139
- "types",
140
- "members",
141
- "namespaces",
142
- "duplicates",
143
- "typescript",
144
- "maintenance",
145
- "class",
131
+ "duplicate",
132
+ "entropy",
146
133
  "enum",
134
+ "export",
135
+ "files",
136
+ "find",
137
+ "javascript",
138
+ "lint",
139
+ "maintenance",
147
140
  "members",
148
- "workspace",
149
- "workspaces",
150
- "monorepo"
141
+ "missing",
142
+ "monorepo",
143
+ "namespace",
144
+ "package",
145
+ "scan",
146
+ "types",
147
+ "typescript",
148
+ "unreferenced",
149
+ "unresolved",
150
+ "unused",
151
+ "workspace"
151
152
  ]
152
153
  }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Knip configuration for JSONC",
4
+ "description": "See https://github.com/webpro/knip",
5
+ "allOf": [
6
+ {
7
+ "$ref": "https://unpkg.com/knip@3/schema.json"
8
+ }
9
+ ],
10
+ "allowTrailingCommas": true
11
+ }
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Knip configuration",
3
+ "title": "Knip configuration for JSON",
4
4
  "description": "See https://github.com/webpro/knip",
5
5
  "type": "object",
6
6
  "allOf": [
@@ -74,6 +74,10 @@
74
74
  }
75
75
  ]
76
76
  },
77
+ "includeEntryExports": {
78
+ "title": "Include entry files when reporting unused exports",
79
+ "type": "boolean"
80
+ },
77
81
  "workspaces": {
78
82
  "title": "Configuration for workspaces",
79
83
  "type": "object",
@@ -133,7 +137,7 @@
133
137
  }
134
138
  },
135
139
  "globPatterns": {
136
- "description": "Use file paths and glob patterns to match files. Knip uses fast-glob and and minimatch (https://github.com/micromatch/micromatch#matching-features)",
140
+ "description": "Use file paths and glob patterns to match files. Knip uses fast-glob and minimatch (https://github.com/micromatch/micromatch#matching-features)",
137
141
  "anyOf": [
138
142
  {
139
143
  "type": "string"
@@ -184,6 +188,10 @@
184
188
  "title": "Dependencies from package.json to ignore",
185
189
  "examples": ["husky", "lint-staged"],
186
190
  "$ref": "#/definitions/list"
191
+ },
192
+ "includeEntryExports": {
193
+ "title": "Include entry files when reporting unused exports",
194
+ "type": "boolean"
187
195
  }
188
196
  }
189
197
  },
@@ -191,7 +199,7 @@
191
199
  "description": "Knip plugin configuration. See https://github.com/webpro/knip#plugins",
192
200
  "anyOf": [
193
201
  {
194
- "const": false
202
+ "type": "boolean"
195
203
  },
196
204
  {
197
205
  "$ref": "#/definitions/globPatterns"
@@ -224,6 +232,10 @@
224
232
  "title": "angular plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/angular/README.md)",
225
233
  "$ref": "#/definitions/plugin"
226
234
  },
235
+ "astro": {
236
+ "title": "astro plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/astro/README.md)",
237
+ "$ref": "#/definitions/plugin"
238
+ },
227
239
  "ava": {
228
240
  "title": "ava plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/ava/README.md)",
229
241
  "$ref": "#/definitions/plugin"
@@ -272,6 +284,10 @@
272
284
  "title": "github-actions plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/github-actions/README.md)",
273
285
  "$ref": "#/definitions/plugin"
274
286
  },
287
+ "graphql-codegen": {
288
+ "title": "graphql-codegen plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/graphql-codegen/README.md)",
289
+ "$ref": "#/definitions/plugin"
290
+ },
275
291
  "husky": {
276
292
  "title": "husky plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/husky/README.md)",
277
293
  "$ref": "#/definitions/plugin"
@@ -300,6 +316,10 @@
300
316
  "title": "Next.js plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/main/README.md)",
301
317
  "$ref": "#/definitions/plugin"
302
318
  },
319
+ "node-test-runner": {
320
+ "title": "node-test-runner plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/node-test-runner/README.md)",
321
+ "$ref": "#/definitions/plugin"
322
+ },
303
323
  "npm-package-json-lint": {
304
324
  "title": "npm-package-json-lint plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/npm-package-json-lint/README.md)",
305
325
  "$ref": "#/definitions/plugin"
@@ -372,6 +392,10 @@
372
392
  "title": "tailwind plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/tailwind/README.md)",
373
393
  "$ref": "#/definitions/plugin"
374
394
  },
395
+ "tsup": {
396
+ "title": "tsup plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/tsup/README.md)",
397
+ "$ref": "#/definitions/plugin"
398
+ },
375
399
  "typedoc": {
376
400
  "title": "typedoc plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/typedoc/README.md)",
377
401
  "$ref": "#/definitions/plugin"
@@ -1,4 +0,0 @@
1
- import type { VitestConfig } from '../vitest/types.js';
2
- export interface ViteConfig extends VitestConfig {
3
- plugins: unknown[];
4
- }
File without changes