knip 5.49.0 → 5.50.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 (315) hide show
  1. package/dist/plugins/create-typescript-app/index.js +11 -0
  2. package/dist/plugins/index.js +2 -0
  3. package/dist/schema/plugins.js +1 -0
  4. package/dist/types/PluginNames.js +1 -0
  5. package/dist/version.js +1 -1
  6. package/package.json +1 -1
  7. package/schema.json +4 -0
  8. package/dist/CacheConsultant.d.ts +0 -14
  9. package/dist/ConfigurationChief.d.ts +0 -181
  10. package/dist/ConsoleStreamer.d.ts +0 -12
  11. package/dist/DependencyDeputy.d.ts +0 -78
  12. package/dist/IssueCollector.d.ts +0 -39
  13. package/dist/IssueFixer.d.ts +0 -27
  14. package/dist/PackageJsonPeeker.d.ts +0 -13
  15. package/dist/PrincipalFactory.d.ts +0 -20
  16. package/dist/ProjectPrincipal.d.ts +0 -58
  17. package/dist/WorkspaceWorker.d.ts +0 -69
  18. package/dist/binaries/bash-parser.d.ts +0 -3
  19. package/dist/binaries/fallback.d.ts +0 -2
  20. package/dist/binaries/index.d.ts +0 -2
  21. package/dist/binaries/package-manager/bun.d.ts +0 -2
  22. package/dist/binaries/package-manager/bunx.d.ts +0 -3
  23. package/dist/binaries/package-manager/index.d.ts +0 -10
  24. package/dist/binaries/package-manager/npm.d.ts +0 -2
  25. package/dist/binaries/package-manager/npx.d.ts +0 -2
  26. package/dist/binaries/package-manager/pnpm.d.ts +0 -2
  27. package/dist/binaries/package-manager/pnpx.d.ts +0 -3
  28. package/dist/binaries/package-manager/yarn.d.ts +0 -2
  29. package/dist/binaries/plugins.d.ts +0 -2
  30. package/dist/binaries/util.d.ts +0 -3
  31. package/dist/cli.d.ts +0 -1
  32. package/dist/compilers/astro.d.ts +0 -6
  33. package/dist/compilers/compilers.d.ts +0 -5
  34. package/dist/compilers/index.d.ts +0 -987
  35. package/dist/compilers/mdx.d.ts +0 -6
  36. package/dist/compilers/svelte.d.ts +0 -6
  37. package/dist/compilers/types.d.ts +0 -7
  38. package/dist/compilers/vue.d.ts +0 -6
  39. package/dist/constants.d.ts +0 -26
  40. package/dist/graph/analyze.d.ts +0 -30
  41. package/dist/graph/build.d.ts +0 -40
  42. package/dist/index.d.ts +0 -11
  43. package/dist/manifest/helpers.d.ts +0 -9
  44. package/dist/manifest/index.d.ts +0 -12
  45. package/dist/plugins/_template/index.d.ts +0 -12
  46. package/dist/plugins/_template/types.d.ts +0 -4
  47. package/dist/plugins/angular/index.d.ts +0 -10
  48. package/dist/plugins/angular/types.d.ts +0 -1048
  49. package/dist/plugins/astro/index.d.ts +0 -11
  50. package/dist/plugins/ava/index.d.ts +0 -12
  51. package/dist/plugins/ava/types.d.ts +0 -8
  52. package/dist/plugins/babel/helpers.d.ts +0 -14
  53. package/dist/plugins/babel/index.d.ts +0 -12
  54. package/dist/plugins/babel/types.d.ts +0 -10
  55. package/dist/plugins/c8/index.d.ts +0 -10
  56. package/dist/plugins/capacitor/index.d.ts +0 -10
  57. package/dist/plugins/capacitor/types.d.ts +0 -3
  58. package/dist/plugins/changesets/index.d.ts +0 -11
  59. package/dist/plugins/changesets/types.d.ts +0 -3
  60. package/dist/plugins/commitizen/index.d.ts +0 -12
  61. package/dist/plugins/commitizen/types.d.ts +0 -3
  62. package/dist/plugins/commitlint/index.d.ts +0 -10
  63. package/dist/plugins/commitlint/types.d.ts +0 -12
  64. package/dist/plugins/cspell/index.d.ts +0 -10
  65. package/dist/plugins/cspell/types.d.ts +0 -3
  66. package/dist/plugins/cucumber/index.d.ts +0 -12
  67. package/dist/plugins/cucumber/types.d.ts +0 -7
  68. package/dist/plugins/cypress/helpers.d.ts +0 -3
  69. package/dist/plugins/cypress/index.d.ts +0 -12
  70. package/dist/plugins/cypress/types.d.ts +0 -6
  71. package/dist/plugins/dependency-cruiser/index.d.ts +0 -12
  72. package/dist/plugins/dotenv/index.d.ts +0 -8
  73. package/dist/plugins/drizzle/index.d.ts +0 -10
  74. package/dist/plugins/drizzle/types.d.ts +0 -3
  75. package/dist/plugins/eleventy/helpers.d.ts +0 -138
  76. package/dist/plugins/eleventy/index.d.ts +0 -14
  77. package/dist/plugins/eleventy/types.d.ts +0 -10
  78. package/dist/plugins/eslint/helpers.d.ts +0 -4
  79. package/dist/plugins/eslint/index.d.ts +0 -15
  80. package/dist/plugins/eslint/types.d.ts +0 -29
  81. package/dist/plugins/expo/helpers.d.ts +0 -20
  82. package/dist/plugins/expo/index.d.ts +0 -14
  83. package/dist/plugins/expo/types.d.ts +0 -28
  84. package/dist/plugins/gatsby/index.d.ts +0 -11
  85. package/dist/plugins/gatsby/types.d.ts +0 -15
  86. package/dist/plugins/github-action/index.d.ts +0 -9
  87. package/dist/plugins/github-actions/index.d.ts +0 -11
  88. package/dist/plugins/github-actions/types.d.ts +0 -20
  89. package/dist/plugins/glob/index.d.ts +0 -12
  90. package/dist/plugins/graphql-codegen/index.d.ts +0 -11
  91. package/dist/plugins/graphql-codegen/types.d.ts +0 -37
  92. package/dist/plugins/husky/index.d.ts +0 -10
  93. package/dist/plugins/index.d.ts +0 -782
  94. package/dist/plugins/jest/helpers.d.ts +0 -4
  95. package/dist/plugins/jest/index.d.ts +0 -15
  96. package/dist/plugins/jest/types.d.ts +0 -3
  97. package/dist/plugins/karma/helpers.d.ts +0 -7
  98. package/dist/plugins/karma/index.d.ts +0 -12
  99. package/dist/plugins/karma/types.d.ts +0 -22
  100. package/dist/plugins/ladle/index.d.ts +0 -13
  101. package/dist/plugins/ladle/types.d.ts +0 -4
  102. package/dist/plugins/lefthook/index.d.ts +0 -9
  103. package/dist/plugins/lint-staged/index.d.ts +0 -11
  104. package/dist/plugins/lint-staged/types.d.ts +0 -5
  105. package/dist/plugins/linthtml/index.d.ts +0 -11
  106. package/dist/plugins/linthtml/types.d.ts +0 -4
  107. package/dist/plugins/lockfile-lint/index.d.ts +0 -8
  108. package/dist/plugins/lost-pixel/index.d.ts +0 -8
  109. package/dist/plugins/markdownlint/helpers.d.ts +0 -1
  110. package/dist/plugins/markdownlint/index.d.ts +0 -10
  111. package/dist/plugins/markdownlint/types.d.ts +0 -3
  112. package/dist/plugins/metro/index.d.ts +0 -15
  113. package/dist/plugins/metro/types.d.ts +0 -13
  114. package/dist/plugins/mocha/index.d.ts +0 -15
  115. package/dist/plugins/mocha/types.d.ts +0 -4
  116. package/dist/plugins/moonrepo/index.d.ts +0 -11
  117. package/dist/plugins/moonrepo/types.d.ts +0 -7
  118. package/dist/plugins/msw/index.d.ts +0 -11
  119. package/dist/plugins/msw/types.d.ts +0 -3
  120. package/dist/plugins/nest/index.d.ts +0 -10
  121. package/dist/plugins/nest/types.d.ts +0 -3
  122. package/dist/plugins/netlify/helpers.d.ts +0 -2
  123. package/dist/plugins/netlify/index.d.ts +0 -12
  124. package/dist/plugins/netlify/types.d.ts +0 -11
  125. package/dist/plugins/next/index.d.ts +0 -10
  126. package/dist/plugins/next/resolveFromAST.d.ts +0 -2
  127. package/dist/plugins/node/index.d.ts +0 -16
  128. package/dist/plugins/nodemon/index.d.ts +0 -10
  129. package/dist/plugins/npm-package-json-lint/index.d.ts +0 -11
  130. package/dist/plugins/npm-package-json-lint/types.d.ts +0 -3
  131. package/dist/plugins/nuxt/index.d.ts +0 -14
  132. package/dist/plugins/nuxt/types.d.ts +0 -8
  133. package/dist/plugins/nx/index.d.ts +0 -14
  134. package/dist/plugins/nx/types.d.ts +0 -19
  135. package/dist/plugins/nyc/index.d.ts +0 -10
  136. package/dist/plugins/nyc/types.d.ts +0 -4
  137. package/dist/plugins/oclif/index.d.ts +0 -10
  138. package/dist/plugins/oclif/types.d.ts +0 -4
  139. package/dist/plugins/playwright/index.d.ts +0 -21
  140. package/dist/plugins/playwright/types.d.ts +0 -36
  141. package/dist/plugins/playwright-ct/index.d.ts +0 -11
  142. package/dist/plugins/playwright-test/index.d.ts +0 -13
  143. package/dist/plugins/plop/index.d.ts +0 -8
  144. package/dist/plugins/postcss/index.d.ts +0 -10
  145. package/dist/plugins/postcss/types.d.ts +0 -3
  146. package/dist/plugins/preconstruct/index.d.ts +0 -10
  147. package/dist/plugins/preconstruct/types.d.ts +0 -3
  148. package/dist/plugins/prettier/index.d.ts +0 -10
  149. package/dist/plugins/prettier/types.d.ts +0 -8
  150. package/dist/plugins/react-cosmos/index.d.ts +0 -12
  151. package/dist/plugins/react-cosmos/types.d.ts +0 -5
  152. package/dist/plugins/react-router/index.d.ts +0 -10
  153. package/dist/plugins/react-router/types.d.ts +0 -7
  154. package/dist/plugins/release-it/index.d.ts +0 -10
  155. package/dist/plugins/release-it/types.d.ts +0 -10
  156. package/dist/plugins/remark/index.d.ts +0 -11
  157. package/dist/plugins/remark/types.d.ts +0 -3
  158. package/dist/plugins/remix/index.d.ts +0 -9
  159. package/dist/plugins/rollup/index.d.ts +0 -10
  160. package/dist/plugins/rsbuild/index.d.ts +0 -10
  161. package/dist/plugins/rsbuild/types.d.ts +0 -3
  162. package/dist/plugins/rspack/index.d.ts +0 -10
  163. package/dist/plugins/semantic-release/index.d.ts +0 -12
  164. package/dist/plugins/semantic-release/types.d.ts +0 -3
  165. package/dist/plugins/sentry/index.d.ts +0 -8
  166. package/dist/plugins/simple-git-hooks/index.d.ts +0 -10
  167. package/dist/plugins/simple-git-hooks/types.d.ts +0 -3
  168. package/dist/plugins/size-limit/index.d.ts +0 -8
  169. package/dist/plugins/sst/index.d.ts +0 -9
  170. package/dist/plugins/sst/resolveFromAST.d.ts +0 -2
  171. package/dist/plugins/starlight/index.d.ts +0 -9
  172. package/dist/plugins/starlight/resolveFromAST.d.ts +0 -2
  173. package/dist/plugins/storybook/index.d.ts +0 -13
  174. package/dist/plugins/storybook/types.d.ts +0 -20
  175. package/dist/plugins/stryker/index.d.ts +0 -10
  176. package/dist/plugins/stryker/types.d.ts +0 -5
  177. package/dist/plugins/stylelint/index.d.ts +0 -10
  178. package/dist/plugins/stylelint/types.d.ts +0 -8
  179. package/dist/plugins/svelte/index.d.ts +0 -9
  180. package/dist/plugins/syncpack/index.d.ts +0 -8
  181. package/dist/plugins/tailwind/index.d.ts +0 -8
  182. package/dist/plugins/tanstack-router/index.d.ts +0 -12
  183. package/dist/plugins/tanstack-router/resolveFromAST.d.ts +0 -2
  184. package/dist/plugins/tanstack-router/types.d.ts +0 -7
  185. package/dist/plugins/travis/index.d.ts +0 -10
  186. package/dist/plugins/ts-node/index.d.ts +0 -15
  187. package/dist/plugins/tsup/index.d.ts +0 -13
  188. package/dist/plugins/tsup/types.d.ts +0 -7
  189. package/dist/plugins/tsx/index.d.ts +0 -9
  190. package/dist/plugins/typedoc/index.d.ts +0 -16
  191. package/dist/plugins/typedoc/types.d.ts +0 -4
  192. package/dist/plugins/typescript/index.d.ts +0 -21
  193. package/dist/plugins/unbuild/index.d.ts +0 -10
  194. package/dist/plugins/unbuild/types.d.ts +0 -13
  195. package/dist/plugins/unocss/index.d.ts +0 -8
  196. package/dist/plugins/vercel-og/index.d.ts +0 -8
  197. package/dist/plugins/vike/index.d.ts +0 -8
  198. package/dist/plugins/vite/index.d.ts +0 -11
  199. package/dist/plugins/vitest/helpers.d.ts +0 -3
  200. package/dist/plugins/vitest/index.d.ts +0 -17
  201. package/dist/plugins/vitest/types.d.ts +0 -39
  202. package/dist/plugins/vue/index.d.ts +0 -10
  203. package/dist/plugins/vue/types.d.ts +0 -5
  204. package/dist/plugins/webdriver-io/index.d.ts +0 -10
  205. package/dist/plugins/webdriver-io/types.d.ts +0 -3
  206. package/dist/plugins/webpack/index.d.ts +0 -19
  207. package/dist/plugins/webpack/types.d.ts +0 -12
  208. package/dist/plugins/wireit/index.d.ts +0 -10
  209. package/dist/plugins/wireit/types.d.ts +0 -3
  210. package/dist/plugins/wrangler/index.d.ts +0 -10
  211. package/dist/plugins/wrangler/types.d.ts +0 -3
  212. package/dist/plugins/xo/index.d.ts +0 -11
  213. package/dist/plugins/xo/types.d.ts +0 -12
  214. package/dist/plugins/yarn/index.d.ts +0 -9
  215. package/dist/plugins/yorkie/index.d.ts +0 -11
  216. package/dist/plugins.d.ts +0 -7
  217. package/dist/reporters/codeclimate.d.ts +0 -3
  218. package/dist/reporters/codeowners.d.ts +0 -3
  219. package/dist/reporters/compact.d.ts +0 -3
  220. package/dist/reporters/disclosure.d.ts +0 -3
  221. package/dist/reporters/index.d.ts +0 -10
  222. package/dist/reporters/json.d.ts +0 -3
  223. package/dist/reporters/markdown.d.ts +0 -3
  224. package/dist/reporters/symbols.d.ts +0 -3
  225. package/dist/reporters/util.d.ts +0 -22
  226. package/dist/reporters/watch.d.ts +0 -12
  227. package/dist/schema/configuration.d.ts +0 -5439
  228. package/dist/schema/plugins.d.ts +0 -2204
  229. package/dist/types/PluginNames.d.ts +0 -2
  230. package/dist/types/args.d.ts +0 -14
  231. package/dist/types/cli.d.ts +0 -27
  232. package/dist/types/config.d.ts +0 -119
  233. package/dist/types/exports.d.ts +0 -24
  234. package/dist/types/imports.d.ts +0 -12
  235. package/dist/types/issues.d.ts +0 -88
  236. package/dist/types/module-graph.d.ts +0 -67
  237. package/dist/types/package-json.d.ts +0 -53
  238. package/dist/types/project.d.ts +0 -18
  239. package/dist/types/workspace.d.ts +0 -27
  240. package/dist/typescript/SourceFile.d.ts +0 -35
  241. package/dist/typescript/SourceFileManager.d.ts +0 -19
  242. package/dist/typescript/ast-helpers.d.ts +0 -38
  243. package/dist/typescript/create-hosts.d.ts +0 -21
  244. package/dist/typescript/find-internal-references.d.ts +0 -4
  245. package/dist/typescript/get-imports-and-exports.d.ts +0 -18
  246. package/dist/typescript/resolve-module-names.d.ts +0 -4
  247. package/dist/typescript/visitors/dynamic-imports/importCall.d.ts +0 -3
  248. package/dist/typescript/visitors/dynamic-imports/importType.d.ts +0 -3
  249. package/dist/typescript/visitors/dynamic-imports/index.d.ts +0 -3
  250. package/dist/typescript/visitors/dynamic-imports/jsDocType.d.ts +0 -4
  251. package/dist/typescript/visitors/dynamic-imports/requireCall.d.ts +0 -3
  252. package/dist/typescript/visitors/dynamic-imports/resolveCall.d.ts +0 -3
  253. package/dist/typescript/visitors/exports/exportAssignment.d.ts +0 -3
  254. package/dist/typescript/visitors/exports/exportDeclaration.d.ts +0 -3
  255. package/dist/typescript/visitors/exports/exportKeyword.d.ts +0 -3
  256. package/dist/typescript/visitors/exports/exportsAccessExpression.d.ts +0 -3
  257. package/dist/typescript/visitors/exports/index.d.ts +0 -3
  258. package/dist/typescript/visitors/exports/moduleExportsAccessExpression.d.ts +0 -3
  259. package/dist/typescript/visitors/helpers.d.ts +0 -8
  260. package/dist/typescript/visitors/imports/importDeclaration.d.ts +0 -3
  261. package/dist/typescript/visitors/imports/importEqualsDeclaration.d.ts +0 -3
  262. package/dist/typescript/visitors/imports/index.d.ts +0 -3
  263. package/dist/typescript/visitors/imports/reExportDeclaration.d.ts +0 -3
  264. package/dist/typescript/visitors/index.d.ts +0 -12
  265. package/dist/typescript/visitors/scripts/bun.d.ts +0 -3
  266. package/dist/typescript/visitors/scripts/execa.d.ts +0 -3
  267. package/dist/typescript/visitors/scripts/index.d.ts +0 -3
  268. package/dist/typescript/visitors/scripts/zx.d.ts +0 -3
  269. package/dist/util/Performance.d.ts +0 -26
  270. package/dist/util/array.d.ts +0 -5
  271. package/dist/util/cli-arguments.d.ts +0 -44
  272. package/dist/util/codeowners.d.ts +0 -2
  273. package/dist/util/create-workspace-graph.d.ts +0 -3
  274. package/dist/util/debug.d.ts +0 -4
  275. package/dist/util/empty.d.ts +0 -1
  276. package/dist/util/errors.d.ts +0 -13
  277. package/dist/util/file-entry-cache.d.ts +0 -29
  278. package/dist/util/fs.d.ts +0 -9
  279. package/dist/util/get-included-issue-types.d.ts +0 -18
  280. package/dist/util/get-referenced-inputs.d.ts +0 -5
  281. package/dist/util/git.d.ts +0 -1
  282. package/dist/util/glob-core.d.ts +0 -28
  283. package/dist/util/glob.d.ts +0 -16
  284. package/dist/util/graph-sequencer.d.ts +0 -9
  285. package/dist/util/has-strictly-ns-references.d.ts +0 -4
  286. package/dist/util/input.d.ts +0 -43
  287. package/dist/util/is-identifier-referenced.d.ts +0 -9
  288. package/dist/util/issue-initializers.d.ts +0 -4
  289. package/dist/util/jiti.d.ts +0 -1
  290. package/dist/util/loader.d.ts +0 -1
  291. package/dist/util/log.d.ts +0 -2
  292. package/dist/util/map-workspaces.d.ts +0 -5
  293. package/dist/util/math.d.ts +0 -6
  294. package/dist/util/module-graph.d.ts +0 -6
  295. package/dist/util/modules.d.ts +0 -10
  296. package/dist/util/object.d.ts +0 -4
  297. package/dist/util/package-json.d.ts +0 -14
  298. package/dist/util/package-name.d.ts +0 -2
  299. package/dist/util/path.d.ts +0 -13
  300. package/dist/util/plugin-config.d.ts +0 -24
  301. package/dist/util/plugin.d.ts +0 -9
  302. package/dist/util/regex.d.ts +0 -3
  303. package/dist/util/remove-export.d.ts +0 -8
  304. package/dist/util/reporter.d.ts +0 -3
  305. package/dist/util/require.d.ts +0 -1
  306. package/dist/util/resolve.d.ts +0 -2
  307. package/dist/util/string.d.ts +0 -1
  308. package/dist/util/tag.d.ts +0 -5
  309. package/dist/util/to-source-path.d.ts +0 -5
  310. package/dist/util/trace.d.ts +0 -20
  311. package/dist/util/tsconfig-loader.d.ts +0 -6
  312. package/dist/util/unwrap-function.d.ts +0 -1
  313. package/dist/util/watch.d.ts +0 -25
  314. package/dist/util/workspace.d.ts +0 -1
  315. package/dist/version.d.ts +0 -1
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/exports.js").ExportNode | import("../../../types/exports.js").ExportNode[] | undefined;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/exports.js").ExportNode | import("../../../types/exports.js").ExportNode[] | undefined;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/exports.js").ExportNode | import("../../../types/exports.js").ExportNode[] | undefined;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import type ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => ((node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/exports.js").ExportNode | import("../../../types/exports.js").ExportNode[] | undefined)[];
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/exports.js").ExportNode | import("../../../types/exports.js").ExportNode[] | undefined;
3
- export default _default;
@@ -1,8 +0,0 @@
1
- import ts from 'typescript';
2
- import type { ImportNode } from '../../types/imports.js';
3
- import type { BoundSourceFile } from '../SourceFile.js';
4
- export declare const isNotJS: (sourceFile: BoundSourceFile) => boolean;
5
- export declare const isJS: (sourceFile: BoundSourceFile) => boolean;
6
- export declare const isModule: (sourceFile: BoundSourceFile) => boolean;
7
- export declare function getImportsFromPragmas(sourceFile: BoundSourceFile): ImportNode[];
8
- export declare function hasImportSpecifier(node: ts.Statement, name: string, id?: string): boolean;
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/imports.js").ImportNode | import("../../../types/imports.js").ImportNode[] | undefined;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/imports.js").ImportNode | import("../../../types/imports.js").ImportNode[] | undefined;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import type ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => ((node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/imports.js").ImportNode | import("../../../types/imports.js").ImportNode[] | undefined)[];
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => import("../../../types/imports.js").ImportNode | import("../../../types/imports.js").ImportNode[] | undefined;
3
- export default _default;
@@ -1,12 +0,0 @@
1
- import type ts from 'typescript';
2
- import type { GetImportsAndExportsOptions } from '../../types/config.js';
3
- import type { ExportNode } from '../../types/exports.js';
4
- import type { ImportNode } from '../../types/imports.js';
5
- type FileCondition = (sourceFile: ts.SourceFile) => boolean;
6
- type VisitorFactory<T> = (fileCondition: FileCondition, fn: Visitor<T>) => VisitorCondition<T>;
7
- type VisitorCondition<T> = (sourceFile: ts.SourceFile) => Visitor<T>;
8
- type Visitor<T> = (node: ts.Node, options: GetImportsAndExportsOptions) => undefined | T | T[];
9
- export declare const importVisitor: VisitorFactory<ImportNode>;
10
- export declare const exportVisitor: VisitorFactory<ExportNode>;
11
- export declare const scriptVisitor: VisitorFactory<string>;
12
- export {};
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => string | string[] | undefined;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => string | string[] | undefined;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import type ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => ((node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => string | string[] | undefined)[];
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import ts from 'typescript';
2
- declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.js").GetImportsAndExportsOptions) => string | string[] | undefined;
3
- export default _default;
@@ -1,26 +0,0 @@
1
- import { type PerformanceEntry, PerformanceObserver } from 'node:perf_hooks';
2
- import { memoryUsage } from 'node:process';
3
- export declare const timerify: <T extends (...params: any[]) => any>(fn: T, name?: string) => T;
4
- declare class Performance {
5
- isEnabled: boolean;
6
- startTime: number;
7
- endTime: number;
8
- entries: PerformanceEntry[];
9
- instanceId?: number;
10
- fnObserver?: PerformanceObserver;
11
- gcObserver?: PerformanceObserver;
12
- memoryUsageStart?: ReturnType<typeof memoryUsage>;
13
- constructor(isEnabled: boolean);
14
- private setMark;
15
- private clearMark;
16
- private flush;
17
- private getEntriesByName;
18
- getTable(): string;
19
- getCurrentDurationInMs(startTime?: number): number;
20
- getMemHeapUsage(): number;
21
- getCurrentMemUsageInMb(): number;
22
- finalize(): Promise<void>;
23
- reset(): void;
24
- }
25
- export declare const perfObserver: Performance;
26
- export {};
@@ -1,5 +0,0 @@
1
- type Collection<T> = Array<T> | Set<T>;
2
- export declare const compact: <T>(collection: Collection<T | undefined>) => T[];
3
- export declare const arrayify: (value?: string[] | string) => string[];
4
- export declare const partition: <T>(collection: T[], predicate: (item: T) => unknown) => [T[], T[]];
5
- export {};
@@ -1,44 +0,0 @@
1
- export declare const helpText = "\u2702\uFE0F Find unused files, dependencies and exports in your JavaScript and TypeScript projects\n\nUsage: knip [options]\n\nOptions:\n -c, --config [file] Configuration file path (default: [.]knip.json[c], knip.(js|ts), knip.config.(js|ts) or package.json#knip)\n -t, --tsConfig [file] TypeScript configuration path (default: tsconfig.json)\n --production Analyze only production source files (e.g. no test files, devDependencies)\n --strict Consider only direct dependencies of workspace (not devDependencies, not other workspaces)\n -W, --workspace [dir] Analyze a single workspace (default: analyze all configured workspaces)\n --directory [dir] Run process from a different directory (default: cwd)\n --cache Enable caching\n --cache-location Change cache location (default: node_modules/.cache/knip)\n --watch Watch mode\n --no-gitignore Don't use .gitignore\n --include Report only provided issue type(s), can be comma-separated or repeated (1)\n --exclude Exclude provided issue type(s) from report, can be comma-separated or repeated (1)\n --dependencies Shortcut for --include dependencies,unlisted,binaries,unresolved\n --exports Shortcut for --include exports,nsExports,classMembers,types,nsTypes,enumMembers,duplicates\n --files Shortcut for --include files\n --fix Fix issues\n --fix-type Fix only issues of type, can be comma-separated or repeated (2)\n --allow-remove-files Allow Knip to remove files (with --fix)\n --include-libs Include type definitions from external dependencies (default: false)\n --include-entry-exports Include entry files when reporting unused exports\n --isolate-workspaces Isolate workspaces into separate programs\n -n, --no-progress Don't show dynamic progress updates (automatically enabled in CI environments)\n --preprocessor Preprocess the results before providing it to the reporter(s), can be repeated\n --preprocessor-options Pass extra options to the preprocessor (as JSON string, see --reporter-options example)\n --reporter Select reporter: symbols, compact, codeowners, json, codeclimate, markdown, disclosure, can be repeated (default: symbols)\n --reporter-options Pass extra options to the reporter (as JSON string, see example)\n --tags Include or exclude tagged exports\n --no-config-hints Suppress configuration hints\n --treat-config-hints-as-errors Exit with non-zero code (1) if there are any configuration hints\n --no-exit-code Always exit with code zero (0)\n --max-issues Maximum number of issues before non-zero exit code (default: 0)\n -d, --debug Show debug output\n --trace Show trace output\n --trace-export [name] Show trace output for named export(s)\n --trace-file [file] Show trace output for exports in file\n --performance Measure count and running time of expensive functions and display stats table\n -h, --help Print this help text\n -V, --version Print version\n\n(1) Issue types: files, dependencies, unlisted, unresolved, exports, nsExports, classMembers, types, nsTypes, enumMembers, duplicates\n(2) Fixable issue types: dependencies, exports, types\n\nExamples:\n\n$ knip\n$ knip --production\n$ knip --workspace packages/client --include files,dependencies\n$ knip -c ./config/knip.json --reporter compact\n$ knip --reporter codeowners --reporter-options '{\"path\":\".github/CODEOWNERS\"}'\n$ knip --tags=-lintignore\n\nWebsite: https://knip.dev";
2
- declare const _default: {
3
- cache?: boolean | undefined;
4
- 'cache-location'?: string | undefined;
5
- config?: string | undefined;
6
- debug?: boolean | undefined;
7
- dependencies?: boolean | undefined;
8
- directory?: string | undefined;
9
- exclude?: string[] | undefined;
10
- exports?: boolean | undefined;
11
- tags?: string[] | undefined;
12
- 'experimental-tags'?: string[] | undefined;
13
- files?: boolean | undefined;
14
- fix?: boolean | undefined;
15
- 'fix-type'?: string[] | undefined;
16
- 'allow-remove-files'?: boolean | undefined;
17
- help?: boolean | undefined;
18
- 'ignore-internal'?: boolean | undefined;
19
- include?: string[] | undefined;
20
- 'include-libs'?: boolean | undefined;
21
- 'include-entry-exports'?: boolean | undefined;
22
- 'isolate-workspaces'?: boolean | undefined;
23
- 'max-issues'?: string | undefined;
24
- 'no-config-hints'?: boolean | undefined;
25
- 'no-exit-code'?: boolean | undefined;
26
- 'no-gitignore'?: boolean | undefined;
27
- 'no-progress'?: boolean | undefined;
28
- performance?: boolean | undefined;
29
- production?: boolean | undefined;
30
- preprocessor?: string[] | undefined;
31
- 'preprocessor-options'?: string | undefined;
32
- reporter?: string[] | undefined;
33
- 'reporter-options'?: string | undefined;
34
- strict?: boolean | undefined;
35
- trace?: boolean | undefined;
36
- 'trace-export'?: string | undefined;
37
- 'trace-file'?: string | undefined;
38
- 'treat-config-hints-as-errors'?: boolean | undefined;
39
- tsConfig?: string | undefined;
40
- version?: boolean | undefined;
41
- watch?: boolean | undefined;
42
- workspace?: string | undefined;
43
- };
44
- export default _default;
@@ -1,2 +0,0 @@
1
- export declare function parseCodeowners(content: string): (filePath: string) => string[];
2
- export declare function createOwnershipEngine(filePath: string): (filePath: string) => string[];
@@ -1,3 +0,0 @@
1
- import type { WorkspacePackage } from '../types/package-json.js';
2
- export type WorkspaceGraph = Map<string, Set<string>>;
3
- export declare function createWorkspaceGraph(cwd: string, wsNames: string[], wsPkgNames: Set<string>, wsPackages: Map<string, WorkspacePackage>): WorkspaceGraph;
@@ -1,4 +0,0 @@
1
- export declare const inspect: (obj: unknown) => void;
2
- export declare const debugLog: (context: string, message: string) => void;
3
- export declare const debugLogObject: (context: string | [string, string], name: string, obj: unknown | (() => unknown)) => void;
4
- export declare const debugLogArray: (context: string | [string, string], message: string, elements: string[] | Set<string> | (() => string[] | Set<string>)) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import { ZodError } from 'zod';
2
- interface ErrorWithCause extends Error {
3
- cause: Error;
4
- }
5
- export declare class ConfigurationError extends Error {
6
- }
7
- export declare class LoaderError extends Error {
8
- }
9
- export declare const isKnownError: (error: Error) => error is ConfigurationError | LoaderError | ZodError<any>;
10
- export declare const isDisplayReason: (error: Error) => error is ErrorWithCause;
11
- export declare const isConfigurationError: (error: Error) => error is ConfigurationError;
12
- export declare const getKnownError: (error: Error) => Error;
13
- export {};
@@ -1,29 +0,0 @@
1
- import fs from 'node:fs';
2
- type MetaData<T> = {
3
- size: number;
4
- mtime: number;
5
- data?: T;
6
- };
7
- export type FileDescriptor<T> = {
8
- key: string;
9
- changed?: boolean;
10
- notFound?: boolean;
11
- err?: unknown;
12
- meta?: MetaData<T>;
13
- };
14
- export declare class FileEntryCache<T> {
15
- filePath: string;
16
- cache: Map<string, MetaData<T>>;
17
- normalizedEntries: Map<string, FileDescriptor<T>>;
18
- constructor(cacheId: string, _path: string);
19
- removeNotFoundFiles(): void;
20
- getFileDescriptor(filePath: string): FileDescriptor<T>;
21
- _getFileDescriptorUsingMtimeAndSize(filePath: string, fstat: fs.Stats): FileDescriptor<T>;
22
- removeEntry(entryName: string): void;
23
- _getMetaForFileUsingMtimeAndSize(cacheEntry: FileDescriptor<T>): {
24
- size: number;
25
- mtime: number;
26
- };
27
- reconcile(): void;
28
- }
29
- export {};
package/dist/util/fs.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export declare const isDirectory: (filePath: string) => boolean;
2
- export declare const isFile: (filePath: string) => boolean;
3
- export declare const findFile: (workingDir: string, fileName: string) => string | undefined;
4
- export declare const loadFile: (filePath: string) => Promise<string>;
5
- export declare const loadJSON: (filePath: string) => Promise<any>;
6
- export declare const loadYAML: (filePath: string) => Promise<unknown>;
7
- export declare const loadTOML: (filePath: string) => Promise<Record<string, import("smol-toml").TomlPrimitive>>;
8
- export declare const parseJSON: (filePath: string, contents: string) => Promise<any>;
9
- export declare const parseYAML: (contents: string) => unknown;
@@ -1,18 +0,0 @@
1
- import type { Report } from '../types/issues.js';
2
- export type CLIArguments = {
3
- includedIssueTypes: string[];
4
- excludedIssueTypes: string[];
5
- isDependenciesShorthand: boolean;
6
- isExportsShorthand: boolean;
7
- isFilesShorthand: boolean;
8
- };
9
- type Options = {
10
- isProduction?: boolean;
11
- include?: string[];
12
- exclude?: string[];
13
- dependencies?: boolean;
14
- exports?: boolean;
15
- };
16
- export declare const defaultExcludedIssueTypes: string[];
17
- export declare const getIncludedIssueTypes: (cliArgs: CLIArguments, { include, exclude, isProduction }?: Options) => Report;
18
- export {};
@@ -1,5 +0,0 @@
1
- import type { ConfigurationChief, Workspace } from '../ConfigurationChief.js';
2
- import type { DependencyDeputy } from '../DependencyDeputy.js';
3
- import type { IssueCollector } from '../IssueCollector.js';
4
- import { type Input } from './input.js';
5
- export declare const getReferencedInputsHandler: (collector: IssueCollector, deputy: DependencyDeputy, chief: ConfigurationChief, isGitIgnored: (s: string) => boolean) => (input: Input, workspace: Workspace) => string | undefined;
@@ -1 +0,0 @@
1
- export declare const getGitHookPaths: (defaultPath?: string, followGitConfig?: boolean) => string[];
@@ -1,28 +0,0 @@
1
- import { type Options as FastGlobOptions } from 'fast-glob';
2
- type Options = {
3
- gitignore: boolean;
4
- cwd: string;
5
- };
6
- type GlobOptions = {
7
- readonly gitignore: boolean;
8
- readonly cwd: string;
9
- readonly dir: string;
10
- label?: string;
11
- } & FastGlobOptionsWithoutCwd;
12
- type FastGlobOptionsWithoutCwd = Pick<FastGlobOptions, 'onlyDirectories' | 'ignore' | 'absolute' | 'dot'>;
13
- export declare const convertGitignoreToPicomatchIgnorePatterns: (pattern: string) => {
14
- negated: boolean;
15
- patterns: string[];
16
- };
17
- export declare const parseAndConvertGitignorePatterns: (patterns: string, ancestor?: string) => {
18
- negated: boolean;
19
- patterns: string[];
20
- }[];
21
- export declare const findAndParseGitignores: (cwd: string) => Promise<{
22
- gitignoreFiles: string[];
23
- ignores: Set<string>;
24
- unignores: string[];
25
- }>;
26
- export declare function glob(patterns: string | string[], options: GlobOptions): Promise<string[]>;
27
- export declare function getGitIgnoredHandler(options: Options): Promise<(path: string) => boolean>;
28
- export {};
@@ -1,16 +0,0 @@
1
- interface GlobOptions {
2
- cwd: string;
3
- dir?: string;
4
- patterns: string[];
5
- gitignore?: boolean;
6
- name?: boolean;
7
- label?: string;
8
- }
9
- export declare const prependDirToPattern: (dir: string, pattern: string) => string;
10
- export declare const negate: (pattern: string) => string;
11
- export declare const hasProductionSuffix: (pattern: string) => boolean;
12
- export declare const hasNoProductionSuffix: (pattern: string) => boolean;
13
- export declare const _glob: ({ cwd, dir, patterns, gitignore, label }: GlobOptions) => Promise<string[]>;
14
- export declare const _firstGlob: ({ cwd, patterns }: GlobOptions) => Promise<string | Buffer<ArrayBufferLike> | undefined>;
15
- export declare const _dirGlob: ({ cwd, patterns, gitignore }: GlobOptions) => Promise<string[]>;
16
- export {};
@@ -1,9 +0,0 @@
1
- type Graph<T> = Map<T, Set<T>>;
2
- type Groups<T> = T[][];
3
- interface Result<T> {
4
- safe: boolean;
5
- chunks: Groups<T>;
6
- cycles: Groups<T>;
7
- }
8
- export declare function graphSequencer<T>(graph: Graph<T>, includedNodes?: T[]): Result<T>;
9
- export {};
@@ -1,4 +0,0 @@
1
- import type { ImportDetails, ModuleGraph } from '../types/module-graph.js';
2
- export declare const hasStrictlyEnumReferences: (importsForExport: ImportDetails | undefined, id: string) => boolean;
3
- export declare const hasStrictlyNsReferences: (graph: ModuleGraph, importsForExport: ImportDetails | undefined, id: string) => [boolean, string?];
4
- export declare const getType: (hasOnlyNsReference: boolean, isType: boolean) => "exports" | "types" | "nsExports" | "nsTypes";
@@ -1,43 +0,0 @@
1
- import type { PluginName } from '../types/PluginNames.js';
2
- type InputType = 'binary' | 'entry' | 'project' | 'config' | 'dependency' | 'deferResolve' | 'deferResolveEntry';
3
- export interface Input {
4
- type: InputType;
5
- specifier: string;
6
- production?: boolean;
7
- optional?: boolean;
8
- dir?: string;
9
- containingFilePath?: string;
10
- skipExportsAnalysis?: string;
11
- }
12
- export interface ConfigInput extends Input {
13
- type: 'config';
14
- containingFilePath?: string;
15
- pluginName: PluginName;
16
- }
17
- type Options = {
18
- optional?: boolean;
19
- dir?: string;
20
- containingFilePath?: string;
21
- };
22
- export declare const fromBinary: (input: Input) => string;
23
- export declare const toBinary: (specifier: string, options?: Options) => Input;
24
- export declare const isBinary: (input: Input) => boolean;
25
- export declare const toEntry: (specifier: string) => Input;
26
- export declare const isEntry: (input: Input) => boolean;
27
- export declare const toProject: (specifier: string) => Input;
28
- export declare const isProject: (input: Input) => boolean;
29
- export declare const toProductionEntry: (specifier: string, options?: Options) => Input;
30
- export declare const isProductionEntry: (input: Input) => boolean;
31
- export declare const toConfig: (pluginName: PluginName, specifier: string, options?: Options) => ConfigInput;
32
- export declare const isConfig: (input: Input) => input is ConfigInput;
33
- export declare const toDependency: (specifier: string, options?: Options) => Input;
34
- export declare const isDependency: (input: Input) => boolean;
35
- export declare const toProductionDependency: (specifier: string) => Input;
36
- export declare const toDeferResolve: (specifier: string) => Input;
37
- export declare const isDeferResolve: (input: Input) => boolean;
38
- export declare const toDeferResolveProductionEntry: (specifier: string, options?: Options) => Input;
39
- export declare const isDeferResolveProductionEntry: (input: Input) => boolean;
40
- export declare const toDeferResolveEntry: (specifier: string, options?: Options) => Input;
41
- export declare const isDeferResolveEntry: (input: Input) => boolean;
42
- export declare const toDebugString: (input: Input) => string;
43
- export {};
@@ -1,9 +0,0 @@
1
- import type { ModuleGraph } from '../types/module-graph.js';
2
- import { type TraceNode } from './trace.js';
3
- type Result = {
4
- isReferenced: boolean;
5
- reExportingEntryFile: undefined | string;
6
- traceNode: TraceNode;
7
- };
8
- export declare const getIsIdentifierReferencedHandler: (graph: ModuleGraph, entryPaths: Set<string>) => (filePath: string, id: string, isIncludeEntryExports?: boolean, traceNode?: TraceNode, seen?: Set<string>) => Result;
9
- export {};
@@ -1,4 +0,0 @@
1
- import type { Counters, Issues, Rules } from '../types/issues.js';
2
- export declare const initIssues: () => Issues;
3
- export declare const initCounters: () => Counters;
4
- export declare const defaultRules: Rules;
@@ -1 +0,0 @@
1
- export declare const jiti: import("jiti").Jiti;
@@ -1 +0,0 @@
1
- export declare const _load: (filePath: string) => Promise<any>;
@@ -1,2 +0,0 @@
1
- export declare const logWarning: (prefix: string, message: string) => void;
2
- export declare const logError: (prefix: string, message: string) => void;
@@ -1,5 +0,0 @@
1
- import type { WorkspacePackage } from '../types/package-json.js';
2
- type Packages = Map<string, WorkspacePackage>;
3
- type WorkspacePkgNames = Set<string>;
4
- export default function mapWorkspaces(cwd: string, workspaces: string[]): Promise<[Packages, WorkspacePkgNames]>;
5
- export {};
@@ -1,6 +0,0 @@
1
- export declare function getStats(values: number[]): {
2
- min: number;
3
- max: number;
4
- sum: number;
5
- median: number;
6
- };
@@ -1,6 +0,0 @@
1
- import type { FileNode, IdToFileMap, IdToNsToFileMap, ImportDetails, ImportMap, ModuleGraph } from '../types/module-graph.js';
2
- export declare const getOrCreateFileNode: (graph: ModuleGraph, filePath: string) => FileNode;
3
- export declare const updateImportMap: (file: FileNode, importMap: ImportMap, graph: ModuleGraph) => void;
4
- export declare const createImports: () => ImportDetails;
5
- export declare const addValue: (map: IdToFileMap, id: string, value: string) => void;
6
- export declare const addNsValue: (map: IdToNsToFileMap, id: string, ns: string, value: string) => void;
@@ -1,10 +0,0 @@
1
- export declare const getPackageNameFromModuleSpecifier: (moduleSpecifier: string) => string | undefined;
2
- export declare const getPackageNameFromFilePath: (value: string) => string;
3
- export declare const getPackageNameFromSpecifier: (specifier: string) => string | undefined;
4
- export declare const isStartsLikePackageName: (specifier: string) => boolean;
5
- export declare const stripVersionFromSpecifier: (specifier: string) => string;
6
- export declare const extractBinary: (command: string) => string;
7
- export declare const isDefinitelyTyped: (packageName: string) => boolean;
8
- export declare const getDefinitelyTypedFor: (packageName: string) => string;
9
- export declare const getPackageFromDefinitelyTyped: (typedDependency: string) => string;
10
- export declare const sanitizeSpecifier: (specifier: string) => string;
@@ -1,4 +0,0 @@
1
- export declare const getValuesByKeyDeep: (obj: any, key: string) => unknown[];
2
- export declare const findByKeyDeep: <T>(obj: any, key: string) => T[];
3
- export declare const getKeysByValue: <T>(obj: T, value: unknown) => (keyof T)[];
4
- export declare const get: <T>(obj: T, path: string) => any;
@@ -1,14 +0,0 @@
1
- import type { PackageJson } from '../types/package-json.js';
2
- declare const INDENT: unique symbol;
3
- declare const NEWLINE: unique symbol;
4
- interface ExtendedPackageJson extends PackageJson {
5
- [INDENT]?: string;
6
- [NEWLINE]?: string;
7
- }
8
- export declare const load: (filePath: string) => Promise<ExtendedPackageJson>;
9
- export declare const save: (filePath: string, content: ExtendedPackageJson) => Promise<void>;
10
- export declare const getEntryPathsFromManifest: (manifest: PackageJson, options: {
11
- cwd: string;
12
- ignore: string[];
13
- }) => Promise<string[]>;
14
- export {};
@@ -1,2 +0,0 @@
1
- import type { PackageJson } from '../types/package-json.js';
2
- export declare function getPackageName(pkg: PackageJson, pathname: string): string | undefined;
@@ -1,13 +0,0 @@
1
- export declare const isAbsolute: (path: string) => boolean;
2
- export declare const dirname: (path: string) => string;
3
- export declare const extname: (path: string) => string;
4
- export declare const basename: (path: string, suffix?: string) => string;
5
- export declare const join: (...paths: string[]) => string;
6
- export declare const toPosix: (value: string) => string;
7
- export declare const cwd: string;
8
- export declare const resolve: (...paths: string[]) => string;
9
- export declare const relative: (from: string, to?: string) => string;
10
- export declare const isInNodeModules: (filePath: string) => boolean;
11
- export declare const toAbsolute: (id: string, base?: string) => string;
12
- export declare const toRelative: (id: string) => string;
13
- export declare const isInternal: (id: string) => boolean;
@@ -1,24 +0,0 @@
1
- export declare const toCosmiconfig: (moduleName: string, options?: {
2
- rcPrefix?: string;
3
- rcSuffix?: string;
4
- configDir?: boolean;
5
- configFiles?: boolean;
6
- configFilesAllExtensions?: boolean;
7
- additionalExtensions?: string[];
8
- }) => string[];
9
- export declare const toLilconfig: (moduleName: string, options?: {
10
- rcPrefix?: string;
11
- rcSuffix?: string;
12
- configDir?: boolean;
13
- configFiles?: boolean;
14
- configFilesAllExtensions?: boolean;
15
- additionalExtensions?: string[];
16
- }) => string[];
17
- export declare const toUnconfig: (moduleName: string, options?: {
18
- rcPrefix?: string;
19
- rcSuffix?: string;
20
- configDir?: boolean;
21
- configFiles?: boolean;
22
- configFilesAllExtensions?: boolean;
23
- additionalExtensions?: string[];
24
- }) => string[];
@@ -1,9 +0,0 @@
1
- export { _load as load } from './loader.js';
2
- import type { Plugin, PluginOptions, RawPluginConfiguration } from '../types/config.js';
3
- export declare const hasDependency: (dependencies: Set<string>, values: (string | RegExp)[]) => boolean;
4
- export declare const normalizePluginConfig: (pluginConfig: RawPluginConfiguration) => boolean | {
5
- config: string[] | null;
6
- entry: string[] | null;
7
- project: string[] | null;
8
- };
9
- export declare const loadConfigForPlugin: (configFilePath: string, plugin: Plugin, options: PluginOptions, pluginName: string) => Promise<any>;
@@ -1,3 +0,0 @@
1
- export declare const toRegexOrString: (value: string | RegExp) => string | RegExp;
2
- export declare const findMatch: (haystack: undefined | (string | RegExp)[], needle: string) => string | RegExp | undefined;
3
- export declare const isIdChar: (text: string) => boolean;
@@ -1,8 +0,0 @@
1
- interface FixerOptions {
2
- text: string;
3
- start: number;
4
- end: number;
5
- flags: number;
6
- }
7
- export declare const removeExport: ({ text, start, end, flags }: FixerOptions) => string;
8
- export {};
@@ -1,3 +0,0 @@
1
- import type { ReporterOptions } from '../types/issues.js';
2
- export declare const runPreprocessors: (processors: string[], data: ReporterOptions) => Promise<ReporterOptions>;
3
- export declare const runReporters: (reporter: string[], options: ReporterOptions) => Promise<void>;
@@ -1 +0,0 @@
1
- export declare const _require: NodeJS.Require;
@@ -1,2 +0,0 @@
1
- export declare const createSyncResolver: (extensions: string[]) => (specifier: string, baseDir: string) => string | undefined;
2
- export declare const _resolveSync: (specifier: string, baseDir: string) => string | undefined;
@@ -1 +0,0 @@
1
- export declare const truncate: (text: string, width: number) => string;
@@ -1,5 +0,0 @@
1
- import type { Tags } from '../types/cli.js';
2
- export declare const splitTags: (rawTags: string[]) => Tags;
3
- export declare const shouldIgnore: (jsDocTags: Set<string>, tags: Tags) => boolean;
4
- export declare const getShouldIgnoreHandler: (isProduction: boolean) => (jsDocTags: Set<string>) => boolean;
5
- export declare const getShouldIgnoreTagHandler: (tags: Tags) => (jsDocTags: Set<string>) => boolean;
@@ -1,5 +0,0 @@
1
- import type { CompilerOptions } from 'typescript';
2
- import type { ConfigurationChief, Workspace } from '../ConfigurationChief.js';
3
- export declare const augmentWorkspace: (workspace: Workspace, dir: string, compilerOptions: CompilerOptions) => void;
4
- export declare const getToSourcePathHandler: (chief: ConfigurationChief) => (filePath: string) => string | undefined;
5
- export type ToSourceFilePath = ReturnType<typeof getToSourcePathHandler>;
@@ -1,20 +0,0 @@
1
- import type { ModuleGraph } from '../types/module-graph.js';
2
- declare const isTrace: boolean;
3
- type CreateNode = {
4
- identifier?: string;
5
- hasRef?: boolean;
6
- isEntry?: boolean;
7
- };
8
- type Create = (filePath: string, options?: CreateNode) => TraceNode;
9
- export type TraceNode = {
10
- filePath: string;
11
- identifier?: string;
12
- hasRef: boolean;
13
- isEntry: boolean;
14
- children: Set<TraceNode>;
15
- };
16
- export { isTrace };
17
- export declare const printTrace: (node: TraceNode, filePath: string, identifier?: string) => void;
18
- export declare const createNode: Create;
19
- export declare const addNodes: (node: TraceNode, id: string, importedSymbols: ModuleGraph, filePaths?: Set<string>) => void;
20
- export declare const createAndPrintTrace: (filePath: string, options?: CreateNode) => void;
@@ -1,6 +0,0 @@
1
- import ts from 'typescript';
2
- export declare const loadTSConfig: (tsConfigFilePath: string) => Promise<{
3
- isFile: boolean;
4
- compilerOptions: ts.CompilerOptions;
5
- definitionPaths: string[];
6
- }>;
@@ -1 +0,0 @@
1
- export declare const unwrapFunction: (maybeFunction: unknown) => Promise<any>;