knip 6.4.1 → 6.6.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 (336) hide show
  1. package/dist/CacheConsultant.js +3 -3
  2. package/dist/CatalogCounselor.js +5 -5
  3. package/dist/ConfigurationChief.d.ts +39 -16
  4. package/dist/ConfigurationChief.js +15 -15
  5. package/dist/DependencyDeputy.d.ts +1 -1
  6. package/dist/DependencyDeputy.js +5 -5
  7. package/dist/IssueCollector.js +3 -3
  8. package/dist/IssueFixer.js +5 -5
  9. package/dist/JsonCatalogPeeker.js +1 -1
  10. package/dist/ProjectPrincipal.js +13 -13
  11. package/dist/WorkspaceWorker.d.ts +3 -2
  12. package/dist/WorkspaceWorker.js +39 -26
  13. package/dist/YamlCatalogPeeker.js +1 -1
  14. package/dist/binaries/bash-parser.js +10 -10
  15. package/dist/binaries/fallback.js +3 -3
  16. package/dist/binaries/index.js +3 -3
  17. package/dist/binaries/plugins.js +6 -6
  18. package/dist/binaries/resolvers/bun.js +4 -4
  19. package/dist/binaries/resolvers/bunx.js +4 -4
  20. package/dist/binaries/resolvers/find.js +1 -1
  21. package/dist/binaries/resolvers/index.js +8 -8
  22. package/dist/binaries/resolvers/npx.js +4 -4
  23. package/dist/binaries/resolvers/pnpm.js +3 -3
  24. package/dist/binaries/resolvers/pnpx.js +2 -2
  25. package/dist/binaries/resolvers/yarn.js +4 -4
  26. package/dist/cli.js +10 -10
  27. package/dist/compilers/index.d.ts +62 -22
  28. package/dist/compilers/index.js +2 -2
  29. package/dist/compilers/mdx.js +1 -1
  30. package/dist/compilers/scss.js +1 -1
  31. package/dist/constants.d.ts +25 -25
  32. package/dist/constants.js +1 -1
  33. package/dist/graph/analyze.js +7 -7
  34. package/dist/graph/build.d.ts +2 -2
  35. package/dist/graph/build.js +34 -26
  36. package/dist/graph-explorer/constants.d.ts +5 -5
  37. package/dist/graph-explorer/explorer.js +9 -9
  38. package/dist/graph-explorer/operations/build-exports-tree.js +2 -2
  39. package/dist/graph-explorer/operations/get-contention.js +3 -3
  40. package/dist/graph-explorer/operations/get-dependency-usage.js +1 -1
  41. package/dist/graph-explorer/operations/get-usage.js +5 -5
  42. package/dist/graph-explorer/operations/has-strictly-ns-references.js +1 -1
  43. package/dist/graph-explorer/operations/is-referenced.js +2 -2
  44. package/dist/graph-explorer/operations/resolve-definition.js +3 -3
  45. package/dist/graph-explorer/utils.d.ts +1 -1
  46. package/dist/graph-explorer/utils.js +2 -2
  47. package/dist/graph-explorer/visitors.js +1 -1
  48. package/dist/graph-explorer/walk-down.js +2 -2
  49. package/dist/graph-explorer/walk-up.js +2 -2
  50. package/dist/index.js +2 -2
  51. package/dist/manifest/helpers.js +2 -2
  52. package/dist/manifest/index.js +3 -3
  53. package/dist/plugins/_template/index.js +2 -2
  54. package/dist/plugins/angular/index.js +4 -4
  55. package/dist/plugins/astro/compiler-mdx.js +1 -1
  56. package/dist/plugins/astro/compiler.js +1 -1
  57. package/dist/plugins/astro/index.js +8 -6
  58. package/dist/plugins/astro/resolveFromAST.d.ts +1 -0
  59. package/dist/plugins/astro/resolveFromAST.js +40 -1
  60. package/dist/plugins/astro-db/index.js +1 -1
  61. package/dist/plugins/astro-og-canvas/index.js +2 -2
  62. package/dist/plugins/ava/index.js +2 -2
  63. package/dist/plugins/babel/helpers.d.ts +44 -6
  64. package/dist/plugins/babel/helpers.js +1 -1
  65. package/dist/plugins/babel/index.js +4 -4
  66. package/dist/plugins/biome/index.js +4 -4
  67. package/dist/plugins/bumpp/index.js +2 -2
  68. package/dist/plugins/bun/index.js +1 -1
  69. package/dist/plugins/c8/index.js +1 -1
  70. package/dist/plugins/capacitor/index.js +3 -3
  71. package/dist/plugins/changelogen/index.js +2 -2
  72. package/dist/plugins/changelogithub/index.js +2 -2
  73. package/dist/plugins/changesets/index.js +3 -3
  74. package/dist/plugins/commitizen/index.js +2 -2
  75. package/dist/plugins/commitlint/index.js +3 -3
  76. package/dist/plugins/convex/index.js +1 -1
  77. package/dist/plugins/create-typescript-app/index.js +1 -1
  78. package/dist/plugins/cspell/index.js +2 -2
  79. package/dist/plugins/cucumber/index.js +2 -2
  80. package/dist/plugins/cypress/helpers.js +2 -2
  81. package/dist/plugins/cypress/index.js +3 -3
  82. package/dist/plugins/danger/index.js +1 -1
  83. package/dist/plugins/dependency-cruiser/index.js +1 -1
  84. package/dist/plugins/docusaurus/helpers.js +2 -2
  85. package/dist/plugins/docusaurus/index.js +4 -4
  86. package/dist/plugins/dotenv/index.js +1 -1
  87. package/dist/plugins/drizzle/index.js +2 -2
  88. package/dist/plugins/eleventy/index.js +6 -6
  89. package/dist/plugins/eslint/helpers.js +5 -5
  90. package/dist/plugins/eslint/index.js +4 -4
  91. package/dist/plugins/eslint/resolveFromAST.js +3 -3
  92. package/dist/plugins/execa/index.js +2 -2
  93. package/dist/plugins/execa/visitors/execa.js +1 -1
  94. package/dist/plugins/expo/helpers.d.ts +3 -3
  95. package/dist/plugins/expo/helpers.js +3 -3
  96. package/dist/plugins/expo/index.js +4 -4
  97. package/dist/plugins/expressive-code/index.js +1 -1
  98. package/dist/plugins/gatsby/index.js +2 -2
  99. package/dist/plugins/github-action/index.js +4 -4
  100. package/dist/plugins/github-actions/index.js +4 -4
  101. package/dist/plugins/graphql-codegen/index.js +5 -5
  102. package/dist/plugins/hardhat/index.js +2 -2
  103. package/dist/plugins/husky/index.js +3 -3
  104. package/dist/plugins/i18next-parser/index.js +1 -1
  105. package/dist/plugins/index.d.ts +4 -0
  106. package/dist/plugins/index.js +152 -144
  107. package/dist/plugins/jest/helpers.js +2 -2
  108. package/dist/plugins/jest/index.js +4 -4
  109. package/dist/plugins/karma/helpers.d.ts +1 -1
  110. package/dist/plugins/karma/helpers.js +2 -2
  111. package/dist/plugins/karma/index.js +4 -4
  112. package/dist/plugins/knex/index.js +3 -3
  113. package/dist/plugins/ladle/index.js +4 -4
  114. package/dist/plugins/lefthook/index.js +5 -5
  115. package/dist/plugins/lint-staged/index.js +2 -2
  116. package/dist/plugins/linthtml/index.js +3 -3
  117. package/dist/plugins/lockfile-lint/index.js +2 -2
  118. package/dist/plugins/lost-pixel/index.js +1 -1
  119. package/dist/plugins/markdownlint/index.js +3 -3
  120. package/dist/plugins/mdx/index.js +2 -2
  121. package/dist/plugins/mdxlint/index.js +3 -3
  122. package/dist/plugins/metro/index.js +4 -4
  123. package/dist/plugins/mocha/index.js +2 -2
  124. package/dist/plugins/moonrepo/index.js +1 -1
  125. package/dist/plugins/msw/index.js +3 -3
  126. package/dist/plugins/nano-staged/index.js +1 -1
  127. package/dist/plugins/nest/index.js +2 -2
  128. package/dist/plugins/netlify/index.js +4 -4
  129. package/dist/plugins/next/index.js +3 -3
  130. package/dist/plugins/next/resolveFromAST.js +1 -1
  131. package/dist/plugins/next-intl/index.js +1 -1
  132. package/dist/plugins/next-mdx/index.js +3 -3
  133. package/dist/plugins/next-mdx/resolveFromAST.js +1 -1
  134. package/dist/plugins/nitro/index.js +3 -3
  135. package/dist/plugins/node/index.js +1 -1
  136. package/dist/plugins/node-modules-inspector/index.js +2 -2
  137. package/dist/plugins/npm-package-json-lint/index.js +3 -3
  138. package/dist/plugins/nuxt/helpers.js +3 -3
  139. package/dist/plugins/nuxt/index.js +10 -11
  140. package/dist/plugins/nx/index.js +4 -4
  141. package/dist/plugins/nyc/index.js +2 -2
  142. package/dist/plugins/oclif/index.js +2 -2
  143. package/dist/plugins/openapi-ts/index.js +2 -2
  144. package/dist/plugins/oxfmt/index.js +1 -1
  145. package/dist/plugins/oxlint/index.js +3 -3
  146. package/dist/plugins/panda-css/index.js +2 -2
  147. package/dist/plugins/parcel/index.js +2 -2
  148. package/dist/plugins/payload/index.js +2 -2
  149. package/dist/plugins/pino/index.d.ts +3 -0
  150. package/dist/plugins/pino/index.js +15 -0
  151. package/dist/plugins/pino/visitors/transportCall.d.ts +2 -0
  152. package/dist/plugins/pino/visitors/transportCall.js +87 -0
  153. package/dist/plugins/playwright/index.js +4 -4
  154. package/dist/plugins/playwright-ct/index.js +3 -3
  155. package/dist/plugins/playwright-test/index.js +1 -1
  156. package/dist/plugins/plop/index.js +1 -1
  157. package/dist/plugins/pm2/index.js +3 -3
  158. package/dist/plugins/pnpm/index.js +1 -1
  159. package/dist/plugins/postcss/index.js +3 -3
  160. package/dist/plugins/preconstruct/index.js +3 -3
  161. package/dist/plugins/prettier/index.js +6 -2
  162. package/dist/plugins/prisma/index.js +5 -5
  163. package/dist/plugins/qwik/index.js +5 -5
  164. package/dist/plugins/qwik/resolveFromAST.js +1 -1
  165. package/dist/plugins/raycast/index.js +3 -3
  166. package/dist/plugins/react-cosmos/index.js +3 -3
  167. package/dist/plugins/react-email/index.d.ts +3 -0
  168. package/dist/plugins/react-email/index.js +26 -0
  169. package/dist/plugins/react-native/index.js +2 -2
  170. package/dist/plugins/react-router/index.js +6 -10
  171. package/dist/plugins/relay/index.js +3 -3
  172. package/dist/plugins/release-it/index.js +2 -2
  173. package/dist/plugins/remark/index.js +3 -3
  174. package/dist/plugins/remix/index.js +1 -1
  175. package/dist/plugins/rolldown/index.js +3 -3
  176. package/dist/plugins/rolldown/resolveFromAST.js +1 -1
  177. package/dist/plugins/rollup/index.js +3 -3
  178. package/dist/plugins/rollup/resolveFromAST.js +1 -1
  179. package/dist/plugins/rsbuild/index.js +2 -2
  180. package/dist/plugins/rslib/index.js +1 -1
  181. package/dist/plugins/rspack/index.js +2 -2
  182. package/dist/plugins/rstest/index.js +2 -2
  183. package/dist/plugins/sanity/index.js +1 -1
  184. package/dist/plugins/semantic-release/index.js +3 -3
  185. package/dist/plugins/sentry/index.js +1 -1
  186. package/dist/plugins/serverless-framework/index.d.ts +3 -0
  187. package/dist/plugins/serverless-framework/index.js +23 -0
  188. package/dist/plugins/serverless-framework/types.d.ts +7 -0
  189. package/dist/plugins/serverless-framework/types.js +1 -0
  190. package/dist/plugins/simple-git-hooks/index.js +2 -2
  191. package/dist/plugins/size-limit/index.js +3 -3
  192. package/dist/plugins/sst/index.js +2 -2
  193. package/dist/plugins/sst/resolveFromAST.js +5 -5
  194. package/dist/plugins/starlight/index.js +4 -4
  195. package/dist/plugins/starlight/resolveFromAST.js +1 -1
  196. package/dist/plugins/stencil/index.js +3 -3
  197. package/dist/plugins/storybook/index.js +3 -3
  198. package/dist/plugins/stryker/index.js +2 -2
  199. package/dist/plugins/stylelint/index.js +3 -3
  200. package/dist/plugins/svelte/compiler.js +1 -1
  201. package/dist/plugins/svelte/index.js +3 -3
  202. package/dist/plugins/sveltejs-package/helpers.d.ts +8 -0
  203. package/dist/plugins/sveltejs-package/helpers.js +65 -0
  204. package/dist/plugins/sveltejs-package/index.d.ts +3 -0
  205. package/dist/plugins/sveltejs-package/index.js +27 -0
  206. package/dist/plugins/sveltekit/index.js +3 -3
  207. package/dist/plugins/svgo/index.js +1 -1
  208. package/dist/plugins/svgr/index.js +2 -2
  209. package/dist/plugins/swc/index.js +3 -3
  210. package/dist/plugins/syncpack/index.js +2 -2
  211. package/dist/plugins/tailwind/index.js +2 -2
  212. package/dist/plugins/tanstack-router/index.js +3 -3
  213. package/dist/plugins/taskfile/index.js +3 -3
  214. package/dist/plugins/travis/index.js +1 -1
  215. package/dist/plugins/tsdown/index.js +3 -3
  216. package/dist/plugins/tsdown/resolveFromAST.js +1 -1
  217. package/dist/plugins/tsup/index.js +3 -3
  218. package/dist/plugins/tsup/resolveFromAST.js +1 -1
  219. package/dist/plugins/tsx/index.js +2 -2
  220. package/dist/plugins/typedoc/index.js +2 -2
  221. package/dist/plugins/typescript/index.js +4 -4
  222. package/dist/plugins/unbuild/index.js +2 -2
  223. package/dist/plugins/unocss/index.js +2 -2
  224. package/dist/plugins/vercel-og/index.js +1 -1
  225. package/dist/plugins/vike/index.js +1 -1
  226. package/dist/plugins/vite/helpers.js +4 -4
  227. package/dist/plugins/vite/index.js +5 -5
  228. package/dist/plugins/vite/visitors/importMetaGlob.js +4 -4
  229. package/dist/plugins/vitepress/index.js +1 -1
  230. package/dist/plugins/vitest/helpers.d.ts +4 -2
  231. package/dist/plugins/vitest/helpers.js +18 -0
  232. package/dist/plugins/vitest/index.js +9 -23
  233. package/dist/plugins/vue/compiler.js +1 -1
  234. package/dist/plugins/vue/index.js +4 -4
  235. package/dist/plugins/webdriver-io/index.js +2 -2
  236. package/dist/plugins/webpack/index.js +5 -5
  237. package/dist/plugins/webpack/visitors/requireContext.js +6 -7
  238. package/dist/plugins/wireit/index.js +1 -1
  239. package/dist/plugins/wrangler/index.js +2 -2
  240. package/dist/plugins/xo/index.js +2 -2
  241. package/dist/plugins/yarn/index.js +2 -2
  242. package/dist/plugins/yorkie/index.js +2 -2
  243. package/dist/plugins/zx/index.js +2 -2
  244. package/dist/plugins.js +2 -2
  245. package/dist/reporters/codeclimate.js +2 -2
  246. package/dist/reporters/codeowners.js +3 -3
  247. package/dist/reporters/compact.js +1 -1
  248. package/dist/reporters/disclosure.js +1 -1
  249. package/dist/reporters/github-actions.js +4 -4
  250. package/dist/reporters/index.js +8 -8
  251. package/dist/reporters/json.js +4 -4
  252. package/dist/reporters/markdown.js +2 -2
  253. package/dist/reporters/symbols.js +2 -2
  254. package/dist/reporters/trace.js +7 -7
  255. package/dist/reporters/util/configuration-hints.d.ts +2 -2
  256. package/dist/reporters/util/configuration-hints.js +7 -10
  257. package/dist/reporters/util/util.d.ts +3 -3
  258. package/dist/reporters/util/util.js +16 -15
  259. package/dist/reporters/watch.js +7 -7
  260. package/dist/run.js +14 -14
  261. package/dist/schema/configuration.d.ts +89 -31
  262. package/dist/schema/configuration.js +2 -2
  263. package/dist/schema/plugins.d.ts +20 -0
  264. package/dist/schema/plugins.js +4 -0
  265. package/dist/session/build-maps.js +3 -3
  266. package/dist/session/file-descriptor.js +3 -3
  267. package/dist/session/index.js +7 -7
  268. package/dist/session/package-json-descriptor.js +1 -1
  269. package/dist/session/session.js +3 -3
  270. package/dist/types/PluginNames.d.ts +2 -2
  271. package/dist/types/PluginNames.js +4 -0
  272. package/dist/types/config.d.ts +13 -0
  273. package/dist/types/issues.d.ts +1 -1
  274. package/dist/typescript/SourceFileManager.js +3 -3
  275. package/dist/typescript/ast-helpers.d.ts +2 -0
  276. package/dist/typescript/ast-helpers.js +5 -5
  277. package/dist/typescript/comments.js +1 -1
  278. package/dist/typescript/follow-imports.js +2 -2
  279. package/dist/typescript/get-imports-and-exports.js +10 -10
  280. package/dist/typescript/resolve-module-names.js +5 -5
  281. package/dist/typescript/visitors/calls.js +3 -3
  282. package/dist/typescript/visitors/exports.js +4 -4
  283. package/dist/typescript/visitors/helpers.js +3 -3
  284. package/dist/typescript/visitors/imports.js +4 -4
  285. package/dist/typescript/visitors/members.js +4 -4
  286. package/dist/typescript/visitors/walk.js +9 -9
  287. package/dist/util/Performance.d.ts +1 -1
  288. package/dist/util/Performance.js +2 -2
  289. package/dist/util/catalog.js +3 -3
  290. package/dist/util/codeowners.js +4 -4
  291. package/dist/util/colors.d.ts +18 -0
  292. package/dist/util/colors.js +24 -0
  293. package/dist/util/create-input-handler.js +6 -6
  294. package/dist/util/create-options.d.ts +72 -33
  295. package/dist/util/create-options.js +14 -15
  296. package/dist/util/create-workspace-graph.js +1 -1
  297. package/dist/util/debug.js +2 -4
  298. package/dist/util/file-entry-cache.js +4 -4
  299. package/dist/util/fs.js +2 -2
  300. package/dist/util/get-included-issue-types.js +2 -2
  301. package/dist/util/git.js +1 -1
  302. package/dist/util/glob-cache.js +4 -4
  303. package/dist/util/glob-core.d.ts +3 -3
  304. package/dist/util/glob-core.js +80 -64
  305. package/dist/util/glob.d.ts +1 -1
  306. package/dist/util/glob.js +14 -7
  307. package/dist/util/input.js +1 -1
  308. package/dist/util/issue-initializers.js +1 -1
  309. package/dist/util/jiti.js +1 -1
  310. package/dist/util/load-config.js +3 -3
  311. package/dist/util/load-tsconfig.js +62 -50
  312. package/dist/util/loader.js +5 -5
  313. package/dist/util/log.js +3 -3
  314. package/dist/util/map-workspaces.js +6 -6
  315. package/dist/util/modules.js +2 -2
  316. package/dist/util/package-name.js +1 -1
  317. package/dist/util/parse-and-convert-gitignores.d.ts +4 -2
  318. package/dist/util/parse-and-convert-gitignores.js +19 -7
  319. package/dist/util/plugin.js +5 -5
  320. package/dist/util/remove-export.js +1 -1
  321. package/dist/util/reporter.js +3 -3
  322. package/dist/util/require.js +1 -1
  323. package/dist/util/resolve.js +3 -3
  324. package/dist/util/string.d.ts +1 -1
  325. package/dist/util/table.js +1 -1
  326. package/dist/util/tag.js +1 -1
  327. package/dist/util/to-source-path.d.ts +4 -2
  328. package/dist/util/to-source-path.js +46 -22
  329. package/dist/util/trace.js +8 -8
  330. package/dist/util/watch.js +8 -8
  331. package/dist/util/workspace-file-filter.js +2 -2
  332. package/dist/util/workspace-selectors.js +4 -4
  333. package/dist/version.d.ts +1 -1
  334. package/dist/version.js +1 -1
  335. package/package.json +12 -19
  336. package/schema.json +13 -1
@@ -1,7 +1,7 @@
1
- import picocolors from 'picocolors';
2
- import { perfObserver } from "../util/Performance.js";
3
- import { prettyMilliseconds } from "../util/string.js";
4
- import { flattenIssues, getIssueTypeTitle, getTableForType } from "./util/util.js";
1
+ import st from '../util/colors.js';
2
+ import { perfObserver } from '../util/Performance.js';
3
+ import { prettyMilliseconds } from '../util/string.js';
4
+ import { flattenIssues, getIssueTypeTitle, getTableForType } from './util/util.js';
5
5
  export default (options, { issues, streamer, duration, size }) => {
6
6
  const reportMultipleGroups = Object.values(options.includedIssueTypes).filter(Boolean).length > 1;
7
7
  let totalIssues = 0;
@@ -12,7 +12,7 @@ export default (options, { issues, streamer, duration, size }) => {
12
12
  const issuesForType = flattenIssues(issues[reportType]);
13
13
  if (issuesForType.length > 0) {
14
14
  if (title) {
15
- lines.push(`${picocolors.yellowBright(picocolors.underline(title))} (${issuesForType.length})`);
15
+ lines.push(`${st.style(['yellowBright', 'underline'], title)} (${issuesForType.length})`);
16
16
  }
17
17
  lines.push(...getTableForType(issuesForType, options.cwd).toRows());
18
18
  }
@@ -23,8 +23,8 @@ export default (options, { issues, streamer, duration, size }) => {
23
23
  const ms = duration ?? perfObserver.getCurrentDurationInMs();
24
24
  const summary = `${size} files (${prettyMilliseconds(ms)} • ${mem}MB)`;
25
25
  const messages = totalIssues === 0
26
- ? ['✂️ Excellent, Knip found no issues.', '', picocolors.gray(summary)]
27
- : [...lines, '', picocolors.gray(summary)];
26
+ ? ['✂️ Excellent, Knip found no issues.', '', st.gray(summary)]
27
+ : [...lines, '', st.gray(summary)];
28
28
  if (options.isDebug)
29
29
  console.log(messages.join('\n'));
30
30
  else
package/dist/run.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { watch } from 'node:fs';
2
- import { CatalogCounselor } from "./CatalogCounselor.js";
3
- import { ConfigurationChief } from "./ConfigurationChief.js";
4
- import { ConsoleStreamer } from "./ConsoleStreamer.js";
5
- import { DependencyDeputy } from "./DependencyDeputy.js";
6
- import { analyze } from "./graph/analyze.js";
7
- import { build } from "./graph/build.js";
8
- import { IssueCollector } from "./IssueCollector.js";
9
- import { ProjectPrincipal } from "./ProjectPrincipal.js";
10
- import watchReporter from "./reporters/watch.js";
11
- import { debugLogObject } from "./util/debug.js";
12
- import { flushGlobCache, initGlobCache } from "./util/glob-cache.js";
13
- import { getGitIgnoredHandler } from "./util/glob-core.js";
14
- import { getModuleSourcePathHandler } from "./util/to-source-path.js";
15
- import { getSessionHandler } from "./util/watch.js";
2
+ import { CatalogCounselor } from './CatalogCounselor.js';
3
+ import { ConfigurationChief } from './ConfigurationChief.js';
4
+ import { ConsoleStreamer } from './ConsoleStreamer.js';
5
+ import { DependencyDeputy } from './DependencyDeputy.js';
6
+ import { analyze } from './graph/analyze.js';
7
+ import { build } from './graph/build.js';
8
+ import { IssueCollector } from './IssueCollector.js';
9
+ import { ProjectPrincipal } from './ProjectPrincipal.js';
10
+ import watchReporter from './reporters/watch.js';
11
+ import { debugLogObject } from './util/debug.js';
12
+ import { flushGlobCache, initGlobCache } from './util/glob-cache.js';
13
+ import { getGitIgnoredHandler } from './util/glob-core.js';
14
+ import { getModuleSourcePathHandler } from './util/to-source-path.js';
15
+ import { getSessionHandler } from './util/watch.js';
16
16
  export const run = async (options) => {
17
17
  debugLogObject('*', 'Unresolved configuration', options);
18
18
  debugLogObject('*', 'Included issue types', options.includedIssueTypes);
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod/mini';
2
- type SyncCompiler = (filename: string, contents: string) => string;
3
- type AsyncCompiler = (filename: string, contents: string) => Promise<string>;
2
+ import type { CompilerAsync, CompilerSync } from '../compilers/types.ts';
4
3
  export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
5
4
  angular: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
6
5
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -382,6 +381,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
382
381
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
383
382
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
384
383
  }, z.core.$strip>]>>;
384
+ pino: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
385
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
386
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
387
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
388
+ }, z.core.$strip>]>>;
385
389
  playwright: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
386
390
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
387
391
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -447,6 +451,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
447
451
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
448
452
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
449
453
  }, z.core.$strip>]>>;
454
+ 'react-email': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
455
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
456
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
457
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
458
+ }, z.core.$strip>]>>;
450
459
  'react-native': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
451
460
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
452
461
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -522,6 +531,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
522
531
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
523
532
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
524
533
  }, z.core.$strip>]>>;
534
+ 'serverless-framework': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
535
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
536
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
537
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
538
+ }, z.core.$strip>]>>;
525
539
  'simple-git-hooks': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
526
540
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
527
541
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -567,6 +581,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
567
581
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
568
582
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
569
583
  }, z.core.$strip>]>>;
584
+ 'sveltejs-package': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
585
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
586
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
587
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
588
+ }, z.core.$strip>]>>;
570
589
  sveltekit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
571
590
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
572
591
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1114,6 +1133,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1114
1133
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1115
1134
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1116
1135
  }, z.core.$strip>]>>;
1136
+ pino: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1137
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1138
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1139
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1140
+ }, z.core.$strip>]>>;
1117
1141
  playwright: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1118
1142
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1119
1143
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1179,6 +1203,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1179
1203
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1180
1204
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1181
1205
  }, z.core.$strip>]>>;
1206
+ 'react-email': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1207
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1208
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1209
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1210
+ }, z.core.$strip>]>>;
1182
1211
  'react-native': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1183
1212
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1184
1213
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1254,6 +1283,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1254
1283
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1255
1284
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1256
1285
  }, z.core.$strip>]>>;
1286
+ 'serverless-framework': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1287
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1288
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1289
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1290
+ }, z.core.$strip>]>>;
1257
1291
  'simple-git-hooks': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1258
1292
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1259
1293
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1299,6 +1333,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1299
1333
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1300
1334
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1301
1335
  }, z.core.$strip>]>>;
1336
+ 'sveltejs-package': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1337
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1338
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1339
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1340
+ }, z.core.$strip>]>>;
1302
1341
  sveltekit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1303
1342
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1304
1343
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1454,6 +1493,34 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1454
1493
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1455
1494
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1456
1495
  }, z.core.$strip>]>>;
1496
+ $schema: z.ZodMiniOptional<z.ZodMiniString<string>>;
1497
+ rules: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"files">, z.ZodMiniLiteral<"dependencies">, z.ZodMiniLiteral<"devDependencies">, z.ZodMiniLiteral<"optionalPeerDependencies">, z.ZodMiniLiteral<"unlisted">, z.ZodMiniLiteral<"binaries">, z.ZodMiniLiteral<"unresolved">, z.ZodMiniLiteral<"exports">, z.ZodMiniLiteral<"types">, z.ZodMiniLiteral<"nsExports">, z.ZodMiniLiteral<"nsTypes">, z.ZodMiniLiteral<"duplicates">, z.ZodMiniLiteral<"enumMembers">, z.ZodMiniLiteral<"namespaceMembers">, z.ZodMiniLiteral<"catalog">]> & z.core.$partial, z.ZodMiniEnum<{
1498
+ error: "error";
1499
+ off: "off";
1500
+ warn: "warn";
1501
+ }>>>;
1502
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1503
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1504
+ paths: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>>>;
1505
+ ignore: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1506
+ ignoreFiles: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1507
+ ignoreBinaries: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
1508
+ ignoreDependencies: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
1509
+ ignoreMembers: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
1510
+ ignoreUnresolved: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
1511
+ ignoreExportsUsedInFile: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
1512
+ [k: string]: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1513
+ }, z.core.$strict>]>>;
1514
+ ignoreIssues: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"files">, z.ZodMiniLiteral<"dependencies">, z.ZodMiniLiteral<"devDependencies">, z.ZodMiniLiteral<"optionalPeerDependencies">, z.ZodMiniLiteral<"unlisted">, z.ZodMiniLiteral<"binaries">, z.ZodMiniLiteral<"unresolved">, z.ZodMiniLiteral<"exports">, z.ZodMiniLiteral<"types">, z.ZodMiniLiteral<"nsExports">, z.ZodMiniLiteral<"nsTypes">, z.ZodMiniLiteral<"duplicates">, z.ZodMiniLiteral<"enumMembers">, z.ZodMiniLiteral<"namespaceMembers">, z.ZodMiniLiteral<"catalog">]>>>>;
1515
+ ignoreWorkspaces: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
1516
+ includeEntryExports: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1517
+ compilers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<true>, z.ZodMiniCustom<CompilerSync, CompilerSync>]>, z.ZodMiniCustom<CompilerAsync, CompilerAsync>]>>>;
1518
+ syncCompilers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<true>, z.ZodMiniCustom<CompilerSync, CompilerSync>]>>>;
1519
+ asyncCompilers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniCustom<CompilerAsync, CompilerAsync>>>;
1520
+ tags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
1521
+ treatConfigHintsAsErrors: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1522
+ include: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"files">, z.ZodMiniLiteral<"dependencies">, z.ZodMiniLiteral<"devDependencies">, z.ZodMiniLiteral<"optionalPeerDependencies">, z.ZodMiniLiteral<"unlisted">, z.ZodMiniLiteral<"binaries">, z.ZodMiniLiteral<"unresolved">, z.ZodMiniLiteral<"exports">, z.ZodMiniLiteral<"types">, z.ZodMiniLiteral<"nsExports">, z.ZodMiniLiteral<"nsTypes">, z.ZodMiniLiteral<"duplicates">, z.ZodMiniLiteral<"enumMembers">, z.ZodMiniLiteral<"namespaceMembers">, z.ZodMiniLiteral<"catalog">]>>>;
1523
+ exclude: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"files">, z.ZodMiniLiteral<"dependencies">, z.ZodMiniLiteral<"devDependencies">, z.ZodMiniLiteral<"optionalPeerDependencies">, z.ZodMiniLiteral<"unlisted">, z.ZodMiniLiteral<"binaries">, z.ZodMiniLiteral<"unresolved">, z.ZodMiniLiteral<"exports">, z.ZodMiniLiteral<"types">, z.ZodMiniLiteral<"nsExports">, z.ZodMiniLiteral<"nsTypes">, z.ZodMiniLiteral<"duplicates">, z.ZodMiniLiteral<"enumMembers">, z.ZodMiniLiteral<"namespaceMembers">, z.ZodMiniLiteral<"catalog">]>>>;
1457
1524
  workspaces: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
1458
1525
  angular: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1459
1526
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1835,6 +1902,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1835
1902
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1836
1903
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1837
1904
  }, z.core.$strip>]>>;
1905
+ pino: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1906
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1907
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1908
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1909
+ }, z.core.$strip>]>>;
1838
1910
  playwright: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1839
1911
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1840
1912
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1900,6 +1972,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1900
1972
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1901
1973
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1902
1974
  }, z.core.$strip>]>>;
1975
+ 'react-email': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1976
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1977
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1978
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1979
+ }, z.core.$strip>]>>;
1903
1980
  'react-native': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1904
1981
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1905
1982
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1975,6 +2052,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1975
2052
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1976
2053
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1977
2054
  }, z.core.$strip>]>>;
2055
+ 'serverless-framework': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
2056
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2057
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2058
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2059
+ }, z.core.$strip>]>>;
1978
2060
  'simple-git-hooks': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1979
2061
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1980
2062
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -2020,6 +2102,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
2020
2102
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2021
2103
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2022
2104
  }, z.core.$strip>]>>;
2105
+ 'sveltejs-package': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
2106
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2107
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2108
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2109
+ }, z.core.$strip>]>>;
2023
2110
  sveltekit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
2024
2111
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2025
2112
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -2186,33 +2273,4 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
2186
2273
  ignoreUnresolved: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
2187
2274
  includeEntryExports: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2188
2275
  }, z.core.$strict>>>;
2189
- include: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"files">, z.ZodMiniLiteral<"dependencies">, z.ZodMiniLiteral<"devDependencies">, z.ZodMiniLiteral<"optionalPeerDependencies">, z.ZodMiniLiteral<"unlisted">, z.ZodMiniLiteral<"binaries">, z.ZodMiniLiteral<"unresolved">, z.ZodMiniLiteral<"exports">, z.ZodMiniLiteral<"types">, z.ZodMiniLiteral<"nsExports">, z.ZodMiniLiteral<"nsTypes">, z.ZodMiniLiteral<"duplicates">, z.ZodMiniLiteral<"enumMembers">, z.ZodMiniLiteral<"namespaceMembers">, z.ZodMiniLiteral<"catalog">]>>>;
2190
- exclude: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"files">, z.ZodMiniLiteral<"dependencies">, z.ZodMiniLiteral<"devDependencies">, z.ZodMiniLiteral<"optionalPeerDependencies">, z.ZodMiniLiteral<"unlisted">, z.ZodMiniLiteral<"binaries">, z.ZodMiniLiteral<"unresolved">, z.ZodMiniLiteral<"exports">, z.ZodMiniLiteral<"types">, z.ZodMiniLiteral<"nsExports">, z.ZodMiniLiteral<"nsTypes">, z.ZodMiniLiteral<"duplicates">, z.ZodMiniLiteral<"enumMembers">, z.ZodMiniLiteral<"namespaceMembers">, z.ZodMiniLiteral<"catalog">]>>>;
2191
- $schema: z.ZodMiniOptional<z.ZodMiniString<string>>;
2192
- rules: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"files">, z.ZodMiniLiteral<"dependencies">, z.ZodMiniLiteral<"devDependencies">, z.ZodMiniLiteral<"optionalPeerDependencies">, z.ZodMiniLiteral<"unlisted">, z.ZodMiniLiteral<"binaries">, z.ZodMiniLiteral<"unresolved">, z.ZodMiniLiteral<"exports">, z.ZodMiniLiteral<"types">, z.ZodMiniLiteral<"nsExports">, z.ZodMiniLiteral<"nsTypes">, z.ZodMiniLiteral<"duplicates">, z.ZodMiniLiteral<"enumMembers">, z.ZodMiniLiteral<"namespaceMembers">, z.ZodMiniLiteral<"catalog">]> & z.core.$partial, z.ZodMiniEnum<{
2193
- error: "error";
2194
- warn: "warn";
2195
- off: "off";
2196
- }>>>;
2197
- entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2198
- project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2199
- paths: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>>>;
2200
- ignore: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2201
- ignoreFiles: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
2202
- ignoreBinaries: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
2203
- ignoreDependencies: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
2204
- ignoreMembers: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
2205
- ignoreUnresolved: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
2206
- ignoreExportsUsedInFile: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
2207
- [k: string]: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2208
- }, z.core.$strict>]>>;
2209
- ignoreIssues: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"files">, z.ZodMiniLiteral<"dependencies">, z.ZodMiniLiteral<"devDependencies">, z.ZodMiniLiteral<"optionalPeerDependencies">, z.ZodMiniLiteral<"unlisted">, z.ZodMiniLiteral<"binaries">, z.ZodMiniLiteral<"unresolved">, z.ZodMiniLiteral<"exports">, z.ZodMiniLiteral<"types">, z.ZodMiniLiteral<"nsExports">, z.ZodMiniLiteral<"nsTypes">, z.ZodMiniLiteral<"duplicates">, z.ZodMiniLiteral<"enumMembers">, z.ZodMiniLiteral<"namespaceMembers">, z.ZodMiniLiteral<"catalog">]>>>>;
2210
- ignoreWorkspaces: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
2211
- includeEntryExports: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2212
- compilers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<true>, z.ZodMiniCustom<SyncCompiler, SyncCompiler>]>, z.ZodMiniCustom<AsyncCompiler, AsyncCompiler>]>>>;
2213
- syncCompilers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<true>, z.ZodMiniCustom<SyncCompiler, SyncCompiler>]>>>;
2214
- asyncCompilers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniCustom<AsyncCompiler, AsyncCompiler>>>;
2215
- tags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
2216
- treatConfigHintsAsErrors: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2217
2276
  }, z.core.$strict>;
2218
- export {};
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod/mini';
2
- import { SYMBOL_TYPE } from "../constants.js";
3
- import { globSchema, pluginsSchema } from "./plugins.js";
2
+ import { SYMBOL_TYPE } from '../constants.js';
3
+ import { globSchema, pluginsSchema } from './plugins.js';
4
4
  const pathsSchema = z.record(z.string(), z.array(z.string()));
5
5
  const syncCompilerSchema = z.union([z.literal(true), z.custom()]);
6
6
  const asyncCompilerSchema = z.custom();
@@ -386,6 +386,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
386
386
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
387
387
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
388
388
  }, z.core.$strip>]>;
389
+ pino: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
390
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
391
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
392
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
393
+ }, z.core.$strip>]>;
389
394
  playwright: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
390
395
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
391
396
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -451,6 +456,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
451
456
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
452
457
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
453
458
  }, z.core.$strip>]>;
459
+ 'react-email': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
460
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
461
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
462
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
463
+ }, z.core.$strip>]>;
454
464
  'react-native': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
455
465
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
456
466
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -526,6 +536,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
526
536
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
527
537
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
528
538
  }, z.core.$strip>]>;
539
+ 'serverless-framework': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
540
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
541
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
542
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
543
+ }, z.core.$strip>]>;
529
544
  'simple-git-hooks': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
530
545
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
531
546
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -571,6 +586,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
571
586
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
572
587
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
573
588
  }, z.core.$strip>]>;
589
+ 'sveltejs-package': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
590
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
591
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
592
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
593
+ }, z.core.$strip>]>;
574
594
  sveltekit: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
575
595
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
576
596
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -86,6 +86,7 @@ export const pluginsSchema = z.object({
86
86
  'panda-css': pluginSchema,
87
87
  parcel: pluginSchema,
88
88
  payload: pluginSchema,
89
+ pino: pluginSchema,
89
90
  playwright: pluginSchema,
90
91
  'playwright-ct': pluginSchema,
91
92
  'playwright-test': pluginSchema,
@@ -99,6 +100,7 @@ export const pluginsSchema = z.object({
99
100
  qwik: pluginSchema,
100
101
  raycast: pluginSchema,
101
102
  'react-cosmos': pluginSchema,
103
+ 'react-email': pluginSchema,
102
104
  'react-native': pluginSchema,
103
105
  'react-router': pluginSchema,
104
106
  relay: pluginSchema,
@@ -114,6 +116,7 @@ export const pluginsSchema = z.object({
114
116
  sanity: pluginSchema,
115
117
  'semantic-release': pluginSchema,
116
118
  sentry: pluginSchema,
119
+ 'serverless-framework': pluginSchema,
117
120
  'simple-git-hooks': pluginSchema,
118
121
  'size-limit': pluginSchema,
119
122
  sst: pluginSchema,
@@ -123,6 +126,7 @@ export const pluginsSchema = z.object({
123
126
  stryker: pluginSchema,
124
127
  stylelint: pluginSchema,
125
128
  svelte: pluginSchema,
129
+ 'sveltejs-package': pluginSchema,
126
130
  sveltekit: pluginSchema,
127
131
  svgo: pluginSchema,
128
132
  svgr: pluginSchema,
@@ -1,6 +1,6 @@
1
- import { IMPORT_STAR } from "../constants.js";
2
- import { getExportedIdentifiers } from "../graph-explorer/utils.js";
3
- import { forEachAliasReExport, forEachNamespaceReExport, forEachPassThroughReExport, getStarReExportSources, } from "../graph-explorer/visitors.js";
1
+ import { IMPORT_STAR } from '../constants.js';
2
+ import { getExportedIdentifiers } from '../graph-explorer/utils.js';
3
+ import { forEachAliasReExport, forEachNamespaceReExport, forEachPassThroughReExport, getStarReExportSources, } from '../graph-explorer/visitors.js';
4
4
  const FALLBACK_LOCATION = { identifier: undefined, pos: 0, line: 0, col: 0 };
5
5
  export const buildImportLookup = (fileNode) => {
6
6
  const imports = new Map();
@@ -1,6 +1,6 @@
1
- import { createGraphExplorer } from "../graph-explorer/explorer.js";
2
- import { toAbsolute } from "../util/path.js";
3
- import { buildExportsMap, buildImportLookup, buildInternalImports } from "./build-maps.js";
1
+ import { createGraphExplorer } from '../graph-explorer/explorer.js';
2
+ import { toAbsolute } from '../util/path.js';
3
+ import { buildExportsMap, buildImportLookup, buildInternalImports } from './build-maps.js';
4
4
  export const buildFileDescriptor = (filePath, cwd, graph, entryPaths, options = {}) => {
5
5
  const absolutePath = toAbsolute(filePath, cwd);
6
6
  const node = graph.get(absolutePath);
@@ -1,7 +1,7 @@
1
- export { IMPORT_STAR, KNIP_CONFIG_LOCATIONS, SIDE_EFFECTS } from "../constants.js";
2
- export { finalizeConfigurationHints } from "../reporters/util/configuration-hints.js";
3
- export { getIssuePrefix } from "../reporters/util/util.js";
4
- export { createOptions } from "../util/create-options.js";
5
- export { buildFileDescriptor } from "./file-descriptor.js";
6
- export { buildPackageJsonDescriptor } from "./package-json-descriptor.js";
7
- export { createSession } from "./session.js";
1
+ export { IMPORT_STAR, KNIP_CONFIG_LOCATIONS, SIDE_EFFECTS } from '../constants.js';
2
+ export { finalizeConfigurationHints } from '../reporters/util/configuration-hints.js';
3
+ export { getIssuePrefix } from '../reporters/util/util.js';
4
+ export { createOptions } from '../util/create-options.js';
5
+ export { buildFileDescriptor } from './file-descriptor.js';
6
+ export { buildPackageJsonDescriptor } from './package-json-descriptor.js';
7
+ export { createSession } from './session.js';
@@ -1,4 +1,4 @@
1
- import { createGraphExplorer } from "../graph-explorer/explorer.js";
1
+ import { createGraphExplorer } from '../graph-explorer/explorer.js';
2
2
  export const buildPackageJsonDescriptor = (graph, entryPaths) => {
3
3
  const explorer = createGraphExplorer(graph, entryPaths);
4
4
  return {
@@ -1,6 +1,6 @@
1
- import { run } from "../run.js";
2
- import { buildFileDescriptor } from "./file-descriptor.js";
3
- import { buildPackageJsonDescriptor } from "./package-json-descriptor.js";
1
+ import { run } from '../run.js';
2
+ import { buildFileDescriptor } from './file-descriptor.js';
3
+ import { buildPackageJsonDescriptor } from './package-json-descriptor.js';
4
4
  export const createSession = async (options) => {
5
5
  const { session, results } = await run(options);
6
6
  if (!session)
@@ -1,2 +1,2 @@
1
- export type PluginName = 'angular' | 'astro' | 'astro-db' | 'astro-og-canvas' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'execa' | 'expo' | 'expressive-code' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'hardhat' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'knex' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'next-intl' | 'next-mdx' | 'nitro' | 'node' | 'node-modules-inspector' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'openapi-ts' | 'oxfmt' | 'oxlint' | 'panda-css' | 'parcel' | 'payload' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'pm2' | 'pnpm' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'qwik' | 'raycast' | 'react-cosmos' | 'react-native' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rolldown' | 'rollup' | 'rsbuild' | 'rslib' | 'rspack' | 'rstest' | 'sanity' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'stencil' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'sveltekit' | 'svgo' | 'svgr' | 'swc' | 'syncpack' | 'tailwind' | 'tanstack-router' | 'taskfile' | 'travis' | 'ts-node' | 'tsdown' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'vercel-og' | 'vike' | 'vite' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'xo' | 'yarn' | 'yorkie' | 'zx';
2
- export declare const pluginNames: readonly ["angular", "astro", "astro-db", "astro-og-canvas", "ava", "babel", "biome", "bumpp", "bun", "c8", "capacitor", "changelogen", "changelogithub", "changesets", "commitizen", "commitlint", "convex", "create-typescript-app", "cspell", "cucumber", "cypress", "danger", "dependency-cruiser", "docusaurus", "dotenv", "drizzle", "eleventy", "eslint", "execa", "expo", "expressive-code", "gatsby", "github-action", "github-actions", "glob", "graphql-codegen", "hardhat", "husky", "i18next-parser", "jest", "karma", "knex", "ladle", "lefthook", "lint-staged", "linthtml", "lockfile-lint", "lost-pixel", "markdownlint", "mdx", "mdxlint", "metro", "mocha", "moonrepo", "msw", "nano-staged", "nest", "netlify", "next", "next-intl", "next-mdx", "nitro", "node", "node-modules-inspector", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "openapi-ts", "oxfmt", "oxlint", "panda-css", "parcel", "payload", "playwright", "playwright-ct", "playwright-test", "plop", "pm2", "pnpm", "postcss", "preconstruct", "prettier", "prisma", "qwik", "raycast", "react-cosmos", "react-native", "react-router", "relay", "release-it", "remark", "remix", "rolldown", "rollup", "rsbuild", "rslib", "rspack", "rstest", "sanity", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "stencil", "storybook", "stryker", "stylelint", "svelte", "sveltekit", "svgo", "svgr", "swc", "syncpack", "tailwind", "tanstack-router", "taskfile", "travis", "ts-node", "tsdown", "tsup", "tsx", "typedoc", "typescript", "unbuild", "unocss", "vercel-og", "vike", "vite", "vitepress", "vitest", "vue", "webdriver-io", "webpack", "wireit", "wrangler", "xo", "yarn", "yorkie", "zx"];
1
+ export type PluginName = 'angular' | 'astro' | 'astro-db' | 'astro-og-canvas' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'execa' | 'expo' | 'expressive-code' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'hardhat' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'knex' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'next-intl' | 'next-mdx' | 'nitro' | 'node' | 'node-modules-inspector' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'openapi-ts' | 'oxfmt' | 'oxlint' | 'panda-css' | 'parcel' | 'payload' | 'pino' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'pm2' | 'pnpm' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'qwik' | 'raycast' | 'react-cosmos' | 'react-email' | 'react-native' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rolldown' | 'rollup' | 'rsbuild' | 'rslib' | 'rspack' | 'rstest' | 'sanity' | 'semantic-release' | 'sentry' | 'serverless-framework' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'stencil' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'sveltejs-package' | 'sveltekit' | 'svgo' | 'svgr' | 'swc' | 'syncpack' | 'tailwind' | 'tanstack-router' | 'taskfile' | 'travis' | 'ts-node' | 'tsdown' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'vercel-og' | 'vike' | 'vite' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'xo' | 'yarn' | 'yorkie' | 'zx';
2
+ export declare const pluginNames: readonly ['angular', 'astro', 'astro-db', 'astro-og-canvas', 'ava', 'babel', 'biome', 'bumpp', 'bun', 'c8', 'capacitor', 'changelogen', 'changelogithub', 'changesets', 'commitizen', 'commitlint', 'convex', 'create-typescript-app', 'cspell', 'cucumber', 'cypress', 'danger', 'dependency-cruiser', 'docusaurus', 'dotenv', 'drizzle', 'eleventy', 'eslint', 'execa', 'expo', 'expressive-code', 'gatsby', 'github-action', 'github-actions', 'glob', 'graphql-codegen', 'hardhat', 'husky', 'i18next-parser', 'jest', 'karma', 'knex', 'ladle', 'lefthook', 'lint-staged', 'linthtml', 'lockfile-lint', 'lost-pixel', 'markdownlint', 'mdx', 'mdxlint', 'metro', 'mocha', 'moonrepo', 'msw', 'nano-staged', 'nest', 'netlify', 'next', 'next-intl', 'next-mdx', 'nitro', 'node', 'node-modules-inspector', 'nodemon', 'npm-package-json-lint', 'nuxt', 'nx', 'nyc', 'oclif', 'openapi-ts', 'oxfmt', 'oxlint', 'panda-css', 'parcel', 'payload', 'pino', 'playwright', 'playwright-ct', 'playwright-test', 'plop', 'pm2', 'pnpm', 'postcss', 'preconstruct', 'prettier', 'prisma', 'qwik', 'raycast', 'react-cosmos', 'react-email', 'react-native', 'react-router', 'relay', 'release-it', 'remark', 'remix', 'rolldown', 'rollup', 'rsbuild', 'rslib', 'rspack', 'rstest', 'sanity', 'semantic-release', 'sentry', 'serverless-framework', 'simple-git-hooks', 'size-limit', 'sst', 'starlight', 'stencil', 'storybook', 'stryker', 'stylelint', 'svelte', 'sveltejs-package', 'sveltekit', 'svgo', 'svgr', 'swc', 'syncpack', 'tailwind', 'tanstack-router', 'taskfile', 'travis', 'ts-node', 'tsdown', 'tsup', 'tsx', 'typedoc', 'typescript', 'unbuild', 'unocss', 'vercel-og', 'vike', 'vite', 'vitepress', 'vitest', 'vue', 'webdriver-io', 'webpack', 'wireit', 'wrangler', 'xo', 'yarn', 'yorkie', 'zx'];
@@ -75,6 +75,7 @@ export const pluginNames = [
75
75
  'panda-css',
76
76
  'parcel',
77
77
  'payload',
78
+ 'pino',
78
79
  'playwright',
79
80
  'playwright-ct',
80
81
  'playwright-test',
@@ -88,6 +89,7 @@ export const pluginNames = [
88
89
  'qwik',
89
90
  'raycast',
90
91
  'react-cosmos',
92
+ 'react-email',
91
93
  'react-native',
92
94
  'react-router',
93
95
  'relay',
@@ -103,6 +105,7 @@ export const pluginNames = [
103
105
  'sanity',
104
106
  'semantic-release',
105
107
  'sentry',
108
+ 'serverless-framework',
106
109
  'simple-git-hooks',
107
110
  'size-limit',
108
111
  'sst',
@@ -112,6 +115,7 @@ export const pluginNames = [
112
115
  'stryker',
113
116
  'stylelint',
114
117
  'svelte',
118
+ 'sveltejs-package',
115
119
  'sveltekit',
116
120
  'svgo',
117
121
  'svgr',
@@ -96,6 +96,18 @@ type PluginSetup = () => Promise<void> | void;
96
96
  export type IsLoadConfig = (options: PluginOptions, dependencies: Set<string>) => boolean;
97
97
  export type ResolveConfig<T = any> = (config: T, options: PluginOptions) => Promise<Input[]> | Input[];
98
98
  export type Resolve = (options: PluginOptions) => Promise<Input[]> | Input[];
99
+ export type SourceMap = {
100
+ srcDir: string;
101
+ outDir: string;
102
+ };
103
+ export interface ResolveSourceMapOptions {
104
+ cwd: string;
105
+ manifest: PackageJson;
106
+ dependencies: Set<string>;
107
+ rootCwd: string;
108
+ rootManifest: PackageJson | undefined;
109
+ }
110
+ export type ResolveSourceMap = (options: ResolveSourceMapOptions) => Promise<SourceMap[]> | SourceMap[];
99
111
  export type HandleInput = (input: Input) => string | undefined;
100
112
  export type RegisterCompilerInput = {
101
113
  extension: string;
@@ -141,6 +153,7 @@ export interface Plugin {
141
153
  isLoadConfig?: IsLoadConfig;
142
154
  resolveConfig?: ResolveConfig;
143
155
  resolve?: Resolve;
156
+ resolveSourceMap?: ResolveSourceMap;
144
157
  resolveFromAST?: ResolveFromAST;
145
158
  isFilterTransitiveDependencies?: boolean;
146
159
  registerCompilers?: RegisterCompilers;
@@ -70,7 +70,7 @@ export type Preprocessor = (options: ReporterOptions) => ReporterOptions;
70
70
  export type IssueSeverity = 'error' | 'warn' | 'off';
71
71
  export type Rules = Record<IssueType, IssueSeverity>;
72
72
  export type ConfigurationHints = Map<string, ConfigurationHint>;
73
- export type ConfigurationHintType = 'ignore' | 'ignoreFiles' | 'ignoreBinaries' | 'ignoreDependencies' | 'ignoreUnresolved' | 'ignoreWorkspaces' | 'entry-redundant' | 'project-redundant' | 'entry-top-level' | 'project-top-level' | 'entry-empty' | 'project-empty' | 'project-extension-unregistered' | 'project-extension-redundant' | 'package-entry' | 'top-level-unconfigured' | 'workspace-unconfigured';
73
+ export type ConfigurationHintType = 'ignore' | 'ignoreFiles' | 'ignoreBinaries' | 'ignoreDependencies' | 'ignoreUnresolved' | 'ignoreWorkspaces' | 'entry-redundant' | 'project-redundant' | 'entry-top-level' | 'project-top-level' | 'entry-empty' | 'project-empty' | 'project-extension-unregistered' | 'package-entry' | 'top-level-unconfigured' | 'workspace-unconfigured';
74
74
  export type ConfigurationHint = {
75
75
  type: ConfigurationHintType;
76
76
  identifier: string | RegExp;
@@ -1,7 +1,7 @@
1
1
  import { readFileSync } from 'node:fs';
2
- import { FOREIGN_FILE_EXTENSIONS } from "../constants.js";
3
- import { debugLog } from "../util/debug.js";
4
- import { extname, isInternal } from "../util/path.js";
2
+ import { FOREIGN_FILE_EXTENSIONS } from '../constants.js';
3
+ import { debugLog } from '../util/debug.js';
4
+ import { extname, isInternal } from '../util/path.js';
5
5
  export class SourceFileManager {
6
6
  sourceTextCache = new Map();
7
7
  syncCompilers;
@@ -1,4 +1,6 @@
1
1
  import type { ParseResult, Program } from 'oxc-parser';
2
+ export declare const getStringValue: (node: any) => string | undefined;
3
+ export declare const getPropertyKey: (prop: any) => string | undefined;
2
4
  export declare const getImportMap: (program: Program) => Map<string, string>;
3
5
  export declare const getDefaultImportName: (importMap: Map<string, string>, specifier: string) => string | undefined;
4
6
  export declare const getPropertyValues: (node: any, propertyName: string) => Set<string>;