knip 5.55.1 → 5.57.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 (71) hide show
  1. package/README.md +44 -20
  2. package/dist/CacheConsultant.d.ts +1 -0
  3. package/dist/CacheConsultant.js +1 -1
  4. package/dist/ConfigurationChief.d.ts +5 -0
  5. package/dist/DependencyDeputy.d.ts +2 -0
  6. package/dist/DependencyDeputy.js +6 -0
  7. package/dist/PrincipalFactory.d.ts +2 -9
  8. package/dist/PrincipalFactory.js +10 -6
  9. package/dist/ProjectPrincipal.d.ts +1 -1
  10. package/dist/ProjectPrincipal.js +3 -3
  11. package/dist/WorkspaceWorker.js +1 -1
  12. package/dist/cli.js +6 -5
  13. package/dist/compilers/index.d.ts +50 -0
  14. package/dist/graph/build.js +11 -2
  15. package/dist/plugins/changelogen/index.d.ts +9 -0
  16. package/dist/plugins/changelogen/index.js +14 -0
  17. package/dist/plugins/changelogithub/index.d.ts +9 -0
  18. package/dist/plugins/changelogithub/index.js +14 -0
  19. package/dist/plugins/convex/index.d.ts +8 -0
  20. package/dist/plugins/convex/index.js +11 -0
  21. package/dist/plugins/docusaurus/helpers.d.ts +5 -0
  22. package/dist/plugins/docusaurus/helpers.js +89 -0
  23. package/dist/plugins/docusaurus/index.d.ts +12 -0
  24. package/dist/plugins/docusaurus/index.js +36 -0
  25. package/dist/plugins/docusaurus/types.d.ts +40 -0
  26. package/dist/plugins/docusaurus/types.js +1 -0
  27. package/dist/plugins/hardhat/index.d.ts +9 -0
  28. package/dist/plugins/hardhat/index.js +16 -0
  29. package/dist/plugins/index.d.ts +40 -0
  30. package/dist/plugins/index.js +10 -0
  31. package/dist/plugins/mocha/index.js +5 -2
  32. package/dist/plugins/nx/index.js +1 -1
  33. package/dist/plugins/nx/types.d.ts +3 -1
  34. package/dist/plugins/tsx/index.d.ts +6 -0
  35. package/dist/plugins/tsx/index.js +24 -0
  36. package/dist/reporters/codeclimate.js +3 -3
  37. package/dist/reporters/codeowners.js +15 -30
  38. package/dist/reporters/compact.js +10 -4
  39. package/dist/reporters/disclosure.js +5 -24
  40. package/dist/reporters/markdown.js +2 -2
  41. package/dist/reporters/symbols.d.ts +1 -1
  42. package/dist/reporters/symbols.js +10 -45
  43. package/dist/reporters/util.d.ts +11 -7
  44. package/dist/reporters/util.js +45 -14
  45. package/dist/reporters/watch.js +7 -21
  46. package/dist/schema/configuration.d.ts +280 -0
  47. package/dist/schema/plugins.d.ts +115 -0
  48. package/dist/schema/plugins.js +5 -0
  49. package/dist/types/PluginNames.d.ts +2 -2
  50. package/dist/types/PluginNames.js +5 -0
  51. package/dist/types/project.d.ts +1 -0
  52. package/dist/typescript/resolve-module-names.js +2 -2
  53. package/dist/util/Performance.d.ts +7 -7
  54. package/dist/util/Performance.js +20 -16
  55. package/dist/util/cli-arguments.d.ts +2 -1
  56. package/dist/util/cli-arguments.js +2 -0
  57. package/dist/util/input.d.ts +8 -1
  58. package/dist/util/input.js +6 -0
  59. package/dist/util/math.js +1 -1
  60. package/dist/util/plugin-config.d.ts +8 -0
  61. package/dist/util/plugin-config.js +1 -0
  62. package/dist/util/resolve.d.ts +3 -1
  63. package/dist/util/resolve.js +7 -9
  64. package/dist/util/table.d.ts +4 -2
  65. package/dist/util/table.js +20 -24
  66. package/dist/util/watch.js +2 -2
  67. package/dist/version.d.ts +1 -1
  68. package/dist/version.js +1 -1
  69. package/package.json +2 -2
  70. package/schema.json +20 -0
  71. package/license +0 -12
@@ -1,21 +1,19 @@
1
1
  import picocolors from 'picocolors';
2
2
  import { ISSUE_TYPE_TITLE } from '../constants.js';
3
- import { relative, toRelative } from '../util/path.js';
4
- export const identity = (text) => text;
5
- export const getTitle = (reportType) => {
6
- return ISSUE_TYPE_TITLE[reportType];
7
- };
8
- export const logTitle = (title, count) => console.log(`${picocolors.yellowBright(picocolors.underline(title))} (${count})`);
9
- export const logTitleDimmed = (title) => console.log(`${picocolors.yellow(picocolors.underline(`${title}`))}`);
10
- export const logIssueLine = ({ owner, filePath, symbols, parentSymbol, severity }) => {
3
+ import { SymbolType } from '../types/issues.js';
4
+ import { relative } from '../util/path.js';
5
+ import { Table } from '../util/table.js';
6
+ export const plain = (text) => text;
7
+ export const dim = picocolors.gray;
8
+ const bright = picocolors.whiteBright;
9
+ export const getIssueTypeTitle = (reportType) => ISSUE_TYPE_TITLE[reportType];
10
+ export const getColoredTitle = (title, count) => `${picocolors.yellowBright(picocolors.underline(title))} (${count})`;
11
+ export const getDimmedTitle = (title) => `${picocolors.yellow(picocolors.underline(`${title}`))}`;
12
+ export const getIssueLine = ({ owner, filePath, symbols, parentSymbol, severity }) => {
11
13
  const symbol = symbols ? `: ${symbols.map(s => s.symbol).join(', ')}` : '';
12
14
  const parent = parentSymbol ? ` (${parentSymbol})` : '';
13
- const print = severity === 'warn' ? picocolors.gray : identity;
14
- console.log(`${owner ? `${picocolors.cyan(owner)} ` : ''}${print(`${relative(filePath)}${symbol}${parent}`)}`);
15
- };
16
- export const logIssueSet = (issues) => {
17
- for (const value of issues.sort())
18
- console.log(toRelative(value));
15
+ const print = severity === 'warn' ? dim : plain;
16
+ return `${owner ? `${picocolors.cyan(owner)} ` : ''}${print(`${relative(filePath)}${symbol}${parent}`)}`;
19
17
  };
20
18
  export const convert = (issue) => ({
21
19
  name: issue.symbol,
@@ -23,3 +21,36 @@ export const convert = (issue) => ({
23
21
  col: issue.col,
24
22
  pos: issue.pos,
25
23
  });
24
+ const sortByPos = (a, b) => {
25
+ const [filePathA, rowA, colA] = a.filePath.split(':');
26
+ const [filePathB, rowB, colB] = b.filePath.split(':');
27
+ return filePathA === filePathB
28
+ ? Number(rowA) === Number(rowB)
29
+ ? Number(colA) - Number(colB)
30
+ : Number(rowA) - Number(rowB)
31
+ : filePathA.localeCompare(filePathB);
32
+ };
33
+ const highlightSymbol = (issue) => (_) => {
34
+ if (issue.specifier && issue.specifier !== issue.symbol && issue.specifier.includes(issue.symbol)) {
35
+ const parts = issue.specifier.split(issue.symbol);
36
+ const rest = parts.slice(1).join('');
37
+ return [dim(parts[0]), bright(issue.symbol), dim(rest)].join('');
38
+ }
39
+ return issue.symbol;
40
+ };
41
+ export const getTableForType = (issues, options = { isUseColors: true }) => {
42
+ const table = new Table({ truncateStart: ['filePath'], noTruncate: ['symbolType'] });
43
+ for (const issue of issues.sort(sortByPos)) {
44
+ table.row();
45
+ const print = options.isUseColors && (issue.isFixed || issue.severity === 'warn') ? dim : plain;
46
+ const symbol = issue.symbols ? issue.symbols.map(s => s.symbol).join(', ') : issue.symbol;
47
+ table.cell('symbol', print(symbol), options.isUseColors ? highlightSymbol(issue) : () => symbol);
48
+ table.cell('parentSymbol', issue.parentSymbol && print(issue.parentSymbol));
49
+ table.cell('symbolType', issue.symbolType && issue.symbolType !== SymbolType.UNKNOWN && print(issue.symbolType));
50
+ const pos = issue.line === undefined ? '' : `:${issue.line}${issue.col === undefined ? '' : `:${issue.col}`}`;
51
+ const cell = issue.type === 'files' ? '' : `${relative(issue.filePath)}${pos}`;
52
+ table.cell('filePath', print(cell));
53
+ table.cell('fixed', issue.isFixed && print('(removed)'));
54
+ }
55
+ return table;
56
+ };
@@ -1,36 +1,22 @@
1
1
  import picocolors from 'picocolors';
2
2
  import { perfObserver } from '../util/Performance.js';
3
- import { relative } from '../util/path.js';
4
3
  import { prettyMilliseconds } from '../util/string.js';
5
- import { getTitle } from './util.js';
4
+ import { getIssueTypeTitle, getTableForType } from './util.js';
6
5
  export default ({ report, issues, streamer, startTime, size, isDebug }) => {
7
6
  const reportMultipleGroups = Object.values(report).filter(Boolean).length > 1;
8
7
  let totalIssues = 0;
9
8
  const lines = [];
10
- for (const [reportType, isReportType] of Object.entries(report)) {
11
- if (reportType === '_files')
12
- continue;
9
+ for (let [reportType, isReportType] of Object.entries(report)) {
10
+ if (reportType === 'files')
11
+ reportType = '_files';
13
12
  if (isReportType) {
14
- const title = reportMultipleGroups && getTitle(reportType);
15
- const isSet = issues[reportType] instanceof Set;
16
- const issuesForType = isSet
17
- ? Array.from(issues[reportType])
18
- : Object.values(issues[reportType]).flatMap(Object.values);
13
+ const title = reportMultipleGroups && getIssueTypeTitle(reportType);
14
+ const issuesForType = Object.values(issues[reportType]).flatMap(Object.values);
19
15
  if (issuesForType.length > 0) {
20
16
  if (title) {
21
17
  lines.push(`${picocolors.yellowBright(picocolors.underline(title))} (${issuesForType.length})`);
22
18
  }
23
- if (typeof issuesForType[0] === 'string') {
24
- lines.push(...issuesForType.map(filePath => relative(filePath)));
25
- }
26
- else {
27
- const width = issuesForType.reduce((max, issue) => Math.max(max, issue.symbol.length), 0) + 1;
28
- for (const issue of issuesForType) {
29
- const filePath = relative(issue.filePath);
30
- const pos = issue.line ? `:${issue.line}:${issue.col}` : '';
31
- lines.push(`${issue.symbol.padEnd(width)} ${filePath}${pos}`);
32
- }
33
- }
19
+ lines.push(...getTableForType(issuesForType).toRows());
34
20
  }
35
21
  totalIssues = totalIssues + issuesForType.length;
36
22
  }
@@ -124,6 +124,32 @@ export declare const knipConfigurationSchema: z.ZodObject<{
124
124
  entry?: string | string[] | undefined;
125
125
  project?: string | string[] | undefined;
126
126
  }>]>>;
127
+ changelogen: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
128
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
129
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
130
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ config?: string | string[] | undefined;
133
+ entry?: string | string[] | undefined;
134
+ project?: string | string[] | undefined;
135
+ }, {
136
+ config?: string | string[] | undefined;
137
+ entry?: string | string[] | undefined;
138
+ project?: string | string[] | undefined;
139
+ }>]>>;
140
+ changelogithub: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
141
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
142
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
143
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ config?: string | string[] | undefined;
146
+ entry?: string | string[] | undefined;
147
+ project?: string | string[] | undefined;
148
+ }, {
149
+ config?: string | string[] | undefined;
150
+ entry?: string | string[] | undefined;
151
+ project?: string | string[] | undefined;
152
+ }>]>>;
127
153
  changesets: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
128
154
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
129
155
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -163,6 +189,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
163
189
  entry?: string | string[] | undefined;
164
190
  project?: string | string[] | undefined;
165
191
  }>]>>;
192
+ convex: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
193
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
194
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
195
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ config?: string | string[] | undefined;
198
+ entry?: string | string[] | undefined;
199
+ project?: string | string[] | undefined;
200
+ }, {
201
+ config?: string | string[] | undefined;
202
+ entry?: string | string[] | undefined;
203
+ project?: string | string[] | undefined;
204
+ }>]>>;
166
205
  'create-typescript-app': z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
167
206
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
168
207
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -228,6 +267,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
228
267
  entry?: string | string[] | undefined;
229
268
  project?: string | string[] | undefined;
230
269
  }>]>>;
270
+ docusaurus: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
271
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
272
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
273
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ config?: string | string[] | undefined;
276
+ entry?: string | string[] | undefined;
277
+ project?: string | string[] | undefined;
278
+ }, {
279
+ config?: string | string[] | undefined;
280
+ entry?: string | string[] | undefined;
281
+ project?: string | string[] | undefined;
282
+ }>]>>;
231
283
  dotenv: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
232
284
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
233
285
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -358,6 +410,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
358
410
  entry?: string | string[] | undefined;
359
411
  project?: string | string[] | undefined;
360
412
  }>]>>;
413
+ hardhat: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
414
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
415
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
416
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ config?: string | string[] | undefined;
419
+ entry?: string | string[] | undefined;
420
+ project?: string | string[] | undefined;
421
+ }, {
422
+ config?: string | string[] | undefined;
423
+ entry?: string | string[] | undefined;
424
+ project?: string | string[] | undefined;
425
+ }>]>>;
361
426
  husky: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
362
427
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
363
428
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -1402,6 +1467,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1402
1467
  entry?: string | string[] | undefined;
1403
1468
  project?: string | string[] | undefined;
1404
1469
  } | undefined;
1470
+ changelogen?: string | boolean | string[] | {
1471
+ config?: string | string[] | undefined;
1472
+ entry?: string | string[] | undefined;
1473
+ project?: string | string[] | undefined;
1474
+ } | undefined;
1475
+ changelogithub?: string | boolean | string[] | {
1476
+ config?: string | string[] | undefined;
1477
+ entry?: string | string[] | undefined;
1478
+ project?: string | string[] | undefined;
1479
+ } | undefined;
1405
1480
  changesets?: string | boolean | string[] | {
1406
1481
  config?: string | string[] | undefined;
1407
1482
  entry?: string | string[] | undefined;
@@ -1417,6 +1492,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1417
1492
  entry?: string | string[] | undefined;
1418
1493
  project?: string | string[] | undefined;
1419
1494
  } | undefined;
1495
+ convex?: string | boolean | string[] | {
1496
+ config?: string | string[] | undefined;
1497
+ entry?: string | string[] | undefined;
1498
+ project?: string | string[] | undefined;
1499
+ } | undefined;
1420
1500
  'create-typescript-app'?: string | boolean | string[] | {
1421
1501
  config?: string | string[] | undefined;
1422
1502
  entry?: string | string[] | undefined;
@@ -1442,6 +1522,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1442
1522
  entry?: string | string[] | undefined;
1443
1523
  project?: string | string[] | undefined;
1444
1524
  } | undefined;
1525
+ docusaurus?: string | boolean | string[] | {
1526
+ config?: string | string[] | undefined;
1527
+ entry?: string | string[] | undefined;
1528
+ project?: string | string[] | undefined;
1529
+ } | undefined;
1445
1530
  dotenv?: string | boolean | string[] | {
1446
1531
  config?: string | string[] | undefined;
1447
1532
  entry?: string | string[] | undefined;
@@ -1492,6 +1577,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1492
1577
  entry?: string | string[] | undefined;
1493
1578
  project?: string | string[] | undefined;
1494
1579
  } | undefined;
1580
+ hardhat?: string | boolean | string[] | {
1581
+ config?: string | string[] | undefined;
1582
+ entry?: string | string[] | undefined;
1583
+ project?: string | string[] | undefined;
1584
+ } | undefined;
1495
1585
  husky?: string | boolean | string[] | {
1496
1586
  config?: string | string[] | undefined;
1497
1587
  entry?: string | string[] | undefined;
@@ -1922,6 +2012,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1922
2012
  entry?: string | string[] | undefined;
1923
2013
  project?: string | string[] | undefined;
1924
2014
  } | undefined;
2015
+ changelogen?: string | boolean | string[] | {
2016
+ config?: string | string[] | undefined;
2017
+ entry?: string | string[] | undefined;
2018
+ project?: string | string[] | undefined;
2019
+ } | undefined;
2020
+ changelogithub?: string | boolean | string[] | {
2021
+ config?: string | string[] | undefined;
2022
+ entry?: string | string[] | undefined;
2023
+ project?: string | string[] | undefined;
2024
+ } | undefined;
1925
2025
  changesets?: string | boolean | string[] | {
1926
2026
  config?: string | string[] | undefined;
1927
2027
  entry?: string | string[] | undefined;
@@ -1937,6 +2037,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1937
2037
  entry?: string | string[] | undefined;
1938
2038
  project?: string | string[] | undefined;
1939
2039
  } | undefined;
2040
+ convex?: string | boolean | string[] | {
2041
+ config?: string | string[] | undefined;
2042
+ entry?: string | string[] | undefined;
2043
+ project?: string | string[] | undefined;
2044
+ } | undefined;
1940
2045
  'create-typescript-app'?: string | boolean | string[] | {
1941
2046
  config?: string | string[] | undefined;
1942
2047
  entry?: string | string[] | undefined;
@@ -1962,6 +2067,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1962
2067
  entry?: string | string[] | undefined;
1963
2068
  project?: string | string[] | undefined;
1964
2069
  } | undefined;
2070
+ docusaurus?: string | boolean | string[] | {
2071
+ config?: string | string[] | undefined;
2072
+ entry?: string | string[] | undefined;
2073
+ project?: string | string[] | undefined;
2074
+ } | undefined;
1965
2075
  dotenv?: string | boolean | string[] | {
1966
2076
  config?: string | string[] | undefined;
1967
2077
  entry?: string | string[] | undefined;
@@ -2012,6 +2122,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2012
2122
  entry?: string | string[] | undefined;
2013
2123
  project?: string | string[] | undefined;
2014
2124
  } | undefined;
2125
+ hardhat?: string | boolean | string[] | {
2126
+ config?: string | string[] | undefined;
2127
+ entry?: string | string[] | undefined;
2128
+ project?: string | string[] | undefined;
2129
+ } | undefined;
2015
2130
  husky?: string | boolean | string[] | {
2016
2131
  config?: string | string[] | undefined;
2017
2132
  entry?: string | string[] | undefined;
@@ -2492,6 +2607,32 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2492
2607
  entry?: string | string[] | undefined;
2493
2608
  project?: string | string[] | undefined;
2494
2609
  }>]>>;
2610
+ changelogen: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2611
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2612
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2613
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ config?: string | string[] | undefined;
2616
+ entry?: string | string[] | undefined;
2617
+ project?: string | string[] | undefined;
2618
+ }, {
2619
+ config?: string | string[] | undefined;
2620
+ entry?: string | string[] | undefined;
2621
+ project?: string | string[] | undefined;
2622
+ }>]>>;
2623
+ changelogithub: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2624
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2625
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2626
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2627
+ }, "strip", z.ZodTypeAny, {
2628
+ config?: string | string[] | undefined;
2629
+ entry?: string | string[] | undefined;
2630
+ project?: string | string[] | undefined;
2631
+ }, {
2632
+ config?: string | string[] | undefined;
2633
+ entry?: string | string[] | undefined;
2634
+ project?: string | string[] | undefined;
2635
+ }>]>>;
2495
2636
  changesets: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2496
2637
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2497
2638
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -2531,6 +2672,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2531
2672
  entry?: string | string[] | undefined;
2532
2673
  project?: string | string[] | undefined;
2533
2674
  }>]>>;
2675
+ convex: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2676
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2677
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2678
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ config?: string | string[] | undefined;
2681
+ entry?: string | string[] | undefined;
2682
+ project?: string | string[] | undefined;
2683
+ }, {
2684
+ config?: string | string[] | undefined;
2685
+ entry?: string | string[] | undefined;
2686
+ project?: string | string[] | undefined;
2687
+ }>]>>;
2534
2688
  'create-typescript-app': z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2535
2689
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2536
2690
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -2596,6 +2750,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2596
2750
  entry?: string | string[] | undefined;
2597
2751
  project?: string | string[] | undefined;
2598
2752
  }>]>>;
2753
+ docusaurus: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2754
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2755
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2756
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2757
+ }, "strip", z.ZodTypeAny, {
2758
+ config?: string | string[] | undefined;
2759
+ entry?: string | string[] | undefined;
2760
+ project?: string | string[] | undefined;
2761
+ }, {
2762
+ config?: string | string[] | undefined;
2763
+ entry?: string | string[] | undefined;
2764
+ project?: string | string[] | undefined;
2765
+ }>]>>;
2599
2766
  dotenv: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2600
2767
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2601
2768
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -2726,6 +2893,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2726
2893
  entry?: string | string[] | undefined;
2727
2894
  project?: string | string[] | undefined;
2728
2895
  }>]>>;
2896
+ hardhat: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2897
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2898
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2899
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2900
+ }, "strip", z.ZodTypeAny, {
2901
+ config?: string | string[] | undefined;
2902
+ entry?: string | string[] | undefined;
2903
+ project?: string | string[] | undefined;
2904
+ }, {
2905
+ config?: string | string[] | undefined;
2906
+ entry?: string | string[] | undefined;
2907
+ project?: string | string[] | undefined;
2908
+ }>]>>;
2729
2909
  husky: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2730
2910
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2731
2911
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -3773,6 +3953,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
3773
3953
  entry?: string | string[] | undefined;
3774
3954
  project?: string | string[] | undefined;
3775
3955
  } | undefined;
3956
+ changelogen?: string | boolean | string[] | {
3957
+ config?: string | string[] | undefined;
3958
+ entry?: string | string[] | undefined;
3959
+ project?: string | string[] | undefined;
3960
+ } | undefined;
3961
+ changelogithub?: string | boolean | string[] | {
3962
+ config?: string | string[] | undefined;
3963
+ entry?: string | string[] | undefined;
3964
+ project?: string | string[] | undefined;
3965
+ } | undefined;
3776
3966
  changesets?: string | boolean | string[] | {
3777
3967
  config?: string | string[] | undefined;
3778
3968
  entry?: string | string[] | undefined;
@@ -3788,6 +3978,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
3788
3978
  entry?: string | string[] | undefined;
3789
3979
  project?: string | string[] | undefined;
3790
3980
  } | undefined;
3981
+ convex?: string | boolean | string[] | {
3982
+ config?: string | string[] | undefined;
3983
+ entry?: string | string[] | undefined;
3984
+ project?: string | string[] | undefined;
3985
+ } | undefined;
3791
3986
  'create-typescript-app'?: string | boolean | string[] | {
3792
3987
  config?: string | string[] | undefined;
3793
3988
  entry?: string | string[] | undefined;
@@ -3813,6 +4008,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
3813
4008
  entry?: string | string[] | undefined;
3814
4009
  project?: string | string[] | undefined;
3815
4010
  } | undefined;
4011
+ docusaurus?: string | boolean | string[] | {
4012
+ config?: string | string[] | undefined;
4013
+ entry?: string | string[] | undefined;
4014
+ project?: string | string[] | undefined;
4015
+ } | undefined;
3816
4016
  dotenv?: string | boolean | string[] | {
3817
4017
  config?: string | string[] | undefined;
3818
4018
  entry?: string | string[] | undefined;
@@ -3863,6 +4063,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
3863
4063
  entry?: string | string[] | undefined;
3864
4064
  project?: string | string[] | undefined;
3865
4065
  } | undefined;
4066
+ hardhat?: string | boolean | string[] | {
4067
+ config?: string | string[] | undefined;
4068
+ entry?: string | string[] | undefined;
4069
+ project?: string | string[] | undefined;
4070
+ } | undefined;
3866
4071
  husky?: string | boolean | string[] | {
3867
4072
  config?: string | string[] | undefined;
3868
4073
  entry?: string | string[] | undefined;
@@ -4301,6 +4506,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4301
4506
  entry?: string | string[] | undefined;
4302
4507
  project?: string | string[] | undefined;
4303
4508
  } | undefined;
4509
+ changelogen?: string | boolean | string[] | {
4510
+ config?: string | string[] | undefined;
4511
+ entry?: string | string[] | undefined;
4512
+ project?: string | string[] | undefined;
4513
+ } | undefined;
4514
+ changelogithub?: string | boolean | string[] | {
4515
+ config?: string | string[] | undefined;
4516
+ entry?: string | string[] | undefined;
4517
+ project?: string | string[] | undefined;
4518
+ } | undefined;
4304
4519
  changesets?: string | boolean | string[] | {
4305
4520
  config?: string | string[] | undefined;
4306
4521
  entry?: string | string[] | undefined;
@@ -4316,6 +4531,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4316
4531
  entry?: string | string[] | undefined;
4317
4532
  project?: string | string[] | undefined;
4318
4533
  } | undefined;
4534
+ convex?: string | boolean | string[] | {
4535
+ config?: string | string[] | undefined;
4536
+ entry?: string | string[] | undefined;
4537
+ project?: string | string[] | undefined;
4538
+ } | undefined;
4319
4539
  'create-typescript-app'?: string | boolean | string[] | {
4320
4540
  config?: string | string[] | undefined;
4321
4541
  entry?: string | string[] | undefined;
@@ -4341,6 +4561,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4341
4561
  entry?: string | string[] | undefined;
4342
4562
  project?: string | string[] | undefined;
4343
4563
  } | undefined;
4564
+ docusaurus?: string | boolean | string[] | {
4565
+ config?: string | string[] | undefined;
4566
+ entry?: string | string[] | undefined;
4567
+ project?: string | string[] | undefined;
4568
+ } | undefined;
4344
4569
  dotenv?: string | boolean | string[] | {
4345
4570
  config?: string | string[] | undefined;
4346
4571
  entry?: string | string[] | undefined;
@@ -4391,6 +4616,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4391
4616
  entry?: string | string[] | undefined;
4392
4617
  project?: string | string[] | undefined;
4393
4618
  } | undefined;
4619
+ hardhat?: string | boolean | string[] | {
4620
+ config?: string | string[] | undefined;
4621
+ entry?: string | string[] | undefined;
4622
+ project?: string | string[] | undefined;
4623
+ } | undefined;
4394
4624
  husky?: string | boolean | string[] | {
4395
4625
  config?: string | string[] | undefined;
4396
4626
  entry?: string | string[] | undefined;
@@ -4825,6 +5055,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4825
5055
  entry?: string | string[] | undefined;
4826
5056
  project?: string | string[] | undefined;
4827
5057
  } | undefined;
5058
+ changelogen?: string | boolean | string[] | {
5059
+ config?: string | string[] | undefined;
5060
+ entry?: string | string[] | undefined;
5061
+ project?: string | string[] | undefined;
5062
+ } | undefined;
5063
+ changelogithub?: string | boolean | string[] | {
5064
+ config?: string | string[] | undefined;
5065
+ entry?: string | string[] | undefined;
5066
+ project?: string | string[] | undefined;
5067
+ } | undefined;
4828
5068
  changesets?: string | boolean | string[] | {
4829
5069
  config?: string | string[] | undefined;
4830
5070
  entry?: string | string[] | undefined;
@@ -4840,6 +5080,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4840
5080
  entry?: string | string[] | undefined;
4841
5081
  project?: string | string[] | undefined;
4842
5082
  } | undefined;
5083
+ convex?: string | boolean | string[] | {
5084
+ config?: string | string[] | undefined;
5085
+ entry?: string | string[] | undefined;
5086
+ project?: string | string[] | undefined;
5087
+ } | undefined;
4843
5088
  'create-typescript-app'?: string | boolean | string[] | {
4844
5089
  config?: string | string[] | undefined;
4845
5090
  entry?: string | string[] | undefined;
@@ -4865,6 +5110,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4865
5110
  entry?: string | string[] | undefined;
4866
5111
  project?: string | string[] | undefined;
4867
5112
  } | undefined;
5113
+ docusaurus?: string | boolean | string[] | {
5114
+ config?: string | string[] | undefined;
5115
+ entry?: string | string[] | undefined;
5116
+ project?: string | string[] | undefined;
5117
+ } | undefined;
4868
5118
  dotenv?: string | boolean | string[] | {
4869
5119
  config?: string | string[] | undefined;
4870
5120
  entry?: string | string[] | undefined;
@@ -4915,6 +5165,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4915
5165
  entry?: string | string[] | undefined;
4916
5166
  project?: string | string[] | undefined;
4917
5167
  } | undefined;
5168
+ hardhat?: string | boolean | string[] | {
5169
+ config?: string | string[] | undefined;
5170
+ entry?: string | string[] | undefined;
5171
+ project?: string | string[] | undefined;
5172
+ } | undefined;
4918
5173
  husky?: string | boolean | string[] | {
4919
5174
  config?: string | string[] | undefined;
4920
5175
  entry?: string | string[] | undefined;
@@ -5353,6 +5608,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
5353
5608
  entry?: string | string[] | undefined;
5354
5609
  project?: string | string[] | undefined;
5355
5610
  } | undefined;
5611
+ changelogen?: string | boolean | string[] | {
5612
+ config?: string | string[] | undefined;
5613
+ entry?: string | string[] | undefined;
5614
+ project?: string | string[] | undefined;
5615
+ } | undefined;
5616
+ changelogithub?: string | boolean | string[] | {
5617
+ config?: string | string[] | undefined;
5618
+ entry?: string | string[] | undefined;
5619
+ project?: string | string[] | undefined;
5620
+ } | undefined;
5356
5621
  changesets?: string | boolean | string[] | {
5357
5622
  config?: string | string[] | undefined;
5358
5623
  entry?: string | string[] | undefined;
@@ -5368,6 +5633,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
5368
5633
  entry?: string | string[] | undefined;
5369
5634
  project?: string | string[] | undefined;
5370
5635
  } | undefined;
5636
+ convex?: string | boolean | string[] | {
5637
+ config?: string | string[] | undefined;
5638
+ entry?: string | string[] | undefined;
5639
+ project?: string | string[] | undefined;
5640
+ } | undefined;
5371
5641
  'create-typescript-app'?: string | boolean | string[] | {
5372
5642
  config?: string | string[] | undefined;
5373
5643
  entry?: string | string[] | undefined;
@@ -5393,6 +5663,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
5393
5663
  entry?: string | string[] | undefined;
5394
5664
  project?: string | string[] | undefined;
5395
5665
  } | undefined;
5666
+ docusaurus?: string | boolean | string[] | {
5667
+ config?: string | string[] | undefined;
5668
+ entry?: string | string[] | undefined;
5669
+ project?: string | string[] | undefined;
5670
+ } | undefined;
5396
5671
  dotenv?: string | boolean | string[] | {
5397
5672
  config?: string | string[] | undefined;
5398
5673
  entry?: string | string[] | undefined;
@@ -5443,6 +5718,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
5443
5718
  entry?: string | string[] | undefined;
5444
5719
  project?: string | string[] | undefined;
5445
5720
  } | undefined;
5721
+ hardhat?: string | boolean | string[] | {
5722
+ config?: string | string[] | undefined;
5723
+ entry?: string | string[] | undefined;
5724
+ project?: string | string[] | undefined;
5725
+ } | undefined;
5446
5726
  husky?: string | boolean | string[] | {
5447
5727
  config?: string | string[] | undefined;
5448
5728
  entry?: string | string[] | undefined;