knip 6.15.0 → 6.16.1

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 (63) hide show
  1. package/dist/ConfigurationChief.d.ts +20 -0
  2. package/dist/ConfigurationChief.js +2 -1
  3. package/dist/ProjectPrincipal.d.ts +4 -1
  4. package/dist/ProjectPrincipal.js +21 -13
  5. package/dist/binaries/fallback.js +1 -1
  6. package/dist/binaries/plugins.js +1 -1
  7. package/dist/binaries/resolvers/bun.js +1 -1
  8. package/dist/binaries/resolvers/bunx.js +1 -1
  9. package/dist/binaries/resolvers/npm.js +1 -1
  10. package/dist/binaries/resolvers/npx.js +1 -1
  11. package/dist/binaries/resolvers/pnpm.js +1 -1
  12. package/dist/binaries/resolvers/pnpx.js +1 -1
  13. package/dist/binaries/resolvers/yarn.js +1 -1
  14. package/dist/binaries/util.d.ts +1 -2
  15. package/dist/binaries/util.js +1 -1
  16. package/dist/compilers/index.d.ts +31 -0
  17. package/dist/graph/analyze.js +8 -7
  18. package/dist/graph/build.js +4 -3
  19. package/dist/plugins/_custom-elements/custom-element-visitor.d.ts +7 -0
  20. package/dist/plugins/_custom-elements/custom-element-visitor.js +106 -0
  21. package/dist/plugins/bun/index.js +1 -1
  22. package/dist/plugins/catalyst/index.d.ts +3 -0
  23. package/dist/plugins/catalyst/index.js +16 -0
  24. package/dist/plugins/execa/visitors/execa.js +4 -17
  25. package/dist/plugins/fast/index.d.ts +3 -0
  26. package/dist/plugins/fast/index.js +16 -0
  27. package/dist/plugins/index.d.ts +3 -0
  28. package/dist/plugins/index.js +6 -0
  29. package/dist/plugins/lit/index.d.ts +3 -0
  30. package/dist/plugins/lit/index.js +25 -0
  31. package/dist/plugins/nano-spawn/visitors/nano-spawn.js +4 -17
  32. package/dist/plugins/relay/index.js +1 -1
  33. package/dist/plugins/stencil/index.js +17 -1
  34. package/dist/plugins/sveltejs-package/helpers.js +1 -1
  35. package/dist/schema/configuration.d.ts +51 -0
  36. package/dist/schema/configuration.js +1 -0
  37. package/dist/schema/plugins.d.ts +15 -0
  38. package/dist/schema/plugins.js +3 -0
  39. package/dist/types/PluginNames.d.ts +2 -2
  40. package/dist/types/PluginNames.js +3 -0
  41. package/dist/types/args.d.ts +1 -1
  42. package/dist/types/config.d.ts +2 -0
  43. package/dist/types/module-graph.d.ts +1 -0
  44. package/dist/types/project.d.ts +1 -0
  45. package/dist/typescript/ast-helpers.js +21 -20
  46. package/dist/typescript/ast-nodes.d.ts +1 -0
  47. package/dist/typescript/ast-nodes.js +19 -0
  48. package/dist/typescript/get-imports-and-exports.js +18 -2
  49. package/dist/typescript/resolve-module-names.d.ts +11 -1
  50. package/dist/typescript/resolve-module-names.js +49 -12
  51. package/dist/typescript/visitors/calls.d.ts +3 -2
  52. package/dist/typescript/visitors/calls.js +88 -16
  53. package/dist/typescript/visitors/exports.js +12 -0
  54. package/dist/typescript/visitors/walk.d.ts +7 -0
  55. package/dist/typescript/visitors/walk.js +36 -1
  56. package/dist/util/create-options.d.ts +31 -0
  57. package/dist/util/load-tsconfig.js +2 -0
  58. package/dist/util/parse-args.d.ts +14 -0
  59. package/dist/util/parse-args.js +112 -0
  60. package/dist/version.d.ts +1 -1
  61. package/dist/version.js +1 -1
  62. package/package.json +1 -3
  63. package/schema.json +61 -43
@@ -10,6 +10,7 @@ export declare const Plugins: {
10
10
  bun: import("../types/config.ts").Plugin;
11
11
  c8: import("../types/config.ts").Plugin;
12
12
  capacitor: import("../types/config.ts").Plugin;
13
+ catalyst: import("../types/config.ts").Plugin;
13
14
  changelogen: import("../types/config.ts").Plugin;
14
15
  changelogithub: import("../types/config.ts").Plugin;
15
16
  changesets: import("../types/config.ts").Plugin;
@@ -35,6 +36,7 @@ export declare const Plugins: {
35
36
  isEnabled: import("../types/config.ts").IsPluginEnabled;
36
37
  config: string[];
37
38
  };
39
+ fast: import("../types/config.ts").Plugin;
38
40
  gatsby: import("../types/config.ts").Plugin;
39
41
  'github-action': import("../types/config.ts").Plugin;
40
42
  'github-actions': import("../types/config.ts").Plugin;
@@ -50,6 +52,7 @@ export declare const Plugins: {
50
52
  lefthook: import("../types/config.ts").Plugin;
51
53
  'lint-staged': import("../types/config.ts").Plugin;
52
54
  linthtml: import("../types/config.ts").Plugin;
55
+ lit: import("../types/config.ts").Plugin;
53
56
  'lockfile-lint': import("../types/config.ts").Plugin;
54
57
  'lost-pixel': import("../types/config.ts").Plugin;
55
58
  markdownlint: import("../types/config.ts").Plugin;
@@ -9,6 +9,7 @@ import { default as bumpp } from './bumpp/index.js';
9
9
  import { default as bun } from './bun/index.js';
10
10
  import { default as c8 } from './c8/index.js';
11
11
  import { default as capacitor } from './capacitor/index.js';
12
+ import { default as catalyst } from './catalyst/index.js';
12
13
  import { default as changelogen } from './changelogen/index.js';
13
14
  import { default as changelogithub } from './changelogithub/index.js';
14
15
  import { default as changesets } from './changesets/index.js';
@@ -29,6 +30,7 @@ import { default as eslint } from './eslint/index.js';
29
30
  import { default as execa } from './execa/index.js';
30
31
  import { default as expo } from './expo/index.js';
31
32
  import { default as expressiveCode } from './expressive-code/index.js';
33
+ import { default as fast } from './fast/index.js';
32
34
  import { default as gatsby } from './gatsby/index.js';
33
35
  import { default as githubAction } from './github-action/index.js';
34
36
  import { default as githubActions } from './github-actions/index.js';
@@ -44,6 +46,7 @@ import { default as ladle } from './ladle/index.js';
44
46
  import { default as lefthook } from './lefthook/index.js';
45
47
  import { default as lintStaged } from './lint-staged/index.js';
46
48
  import { default as linthtml } from './linthtml/index.js';
49
+ import { default as lit } from './lit/index.js';
47
50
  import { default as lockfileLint } from './lockfile-lint/index.js';
48
51
  import { default as lostPixel } from './lost-pixel/index.js';
49
52
  import { default as markdownlint } from './markdownlint/index.js';
@@ -162,6 +165,7 @@ export const Plugins = {
162
165
  bun,
163
166
  c8,
164
167
  capacitor,
168
+ catalyst,
165
169
  changelogen,
166
170
  changelogithub,
167
171
  changesets,
@@ -182,6 +186,7 @@ export const Plugins = {
182
186
  execa,
183
187
  expo,
184
188
  'expressive-code': expressiveCode,
189
+ fast,
185
190
  gatsby,
186
191
  'github-action': githubAction,
187
192
  'github-actions': githubActions,
@@ -197,6 +202,7 @@ export const Plugins = {
197
202
  lefthook,
198
203
  'lint-staged': lintStaged,
199
204
  linthtml,
205
+ lit,
200
206
  'lockfile-lint': lockfileLint,
201
207
  'lost-pixel': lostPixel,
202
208
  markdownlint,
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from '../../types/config.ts';
2
+ declare const plugin: Plugin;
3
+ export default plugin;
@@ -0,0 +1,25 @@
1
+ import { hasDependency } from '../../util/plugin.js';
2
+ import { createCustomElementVisitor } from '../_custom-elements/custom-element-visitor.js';
3
+ const title = 'Lit';
4
+ const enablers = ['lit', 'lit-element', '@lit/reactive-element'];
5
+ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
6
+ const isLitDecoratorsSpecifier = (specifier) => specifier === 'lit/decorators.js' ||
7
+ specifier === 'lit/decorators' ||
8
+ specifier.startsWith('lit/decorators/') ||
9
+ specifier === '@lit/reactive-element/decorators.js' ||
10
+ specifier === '@lit/reactive-element/decorators' ||
11
+ specifier.startsWith('@lit/reactive-element/decorators/') ||
12
+ specifier === 'lit-element' ||
13
+ specifier === 'lit-element/decorators.js' ||
14
+ specifier === 'lit-element/decorators' ||
15
+ specifier.startsWith('lit-element/decorators/');
16
+ const registerVisitors = ({ ctx, registerVisitor }) => {
17
+ registerVisitor(createCustomElementVisitor(ctx, isLitDecoratorsSpecifier));
18
+ };
19
+ const plugin = {
20
+ title,
21
+ enablers,
22
+ isEnabled,
23
+ registerVisitors,
24
+ };
25
+ export default plugin;
@@ -1,25 +1,12 @@
1
- import { getStringValue, isStringLiteral } from '../../../typescript/ast-nodes.js';
1
+ import { getSafeScriptFromArgs } from '../../../typescript/ast-nodes.js';
2
2
  export function createNanoSpawnVisitor(ctx) {
3
3
  return {
4
4
  CallExpression(node) {
5
5
  if (node.callee.type !== 'Identifier' || node.callee.name !== 'spawn')
6
6
  return;
7
- const executable = node.arguments[0];
8
- if (!executable || !isStringLiteral(executable))
9
- return;
10
- const executableStr = getStringValue(executable);
11
- const args = node.arguments[1];
12
- if (args?.type === 'ArrayExpression') {
13
- const argStrings = [];
14
- for (const a of args.elements) {
15
- if (a && isStringLiteral(a))
16
- argStrings.push(getStringValue(a));
17
- }
18
- ctx.addScript([executableStr, ...argStrings].join(' '));
19
- }
20
- else {
21
- ctx.addScript(executableStr);
22
- }
7
+ const script = getSafeScriptFromArgs(node.arguments[0], node.arguments[1]);
8
+ if (script)
9
+ ctx.addScript(script);
23
10
  },
24
11
  };
25
12
  }
@@ -1,4 +1,4 @@
1
- import parseArgs from 'minimist';
1
+ import parseArgs from '../../util/parse-args.js';
2
2
  import { toProductionEntry } from '../../util/input.js';
3
3
  import { join } from '../../util/path.js';
4
4
  import { hasDependency } from '../../util/plugin.js';
@@ -1,22 +1,36 @@
1
- import { toConfig, toProductionEntry } from '../../util/input.js';
1
+ import { toConfig, toEntry, toProductionEntry } from '../../util/input.js';
2
2
  import { hasDependency } from '../../util/plugin.js';
3
3
  import { collectPropertyValues } from '../../typescript/ast-helpers.js';
4
+ import { createCustomElementVisitor } from '../_custom-elements/custom-element-visitor.js';
4
5
  const title = 'Stencil';
5
6
  const enablers = ['@stencil/core'];
6
7
  const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
7
8
  const config = ['stencil.config.{ts,js}'];
8
9
  const production = ['src/**/*.tsx'];
10
+ const entry = ['**/*.spec.{ts,tsx}', '**/*.e2e.{ts,tsx}'];
11
+ const isStencilSpecifier = (specifier) => specifier === '@stencil/core';
12
+ const registerVisitors = ({ ctx, registerVisitor }) => {
13
+ registerVisitor(createCustomElementVisitor(ctx, isStencilSpecifier, { decoratorName: 'Component' }));
14
+ };
9
15
  const resolveFromAST = program => {
10
16
  const inputs = [];
11
17
  const srcDirs = collectPropertyValues(program, 'srcDir');
12
18
  const srcDir = srcDirs.size > 0 ? [...srcDirs][0] : 'src';
13
19
  inputs.push(toProductionEntry(`${srcDir}/**/*.tsx`));
20
+ for (const pattern of entry)
21
+ inputs.push(toEntry(pattern));
14
22
  for (const script of collectPropertyValues(program, 'globalScript')) {
15
23
  inputs.push(toProductionEntry(script));
16
24
  }
17
25
  for (const tsconfig of collectPropertyValues(program, 'tsconfig')) {
18
26
  inputs.push(toConfig('typescript', tsconfig));
19
27
  }
28
+ for (const setup of collectPropertyValues(program, 'setupFilesAfterEnv')) {
29
+ inputs.push(toEntry(setup));
30
+ }
31
+ for (const setup of collectPropertyValues(program, 'setupFiles')) {
32
+ inputs.push(toEntry(setup));
33
+ }
20
34
  return inputs;
21
35
  };
22
36
  const plugin = {
@@ -24,7 +38,9 @@ const plugin = {
24
38
  enablers,
25
39
  isEnabled,
26
40
  config,
41
+ entry,
27
42
  production,
28
43
  resolveFromAST,
44
+ registerVisitors,
29
45
  };
30
46
  export default plugin;
@@ -1,4 +1,4 @@
1
- import parseArgs from 'minimist';
1
+ import parseArgs from '../../util/parse-args.js';
2
2
  import { parse } from 'unbash';
3
3
  const BIN = 'svelte-package';
4
4
  export const DEFAULT_INPUT = 'src/lib';
@@ -56,6 +56,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
56
56
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
57
57
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
58
58
  }, z.core.$strip>]>>;
59
+ catalyst: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
60
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
61
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
62
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
63
+ }, z.core.$strip>]>>;
59
64
  changelogen: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
60
65
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
61
66
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -156,6 +161,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
156
161
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
157
162
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
158
163
  }, z.core.$strip>]>>;
164
+ fast: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
165
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
166
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
167
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
168
+ }, z.core.$strip>]>>;
159
169
  gatsby: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
160
170
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
161
171
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -231,6 +241,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
231
241
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
232
242
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
233
243
  }, z.core.$strip>]>>;
244
+ lit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
245
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
246
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
247
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
248
+ }, z.core.$strip>]>>;
234
249
  'lockfile-lint': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
235
250
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
236
251
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -770,6 +785,9 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
770
785
  ignoreDependencies: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
771
786
  ignoreMembers: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
772
787
  ignoreUnresolved: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
788
+ ignoreExportsUsedInFile: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
789
+ [x: string]: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
790
+ }, z.core.$strict>]>>;
773
791
  includeEntryExports: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
774
792
  }, z.core.$strict>;
775
793
  export declare const knipConfigurationSchema: z.ZodMiniObject<{
@@ -828,6 +846,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
828
846
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
829
847
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
830
848
  }, z.core.$strip>]>>;
849
+ catalyst: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
850
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
851
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
852
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
853
+ }, z.core.$strip>]>>;
831
854
  changelogen: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
832
855
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
833
856
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -928,6 +951,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
928
951
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
929
952
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
930
953
  }, z.core.$strip>]>>;
954
+ fast: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
955
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
956
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
957
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
958
+ }, z.core.$strip>]>>;
931
959
  gatsby: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
932
960
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
933
961
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1003,6 +1031,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1003
1031
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1004
1032
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1005
1033
  }, z.core.$strip>]>>;
1034
+ lit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1035
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1036
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1037
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1038
+ }, z.core.$strip>]>>;
1006
1039
  'lockfile-lint': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1007
1040
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1008
1041
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1618,6 +1651,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1618
1651
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1619
1652
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1620
1653
  }, z.core.$strip>]>>;
1654
+ catalyst: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1655
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1656
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1657
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1658
+ }, z.core.$strip>]>>;
1621
1659
  changelogen: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1622
1660
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1623
1661
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1718,6 +1756,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1718
1756
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1719
1757
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1720
1758
  }, z.core.$strip>]>>;
1759
+ fast: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1760
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1761
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1762
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1763
+ }, z.core.$strip>]>>;
1721
1764
  gatsby: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1722
1765
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1723
1766
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -1793,6 +1836,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
1793
1836
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1794
1837
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1795
1838
  }, z.core.$strip>]>>;
1839
+ lit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1840
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1841
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1842
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1843
+ }, z.core.$strip>]>>;
1796
1844
  'lockfile-lint': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
1797
1845
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1798
1846
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -2332,6 +2380,9 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
2332
2380
  ignoreDependencies: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
2333
2381
  ignoreMembers: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
2334
2382
  ignoreUnresolved: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniCustom<RegExp, RegExp>]>>>;
2383
+ ignoreExportsUsedInFile: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
2384
+ [x: string]: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2385
+ }, z.core.$strict>]>>;
2335
2386
  includeEntryExports: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2336
2387
  }, z.core.$strict>>>;
2337
2388
  }, z.core.$strict>;
@@ -66,6 +66,7 @@ const baseWorkspaceConfigurationSchema = z.object({
66
66
  ignoreDependencies: z.optional(stringOrRegexSchema),
67
67
  ignoreMembers: z.optional(stringOrRegexSchema),
68
68
  ignoreUnresolved: z.optional(stringOrRegexSchema),
69
+ ignoreExportsUsedInFile: z.optional(ignoreExportsUsedInFileSchema),
69
70
  includeEntryExports: z.optional(z.boolean()),
70
71
  });
71
72
  const partialPluginsSchema = z.partial(pluginsSchema);
@@ -61,6 +61,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
61
61
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
62
62
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
63
63
  }, z.core.$strip>]>;
64
+ catalyst: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
65
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
66
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
67
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
68
+ }, z.core.$strip>]>;
64
69
  changelogen: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
65
70
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
66
71
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -161,6 +166,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
161
166
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
162
167
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
163
168
  }, z.core.$strip>]>;
169
+ fast: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
170
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
171
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
172
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
173
+ }, z.core.$strip>]>;
164
174
  gatsby: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
165
175
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
166
176
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -236,6 +246,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
236
246
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
237
247
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
238
248
  }, z.core.$strip>]>;
249
+ lit: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
250
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
251
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
252
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
253
+ }, z.core.$strip>]>;
239
254
  'lockfile-lint': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
240
255
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
241
256
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -21,6 +21,7 @@ export const pluginsSchema = z.object({
21
21
  bun: pluginSchema,
22
22
  c8: pluginSchema,
23
23
  capacitor: pluginSchema,
24
+ catalyst: pluginSchema,
24
25
  changelogen: pluginSchema,
25
26
  changelogithub: pluginSchema,
26
27
  changesets: pluginSchema,
@@ -41,6 +42,7 @@ export const pluginsSchema = z.object({
41
42
  execa: pluginSchema,
42
43
  expo: pluginSchema,
43
44
  'expressive-code': pluginSchema,
45
+ fast: pluginSchema,
44
46
  gatsby: pluginSchema,
45
47
  'github-action': pluginSchema,
46
48
  'github-actions': pluginSchema,
@@ -56,6 +58,7 @@ export const pluginsSchema = z.object({
56
58
  lefthook: pluginSchema,
57
59
  'lint-staged': pluginSchema,
58
60
  linthtml: pluginSchema,
61
+ lit: pluginSchema,
59
62
  'lockfile-lint': pluginSchema,
60
63
  'lost-pixel': pluginSchema,
61
64
  markdownlint: pluginSchema,
@@ -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-spawn' | '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' | 'orval' | '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' | 'vercel-og' | 'vike' | 'vite' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'wxt' | '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-spawn', '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', 'orval', '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', 'vercel-og', 'vike', 'vite', 'vitepress', 'vitest', 'vue', 'webdriver-io', 'webpack', 'wireit', 'wrangler', 'wxt', 'xo', 'yarn', 'yorkie', 'zx'];
1
+ export type PluginName = 'angular' | 'astro' | 'astro-db' | 'astro-og-canvas' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'catalyst' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'execa' | 'expo' | 'expressive-code' | 'fast' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'hardhat' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'knex' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lit' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-spawn' | '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' | 'orval' | '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' | 'vercel-og' | 'vike' | 'vite' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'wxt' | 'xo' | 'yarn' | 'yorkie' | 'zx';
2
+ export declare const pluginNames: readonly ['angular', 'astro', 'astro-db', 'astro-og-canvas', 'ava', 'babel', 'biome', 'bumpp', 'bun', 'c8', 'capacitor', 'catalyst', 'changelogen', 'changelogithub', 'changesets', 'commitizen', 'commitlint', 'convex', 'create-typescript-app', 'cspell', 'cucumber', 'cypress', 'danger', 'dependency-cruiser', 'docusaurus', 'dotenv', 'drizzle', 'eleventy', 'eslint', 'execa', 'expo', 'expressive-code', 'fast', 'gatsby', 'github-action', 'github-actions', 'glob', 'graphql-codegen', 'hardhat', 'husky', 'i18next-parser', 'jest', 'karma', 'knex', 'ladle', 'lefthook', 'lint-staged', 'linthtml', 'lit', 'lockfile-lint', 'lost-pixel', 'markdownlint', 'mdx', 'mdxlint', 'metro', 'mocha', 'moonrepo', 'msw', 'nano-spawn', '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', 'orval', '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', 'vercel-og', 'vike', 'vite', 'vitepress', 'vitest', 'vue', 'webdriver-io', 'webpack', 'wireit', 'wrangler', 'wxt', 'xo', 'yarn', 'yorkie', 'zx'];
@@ -10,6 +10,7 @@ export const pluginNames = [
10
10
  'bun',
11
11
  'c8',
12
12
  'capacitor',
13
+ 'catalyst',
13
14
  'changelogen',
14
15
  'changelogithub',
15
16
  'changesets',
@@ -30,6 +31,7 @@ export const pluginNames = [
30
31
  'execa',
31
32
  'expo',
32
33
  'expressive-code',
34
+ 'fast',
33
35
  'gatsby',
34
36
  'github-action',
35
37
  'github-actions',
@@ -45,6 +47,7 @@ export const pluginNames = [
45
47
  'lefthook',
46
48
  'lint-staged',
47
49
  'linthtml',
50
+ 'lit',
48
51
  'lockfile-lint',
49
52
  'lost-pixel',
50
53
  'markdownlint',
@@ -1,4 +1,4 @@
1
- import type { ParsedArgs } from 'minimist';
1
+ import type { ParsedArgs } from '../util/parse-args.ts';
2
2
  import type { Input } from '../util/input.ts';
3
3
  import type { Manifest } from '../util/package-json.ts';
4
4
  export type ConfigArg = boolean | (string | [string, (id: string) => string])[];
@@ -64,6 +64,7 @@ interface BaseWorkspaceConfiguration {
64
64
  paths: Record<string, string[]>;
65
65
  ignore: NormalizedGlob;
66
66
  ignoreFiles: NormalizedGlob;
67
+ ignoreExportsUsedInFile: IgnoreExportsUsedInFile;
67
68
  isIncludeEntryExports: boolean;
68
69
  }
69
70
  type PluginConfiguration = EnsuredPluginConfiguration | boolean;
@@ -128,6 +129,7 @@ export type PluginVisitorContext = {
128
129
  sourceText: string;
129
130
  addScript: (script: string) => void;
130
131
  addImport: (specifier: string, pos: number, modifiers: number) => void;
132
+ markExportRegistered: (name: string) => void;
131
133
  };
132
134
  export type PluginVisitorObject = VisitorObject;
133
135
  export type RegisterVisitorsOptions = {
@@ -40,6 +40,7 @@ export interface Export extends Position {
40
40
  readonly members: ExportMember[];
41
41
  jsDocTags: Tags;
42
42
  hasRefsInFile: boolean;
43
+ isRegistered: boolean;
43
44
  referencedIn: Set<string> | undefined;
44
45
  readonly fixes: Fixes;
45
46
  isReExport: boolean;
@@ -22,6 +22,7 @@ export interface CompilerOptions {
22
22
  name: string;
23
23
  } | string>;
24
24
  rootDir?: string;
25
+ rootDirs?: string[];
25
26
  skipDefaultLibCheck?: boolean;
26
27
  skipLibCheck?: boolean;
27
28
  sourceMap?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { Visitor } from 'oxc-parser';
2
2
  import stripJsonComments from 'strip-json-comments';
3
3
  import { extname, isInternal } from '../util/path.js';
4
- import { _parseFile, getStringValue, isStringLiteral } from './ast-nodes.js';
4
+ import { _parseFile, getStringValue } from './ast-nodes.js';
5
5
  export const getPropertyKey = (prop) => prop?.key?.type === 'Identifier' ? prop.key.name : getStringValue(prop?.key);
6
6
  export const getImportMap = (program) => {
7
7
  const importMap = new Map();
@@ -24,9 +24,10 @@ export const getImportMap = (program) => {
24
24
  if (decl.init?.type === 'CallExpression' &&
25
25
  decl.init.callee?.type === 'Identifier' &&
26
26
  decl.init.callee.name === 'require' &&
27
- isStringLiteral(decl.init.arguments?.[0]) &&
28
27
  decl.id?.type === 'Identifier') {
29
- importMap.set(decl.id.name, decl.init.arguments[0].value);
28
+ const source = getStringValue(decl.init.arguments?.[0]);
29
+ if (source != null)
30
+ importMap.set(decl.id.name, source);
30
31
  }
31
32
  }
32
33
  }
@@ -39,6 +40,11 @@ export const getDefaultImportName = (importMap, specifier) => {
39
40
  return name;
40
41
  }
41
42
  };
43
+ const addStringValue = (values, node) => {
44
+ const value = getStringValue(node);
45
+ if (value != null)
46
+ values.add(value);
47
+ };
42
48
  export const getPropertyValues = (node, propertyName) => {
43
49
  const values = new Set();
44
50
  if (node?.type !== 'ObjectExpression')
@@ -50,22 +56,19 @@ export const getPropertyValues = (node, propertyName) => {
50
56
  if (name !== propertyName)
51
57
  continue;
52
58
  const init = prop.value;
53
- if (isStringLiteral(init)) {
54
- values.add(init.value);
55
- }
56
- else if (init?.type === 'ArrayExpression') {
57
- for (const el of init.elements ?? []) {
58
- if (isStringLiteral(el))
59
- values.add(el.value);
60
- }
59
+ if (init?.type === 'ArrayExpression') {
60
+ for (const el of init.elements ?? [])
61
+ addStringValue(values, el);
61
62
  }
62
63
  else if (init?.type === 'ObjectExpression') {
63
64
  for (const p of init.properties ?? []) {
64
- if (p.type === 'Property' && isStringLiteral(p.value)) {
65
- values.add(p.value.value);
66
- }
65
+ if (p.type === 'Property')
66
+ addStringValue(values, p.value);
67
67
  }
68
68
  }
69
+ else {
70
+ addStringValue(values, init);
71
+ }
69
72
  }
70
73
  return values;
71
74
  };
@@ -131,12 +134,10 @@ export const getStringValues = (node) => {
131
134
  if (node?.type !== 'ArrayExpression')
132
135
  return values;
133
136
  for (const el of node.elements ?? []) {
134
- if (isStringLiteral(el)) {
135
- values.add(el.value);
136
- }
137
- else if (el?.type === 'ArrayExpression' && isStringLiteral(el.elements?.[0])) {
138
- values.add(el.elements[0].value);
139
- }
137
+ if (el?.type === 'ArrayExpression')
138
+ addStringValue(values, el.elements?.[0]);
139
+ else
140
+ addStringValue(values, el);
140
141
  }
141
142
  return values;
142
143
  };
@@ -16,6 +16,7 @@ export declare const getLineAndCol: (lineStarts: number[], pos: number) => {
16
16
  export declare const stripQuotes: (name: string) => string;
17
17
  export declare const isStringLiteral: (node: any) => boolean;
18
18
  export declare const getStringValue: (node: any) => string | undefined;
19
+ export declare const getSafeScriptFromArgs: (executable: any, argsArray: any) => string | undefined;
19
20
  export declare const shouldCountRefs: (ignoreExportsUsedInFile: IgnoreExportsUsedInFile, type: SymbolType) => boolean | undefined;
20
21
  export declare function extractNamespaceMembers(decl: TSModuleDeclaration, options: GetImportsAndExportsOptions, lineStarts: number[], getJSDocTags: (start: number) => Set<string>, prefix?: string): ExportMember[];
21
22
  export declare function extractEnumMembers(decl: TSEnumDeclaration, options: GetImportsAndExportsOptions, lineStarts: number[], getJSDocTags: (start: number) => Set<string>): ExportMember[];
@@ -52,6 +52,25 @@ export const getStringValue = (node) => {
52
52
  return node.quasis[0].value?.cooked ?? node.quasis[0].value?.raw;
53
53
  return undefined;
54
54
  };
55
+ const SAFE_SCRIPT_ARG = /^[\w@.,:/=+~-]+$/;
56
+ export const getSafeScriptFromArgs = (executable, argsArray) => {
57
+ if (!isStringLiteral(executable))
58
+ return undefined;
59
+ const value = getStringValue(executable);
60
+ if (!value || !SAFE_SCRIPT_ARG.test(value))
61
+ return undefined;
62
+ const parts = [value];
63
+ if (argsArray?.type === 'ArrayExpression') {
64
+ for (const element of argsArray.elements) {
65
+ if (element && isStringLiteral(element)) {
66
+ const arg = getStringValue(element);
67
+ if (arg && SAFE_SCRIPT_ARG.test(arg))
68
+ parts.push(arg);
69
+ }
70
+ }
71
+ }
72
+ return parts.join(' ');
73
+ };
55
74
  export const shouldCountRefs = (ignoreExportsUsedInFile, type) => ignoreExportsUsedInFile === true ||
56
75
  (typeof ignoreExportsUsedInFile === 'object' && type !== 'unknown' && ignoreExportsUsedInFile[type]);
57
76
  export function extractNamespaceMembers(decl, options, lineStarts, getJSDocTags, prefix) {