knip 6.35.1 → 6.37.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 (109) hide show
  1. package/dist/ConfigurationChief.d.ts +20 -2
  2. package/dist/ConfigurationChief.js +15 -1
  3. package/dist/DependencyDeputy.d.ts +0 -2
  4. package/dist/DependencyDeputy.js +1 -17
  5. package/dist/WorkspaceWorker.js +7 -6
  6. package/dist/binaries/bash-parser.js +1 -1
  7. package/dist/binaries/command.js +21 -10
  8. package/dist/binaries/fallback.js +5 -4
  9. package/dist/binaries/plugins.js +4 -4
  10. package/dist/binaries/resolvers/bun.js +2 -2
  11. package/dist/binaries/resolvers/find.js +5 -4
  12. package/dist/binaries/resolvers/index.d.ts +2 -1
  13. package/dist/binaries/resolvers/index.js +3 -2
  14. package/dist/binaries/resolvers/npm.js +46 -4
  15. package/dist/binaries/resolvers/npx.js +8 -4
  16. package/dist/binaries/resolvers/nub.js +3 -2
  17. package/dist/binaries/resolvers/pnpm.js +17 -10
  18. package/dist/binaries/resolvers/yarn.js +1 -1
  19. package/dist/binaries/util.d.ts +4 -1
  20. package/dist/binaries/util.js +2 -0
  21. package/dist/compilers/compilers.js +1 -1
  22. package/dist/compilers/scss.js +2 -2
  23. package/dist/graph-explorer/cache.d.ts +3 -0
  24. package/dist/graph-explorer/cache.js +6 -0
  25. package/dist/graph-explorer/explorer.d.ts +1 -0
  26. package/dist/graph-explorer/explorer.js +2 -0
  27. package/dist/graph-explorer/operations/build-exports-tree.js +14 -2
  28. package/dist/graph-explorer/operations/get-ambiguous-star-export.d.ts +8 -0
  29. package/dist/graph-explorer/operations/get-ambiguous-star-export.js +11 -0
  30. package/dist/graph-explorer/operations/get-contention.js +265 -122
  31. package/dist/graph-explorer/operations/resolve-export-origins.d.ts +32 -0
  32. package/dist/graph-explorer/operations/resolve-export-origins.js +255 -0
  33. package/dist/graph-explorer/utils.js +8 -0
  34. package/dist/manifest/index.js +1 -3
  35. package/dist/plugins/ava/index.js +1 -1
  36. package/dist/plugins/eslint/helpers.d.ts +2 -1
  37. package/dist/plugins/eslint/helpers.js +59 -14
  38. package/dist/plugins/eslint/index.js +2 -2
  39. package/dist/plugins/eslint/resolveFromAST.js +17 -11
  40. package/dist/plugins/eslint/types.d.ts +3 -3
  41. package/dist/plugins/github-actions/index.js +1 -1
  42. package/dist/plugins/graphql-codegen/index.js +15 -4
  43. package/dist/plugins/graphql-codegen/types.d.ts +11 -1
  44. package/dist/plugins/graphql-codegen/types.js +6 -0
  45. package/dist/plugins/husky/index.js +1 -1
  46. package/dist/plugins/index.d.ts +2 -0
  47. package/dist/plugins/index.js +4 -0
  48. package/dist/plugins/lefthook/index.js +1 -1
  49. package/dist/plugins/mise/scripts.js +5 -5
  50. package/dist/plugins/next/index.js +39 -5
  51. package/dist/plugins/node/index.js +6 -0
  52. package/dist/plugins/tailwind/compiler.js +2 -2
  53. package/dist/plugins/tailwind/index.js +7 -1
  54. package/dist/plugins/taskfile/index.js +1 -1
  55. package/dist/plugins/tauri/index.js +1 -1
  56. package/dist/plugins/textlint/helpers.d.ts +4 -0
  57. package/dist/plugins/textlint/helpers.js +39 -0
  58. package/dist/plugins/textlint/index.d.ts +3 -0
  59. package/dist/plugins/textlint/index.js +52 -0
  60. package/dist/plugins/textlint/types.d.ts +5 -0
  61. package/dist/plugins/textlint/types.js +1 -0
  62. package/dist/plugins/travis/index.js +1 -1
  63. package/dist/plugins/typedoc/index.js +3 -2
  64. package/dist/plugins/typedoc/types.d.ts +2 -2
  65. package/dist/plugins/varlock/index.d.ts +3 -0
  66. package/dist/plugins/varlock/index.js +31 -0
  67. package/dist/plugins/varlock/parse.d.ts +11 -0
  68. package/dist/plugins/varlock/parse.js +185 -0
  69. package/dist/plugins/varlock/scan.d.ts +2 -0
  70. package/dist/plugins/varlock/scan.js +78 -0
  71. package/dist/plugins/vite-plus/resolveFromAST.js +1 -1
  72. package/dist/plugins/vitest/index.js +4 -2
  73. package/dist/reporters/trace.js +30 -1
  74. package/dist/schema/configuration.d.ts +33 -0
  75. package/dist/schema/configuration.js +2 -0
  76. package/dist/schema/plugins.d.ts +10 -0
  77. package/dist/schema/plugins.js +2 -0
  78. package/dist/session/build-maps.js +9 -1
  79. package/dist/session/file-descriptor.js +0 -2
  80. package/dist/session/index.d.ts +1 -1
  81. package/dist/session/types.d.ts +18 -0
  82. package/dist/types/PluginNames.d.ts +2 -2
  83. package/dist/types/PluginNames.js +2 -0
  84. package/dist/types/config.d.ts +5 -1
  85. package/dist/types/module-graph.d.ts +3 -0
  86. package/dist/types/package-json.d.ts +1 -1
  87. package/dist/typescript/get-imports-and-exports.js +43 -9
  88. package/dist/typescript/visitors/exports.js +9 -4
  89. package/dist/typescript/visitors/walk.d.ts +1 -1
  90. package/dist/typescript/visitors/walk.js +4 -1
  91. package/dist/util/array.d.ts +1 -1
  92. package/dist/util/array.js +5 -1
  93. package/dist/util/create-input-handler.js +3 -3
  94. package/dist/util/create-options.d.ts +28 -2
  95. package/dist/util/file-entry-cache.js +1 -1
  96. package/dist/util/glob-core.d.ts +1 -0
  97. package/dist/util/glob-core.js +11 -3
  98. package/dist/util/jiti.js +1 -0
  99. package/dist/util/modules.d.ts +2 -0
  100. package/dist/util/modules.js +3 -1
  101. package/dist/util/package-json.d.ts +185 -183
  102. package/dist/util/parse-args.d.ts +2 -0
  103. package/dist/util/parse-args.js +6 -1
  104. package/dist/util/url.d.ts +1 -0
  105. package/dist/util/url.js +2 -0
  106. package/dist/version.d.ts +1 -1
  107. package/dist/version.js +1 -1
  108. package/package.json +5 -5
  109. package/schema.json +20 -0
@@ -12,7 +12,7 @@ import { handleJSXMemberExpression, handleMemberExpression } from './members.js'
12
12
  let state;
13
13
  const _getFix = (start, end, flags) => state.options.isFixExports ? [start, end, flags ?? FIX_FLAGS.NONE] : undefined;
14
14
  const _getTypeFix = (start, end) => state.options.isFixTypes ? [start, end, FIX_FLAGS.NONE] : undefined;
15
- const _addExport = (identifier, type, pos, members, fix, isReExport, jsDocTags) => {
15
+ const _addExport = (identifier, type, pos, members, fix, isReExport, jsDocTags, binding = identifier, isBindingReExport = false) => {
16
16
  const item = state.exports.get(identifier);
17
17
  if (item) {
18
18
  if (members.length)
@@ -30,11 +30,13 @@ const _addExport = (identifier, type, pos, members, fix, isReExport, jsDocTags)
30
30
  }
31
31
  }
32
32
  item.isReExport = isReExport;
33
+ item.isBindingReExport = isBindingReExport;
33
34
  }
34
35
  else {
35
36
  const { line, col } = getLineAndCol(state.lineStarts, pos);
36
37
  state.exports.set(identifier, {
37
38
  identifier,
39
+ binding,
38
40
  type,
39
41
  members,
40
42
  jsDocTags,
@@ -46,6 +48,7 @@ const _addExport = (identifier, type, pos, members, fix, isReExport, jsDocTags)
46
48
  referencedIn: undefined,
47
49
  fixes: fix ? [fix] : [],
48
50
  isReExport,
51
+ isBindingReExport,
49
52
  });
50
53
  }
51
54
  };
@@ -1,5 +1,5 @@
1
1
  type Collection<T> = Array<T> | Set<T>;
2
2
  export declare const compact: <T>(collection: Collection<T | undefined>) => T[];
3
- export declare const arrayify: (value?: string[] | string) => string[];
3
+ export declare const arrayify: (value: unknown) => string[];
4
4
  export declare const partition: <T>(collection: Collection<T>, predicate: (item: T) => unknown) => [T[], T[]];
5
5
  export {};
@@ -1,5 +1,9 @@
1
1
  export const compact = (collection) => Array.from(new Set(collection)).filter((value) => Boolean(value));
2
- export const arrayify = (value) => Array.isArray(value) ? value : typeof value === 'string' ? [value] : [];
2
+ export const arrayify = (value) => Array.isArray(value)
3
+ ? value.filter((item) => typeof item === 'string')
4
+ : typeof value === 'string'
5
+ ? [value]
6
+ : [];
3
7
  export const partition = (collection, predicate) => {
4
8
  const results = [[], []];
5
9
  for (const item of collection)
@@ -1,4 +1,4 @@
1
- import { IGNORED_RUNTIME_DEPENDENCIES } from '../constants.js';
1
+ import { IGNORED_GLOBAL_BINARIES, IGNORED_RUNTIME_DEPENDENCIES } from '../constants.js';
2
2
  import { debugLog } from './debug.js';
3
3
  import { fromBinary, isBinary, isConfig, isDeferResolve, isDeferResolveEntry, isDependency, toDebugString, } from './input.js';
4
4
  import { getPackageNameFromSpecifier } from './modules.js';
@@ -32,12 +32,12 @@ export const createInputHandler = (deputy, chief, isGitIgnored, addIssue, extern
32
32
  }
33
33
  return;
34
34
  }
35
- if (dependencies || input.optional)
35
+ if (input.optional || (inputWorkspace.config.ignoreGlobalBinaries && IGNORED_GLOBAL_BINARIES.has(binaryName)))
36
36
  return;
37
37
  addIssue({
38
38
  type: 'binaries',
39
39
  filePath: containingFilePath,
40
- workspace: workspace.name,
40
+ workspace: inputWorkspace.name,
41
41
  symbol: binaryName,
42
42
  specifier,
43
43
  fixes: [],
@@ -776,6 +776,11 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
776
776
  entry?: string | string[] | undefined;
777
777
  project?: string | string[] | undefined;
778
778
  } | undefined;
779
+ textlint?: string | boolean | string[] | {
780
+ config?: string | string[] | undefined;
781
+ entry?: string | string[] | undefined;
782
+ project?: string | string[] | undefined;
783
+ } | undefined;
779
784
  travis?: string | boolean | string[] | {
780
785
  config?: string | string[] | undefined;
781
786
  entry?: string | string[] | undefined;
@@ -856,6 +861,11 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
856
861
  entry?: string | string[] | undefined;
857
862
  project?: string | string[] | undefined;
858
863
  } | undefined;
864
+ varlock?: string | boolean | string[] | {
865
+ config?: string | string[] | undefined;
866
+ entry?: string | string[] | undefined;
867
+ project?: string | string[] | undefined;
868
+ } | undefined;
859
869
  vercel?: string | boolean | string[] | {
860
870
  config?: string | string[] | undefined;
861
871
  entry?: string | string[] | undefined;
@@ -969,10 +979,13 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
969
979
  ignore?: string | string[] | undefined;
970
980
  ignoreFiles?: string | string[] | undefined;
971
981
  ignoreBinaries?: (string | RegExp)[] | undefined;
982
+ ignoreGlobalBinaries?: boolean | undefined;
972
983
  ignoreDependencies?: (string | RegExp)[] | undefined;
973
984
  ignoreMembers?: (string | RegExp)[] | undefined;
974
985
  ignoreUnresolved?: (string | RegExp)[] | undefined;
975
- ignoreExportsUsedInFile?: boolean | Record<string, boolean | undefined> | undefined;
986
+ ignoreExportsUsedInFile?: boolean | {
987
+ [x: string]: boolean | undefined;
988
+ } | undefined;
976
989
  ignoreIssues?: Record<string, ("binaries" | "catalog" | "catalogReferences" | "cycles" | "dependencies" | "devDependencies" | "duplicates" | "enumMembers" | "exports" | "files" | "namespaceMembers" | "nsExports" | "nsTypes" | "optionalPeerDependencies" | "types" | "unlisted" | "unresolved")[]> | undefined;
977
990
  cycles?: {
978
991
  allow?: string[][] | undefined;
@@ -1720,6 +1733,11 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
1720
1733
  entry?: string | string[] | undefined;
1721
1734
  project?: string | string[] | undefined;
1722
1735
  } | undefined;
1736
+ textlint?: string | boolean | string[] | {
1737
+ config?: string | string[] | undefined;
1738
+ entry?: string | string[] | undefined;
1739
+ project?: string | string[] | undefined;
1740
+ } | undefined;
1723
1741
  travis?: string | boolean | string[] | {
1724
1742
  config?: string | string[] | undefined;
1725
1743
  entry?: string | string[] | undefined;
@@ -1800,6 +1818,11 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
1800
1818
  entry?: string | string[] | undefined;
1801
1819
  project?: string | string[] | undefined;
1802
1820
  } | undefined;
1821
+ varlock?: string | boolean | string[] | {
1822
+ config?: string | string[] | undefined;
1823
+ entry?: string | string[] | undefined;
1824
+ project?: string | string[] | undefined;
1825
+ } | undefined;
1803
1826
  vercel?: string | boolean | string[] | {
1804
1827
  config?: string | string[] | undefined;
1805
1828
  entry?: string | string[] | undefined;
@@ -1911,10 +1934,13 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
1911
1934
  ignore?: string | string[] | undefined;
1912
1935
  ignoreFiles?: string | string[] | undefined;
1913
1936
  ignoreBinaries?: (string | RegExp)[] | undefined;
1937
+ ignoreGlobalBinaries?: boolean | undefined;
1914
1938
  ignoreDependencies?: (string | RegExp)[] | undefined;
1915
1939
  ignoreMembers?: (string | RegExp)[] | undefined;
1916
1940
  ignoreUnresolved?: (string | RegExp)[] | undefined;
1917
- ignoreExportsUsedInFile?: boolean | Record<string, boolean | undefined> | undefined;
1941
+ ignoreExportsUsedInFile?: boolean | {
1942
+ [x: string]: boolean | undefined;
1943
+ } | undefined;
1918
1944
  ignoreIssues?: Record<string, ("binaries" | "catalog" | "catalogReferences" | "cycles" | "dependencies" | "devDependencies" | "duplicates" | "enumMembers" | "exports" | "files" | "namespaceMembers" | "nsExports" | "nsTypes" | "optionalPeerDependencies" | "types" | "unlisted" | "unresolved")[]> | undefined;
1919
1945
  includeEntryExports?: boolean | undefined;
1920
1946
  }> | undefined;
@@ -21,7 +21,7 @@ export class FileEntryCache {
21
21
  constructor(cacheId, _path) {
22
22
  this.filePath = path.resolve(_path, cacheId);
23
23
  if (isFile(this.filePath))
24
- this.cache = create(this.filePath);
24
+ this.cache = create(this.filePath) ?? this.cache;
25
25
  }
26
26
  getFileDescriptor(filePath) {
27
27
  if (!isAbsolute(filePath))
@@ -13,6 +13,7 @@ export type Gitignores = {
13
13
  ignores: Set<string>;
14
14
  unignores: Set<string>;
15
15
  };
16
+ export declare const isGitIgnored: (filePath: string) => boolean;
16
17
  export declare const getGitignoreFingerprint: () => string;
17
18
  export declare const findAndParseGitignores: (cwd: string, workspaceDirs?: Set<string>) => Promise<{
18
19
  gitignoreFiles: string[];
@@ -11,10 +11,12 @@ import { isDirectory, isFile } from './fs.js';
11
11
  import { getCachedGitignore, isGitignoreCacheEnabled, setCachedGitignore } from './gitignore-cache.js';
12
12
  import { timerify } from './Performance.js';
13
13
  import { expandIgnorePatterns, parseAndConvertGitignorePatterns } from './parse-and-convert-gitignores.js';
14
- import { dirname, isAbsolute, join, relative, toPosix } from './path.js';
14
+ import { dirname, isAbsolute, join, relative, toAbsolute, toPosix } from './path.js';
15
15
  const cachedGitIgnores = new Map();
16
16
  const cachedGlobIgnores = new Map();
17
17
  let gitignoreReconciler;
18
+ let gitignoreMatcher = (_filePath) => false;
19
+ export const isGitIgnored = (filePath) => gitignoreMatcher(filePath);
18
20
  let gitignoreFingerprint = '';
19
21
  export const getGitignoreFingerprint = () => gitignoreFingerprint;
20
22
  const hashIgnores = (ignores, unignores) => {
@@ -39,7 +41,7 @@ const getGitDir = (cwd) => {
39
41
  const content = readFileSync(dotGit, 'utf8').trim();
40
42
  const match = content.match(/^gitdir:\s*(.+)$/);
41
43
  if (match)
42
- return join(cwd, match[1]);
44
+ return toAbsolute(toPosix(match[1]), cwd);
43
45
  }
44
46
  return undefined;
45
47
  };
@@ -155,7 +157,11 @@ export const findAndParseGitignores = async (cwd, workspaceDirs) => {
155
157
  addFile(filePath);
156
158
  const gitDir = getGitDir(cwd);
157
159
  if (gitDir) {
158
- const excludePath = join(gitDir, 'info/exclude');
160
+ const commonDirPath = join(gitDir, 'commondir');
161
+ const commonDir = isFile(commonDirPath)
162
+ ? toAbsolute(toPosix(readFileSync(commonDirPath, 'utf8').trim()), gitDir)
163
+ : gitDir;
164
+ const excludePath = join(commonDir, 'info/exclude');
159
165
  if (isFile(excludePath))
160
166
  addFile(excludePath, cwd);
161
167
  }
@@ -296,6 +302,7 @@ export function reconcileGitignoredPaths(paths, cwd) {
296
302
  export async function getGitIgnoredHandler(options, workspaceDirs) {
297
303
  cachedGitIgnores.clear();
298
304
  gitignoreReconciler = undefined;
305
+ gitignoreMatcher = () => false;
299
306
  gitignoreFingerprint = '';
300
307
  if (options.gitignore === false)
301
308
  return () => false;
@@ -313,6 +320,7 @@ export async function getGitIgnoredHandler(options, workspaceDirs) {
313
320
  }
314
321
  return result;
315
322
  };
323
+ gitignoreMatcher = isGitIgnored;
316
324
  if (unignores.size > 0)
317
325
  gitignoreReconciler = isGitIgnored;
318
326
  return isGitIgnored;
package/dist/util/jiti.js CHANGED
@@ -8,6 +8,7 @@ const options = {
8
8
  '@rushstack/eslint-patch/modern-module-resolution': empty,
9
9
  },
10
10
  tsconfigPaths: true,
11
+ jsx: true,
11
12
  };
12
13
  const createLoader = (options) => createJiti(process.cwd(), options);
13
14
  export const jiti = createLoader(options);
@@ -3,6 +3,8 @@ export declare const getPackageNameFromFilePath: (value: string) => string;
3
3
  export declare const getPackageNameFromSpecifier: (specifier: string) => string | undefined;
4
4
  export declare const isStartsLikePackageName: (specifier: string) => boolean;
5
5
  export declare const stripVersionFromSpecifier: (specifier: string) => string;
6
+ export declare const isInNodeModulesBin: (value: string) => boolean;
7
+ export declare const isRelativeNodeModulesBin: (value: string) => boolean;
6
8
  export declare const extractBinary: (command: string) => string;
7
9
  export declare const isValidBinary: (str: string) => boolean;
8
10
  export declare const isDefinitelyTyped: (packageName: string) => boolean;
@@ -38,7 +38,7 @@ const getPackageNameFromYarnPnpmStore = (posixPath) => {
38
38
  };
39
39
  export const getPackageNameFromFilePath = (value) => {
40
40
  const name = value.startsWith('file://') ? value.slice(7) : value;
41
- if (name.includes('node_modules/.bin/'))
41
+ if (isInNodeModulesBin(name))
42
42
  return extractBinary(name);
43
43
  const posixPath = toPosix(name);
44
44
  const match = posixPath.match(lastPackageNameMatch);
@@ -56,6 +56,8 @@ export const isStartsLikePackageName = (specifier) => {
56
56
  return ch === 64 ? isPackageScopeStart(specifier.charCodeAt(1)) : isPackageNameStart(ch);
57
57
  };
58
58
  export const stripVersionFromSpecifier = (specifier) => specifier.replace(/(\S+)@.*/, '$1');
59
+ export const isInNodeModulesBin = (value) => value.includes('node_modules/.bin/');
60
+ export const isRelativeNodeModulesBin = (value) => /^(?:\.\.?\/)*node_modules\/\.bin\//.test(value);
59
61
  const stripNodeModulesFromPath = (command) => command.replace(/(?:\.{0,2}\/)*node_modules\//, '');
60
62
  export const extractBinary = (command) => stripVersionFromSpecifier(stripNodeModulesFromPath(command)
61
63
  .replace(/^(\.bin\/)/, '')
@@ -160,195 +160,197 @@ export declare const getPublishedTypeManifest: (manifest: PackageJson) => {
160
160
  catalogs?: import("../types/package-json.ts").Catalogs;
161
161
  packageManager?: string;
162
162
  engines?: Record<string, string>;
163
- pnpm: {
163
+ pnpm?: {
164
164
  overrides?: {
165
165
  [x: string]: string;
166
166
  };
167
167
  packageExtensions?: import("../types/package-json.ts").PackageExtensions;
168
168
  };
169
169
  knip?: import("../types/config.ts").WorkspaceConfiguration;
170
- angular: unknown;
171
- astro: unknown;
172
- "astro-db": unknown;
173
- "astro-markdoc": unknown;
174
- "astro-og-canvas": unknown;
175
- ava: unknown;
176
- babel: unknown;
177
- biome: unknown;
178
- borp: unknown;
179
- bumpp: unknown;
180
- bun: unknown;
181
- c8: unknown;
182
- capacitor: unknown;
183
- catalyst: unknown;
184
- changelogen: unknown;
185
- changelogithub: unknown;
186
- changesets: unknown;
187
- commitizen: unknown;
188
- commitlint: unknown;
189
- convex: unknown;
190
- "create-typescript-app": unknown;
191
- cspell: unknown;
192
- cucumber: unknown;
193
- cypress: unknown;
194
- danger: unknown;
195
- "dependency-cruiser": unknown;
196
- docusaurus: unknown;
197
- dotenv: unknown;
198
- drizzle: unknown;
199
- "electron-vite": unknown;
200
- eleventy: unknown;
201
- esbuild: unknown;
202
- eslint: unknown;
203
- eve: unknown;
204
- execa: unknown;
205
- expo: unknown;
206
- "expressive-code": unknown;
207
- fast: unknown;
208
- fumadocs: unknown;
209
- gatsby: unknown;
210
- "github-action": unknown;
211
- "github-actions": unknown;
212
- glob: unknown;
213
- "graphql-codegen": unknown;
214
- hardhat: unknown;
215
- husky: unknown;
216
- "i18next-parser": unknown;
217
- jest: unknown;
218
- karma: unknown;
219
- knex: unknown;
220
- ladle: unknown;
221
- "laravel-vite-plugin": unknown;
222
- lefthook: unknown;
223
- "lint-staged": unknown;
224
- linthtml: unknown;
225
- lit: unknown;
226
- "lockfile-lint": unknown;
227
- "lost-pixel": unknown;
228
- lunaria: unknown;
229
- markdownlint: unknown;
230
- marko: unknown;
231
- mdx: unknown;
232
- mdxlint: unknown;
233
- metro: unknown;
234
- mise: unknown;
235
- mocha: unknown;
236
- moonrepo: unknown;
237
- msw: unknown;
238
- "nano-spawn": unknown;
239
- "nano-staged": unknown;
240
- nest: unknown;
241
- netlify: unknown;
242
- next: unknown;
243
- "next-intl": unknown;
244
- "next-mdx": unknown;
245
- nitro: unknown;
246
- node: unknown;
247
- "node-modules-inspector": unknown;
248
- nodemon: unknown;
249
- "npm-package-json-lint": unknown;
250
- nuxt: unknown;
251
- "nuxtjs-i18n": unknown;
252
- nx: unknown;
253
- nyc: unknown;
254
- oclif: unknown;
255
- "openapi-ts": unknown;
256
- openclaw: unknown;
257
- orval: unknown;
258
- oxfmt: unknown;
259
- oxlint: unknown;
260
- "panda-css": unknown;
261
- parcel: unknown;
262
- payload: unknown;
263
- pino: unknown;
264
- playwright: unknown;
265
- "playwright-ct": unknown;
266
- "playwright-test": unknown;
267
- plop: unknown;
268
- pm2: unknown;
269
- postcss: unknown;
270
- "pre-commit": unknown;
271
- preconstruct: unknown;
272
- prettier: unknown;
273
- prisma: unknown;
274
- quasar: unknown;
275
- qwik: unknown;
276
- raycast: unknown;
277
- "react-cosmos": unknown;
278
- "react-email": unknown;
279
- "react-native": unknown;
280
- "react-router": unknown;
281
- relay: unknown;
282
- "release-it": unknown;
283
- remark: unknown;
284
- remix: unknown;
285
- rolldown: unknown;
286
- rollup: unknown;
287
- rsbuild: unknown;
288
- rslib: unknown;
289
- rspack: unknown;
290
- rstest: unknown;
291
- sanity: unknown;
292
- "semantic-release": unknown;
293
- sentry: unknown;
294
- "serverless-framework": unknown;
295
- "simple-git-hooks": unknown;
296
- "size-limit": unknown;
297
- sst: unknown;
298
- starlight: unknown;
299
- stencil: unknown;
300
- storybook: unknown;
301
- stryker: unknown;
302
- stylelint: unknown;
303
- svelte: unknown;
304
- "sveltejs-package": unknown;
305
- sveltekit: unknown;
306
- svgo: unknown;
307
- svgr: unknown;
308
- swc: unknown;
309
- syncpack: unknown;
310
- tailwind: unknown;
311
- "tanstack-router": unknown;
312
- taskfile: unknown;
313
- tauri: unknown;
314
- temporal: unknown;
315
- travis: unknown;
316
- "ts-node": unknown;
317
- tsd: unknown;
318
- tsdown: unknown;
319
- tsup: unknown;
320
- tsx: unknown;
321
- typedoc: unknown;
322
- typescript: unknown;
323
- unbuild: unknown;
324
- unocss: unknown;
325
- "unplugin-auto-import": unknown;
326
- "unplugin-icons": unknown;
327
- "unplugin-vue-components": unknown;
328
- "unplugin-vue-i18n": unknown;
329
- "unplugin-vue-markdown": unknown;
330
- "unplugin-vue-router": unknown;
331
- vercel: unknown;
332
- "vercel-og": unknown;
333
- vike: unknown;
334
- vite: unknown;
335
- "vite-plugin-pages": unknown;
336
- "vite-plugin-pwa": unknown;
337
- "vite-plugin-vue-layouts-next": unknown;
338
- "vite-plus": unknown;
339
- "vite-pwa-assets-generator": unknown;
340
- vitepress: unknown;
341
- vitest: unknown;
342
- vue: unknown;
343
- "webdriver-io": unknown;
344
- webpack: unknown;
345
- wireit: unknown;
346
- wrangler: unknown;
347
- wxt: unknown;
348
- xo: unknown;
349
- yarn: unknown;
350
- yorkie: unknown;
351
- zx: unknown;
170
+ angular?: unknown;
171
+ astro?: unknown;
172
+ "astro-db"?: unknown;
173
+ "astro-markdoc"?: unknown;
174
+ "astro-og-canvas"?: unknown;
175
+ ava?: unknown;
176
+ babel?: unknown;
177
+ biome?: unknown;
178
+ borp?: unknown;
179
+ bumpp?: unknown;
180
+ bun?: unknown;
181
+ c8?: unknown;
182
+ capacitor?: unknown;
183
+ catalyst?: unknown;
184
+ changelogen?: unknown;
185
+ changelogithub?: unknown;
186
+ changesets?: unknown;
187
+ commitizen?: unknown;
188
+ commitlint?: unknown;
189
+ convex?: unknown;
190
+ "create-typescript-app"?: unknown;
191
+ cspell?: unknown;
192
+ cucumber?: unknown;
193
+ cypress?: unknown;
194
+ danger?: unknown;
195
+ "dependency-cruiser"?: unknown;
196
+ docusaurus?: unknown;
197
+ dotenv?: unknown;
198
+ drizzle?: unknown;
199
+ "electron-vite"?: unknown;
200
+ eleventy?: unknown;
201
+ esbuild?: unknown;
202
+ eslint?: unknown;
203
+ eve?: unknown;
204
+ execa?: unknown;
205
+ expo?: unknown;
206
+ "expressive-code"?: unknown;
207
+ fast?: unknown;
208
+ fumadocs?: unknown;
209
+ gatsby?: unknown;
210
+ "github-action"?: unknown;
211
+ "github-actions"?: unknown;
212
+ glob?: unknown;
213
+ "graphql-codegen"?: unknown;
214
+ hardhat?: unknown;
215
+ husky?: unknown;
216
+ "i18next-parser"?: unknown;
217
+ jest?: unknown;
218
+ karma?: unknown;
219
+ knex?: unknown;
220
+ ladle?: unknown;
221
+ "laravel-vite-plugin"?: unknown;
222
+ lefthook?: unknown;
223
+ "lint-staged"?: unknown;
224
+ linthtml?: unknown;
225
+ lit?: unknown;
226
+ "lockfile-lint"?: unknown;
227
+ "lost-pixel"?: unknown;
228
+ lunaria?: unknown;
229
+ markdownlint?: unknown;
230
+ marko?: unknown;
231
+ mdx?: unknown;
232
+ mdxlint?: unknown;
233
+ metro?: unknown;
234
+ mise?: unknown;
235
+ mocha?: unknown;
236
+ moonrepo?: unknown;
237
+ msw?: unknown;
238
+ "nano-spawn"?: unknown;
239
+ "nano-staged"?: unknown;
240
+ nest?: unknown;
241
+ netlify?: unknown;
242
+ next?: unknown;
243
+ "next-intl"?: unknown;
244
+ "next-mdx"?: unknown;
245
+ nitro?: unknown;
246
+ node?: unknown;
247
+ "node-modules-inspector"?: unknown;
248
+ nodemon?: unknown;
249
+ "npm-package-json-lint"?: unknown;
250
+ nuxt?: unknown;
251
+ "nuxtjs-i18n"?: unknown;
252
+ nx?: unknown;
253
+ nyc?: unknown;
254
+ oclif?: unknown;
255
+ "openapi-ts"?: unknown;
256
+ openclaw?: unknown;
257
+ orval?: unknown;
258
+ oxfmt?: unknown;
259
+ oxlint?: unknown;
260
+ "panda-css"?: unknown;
261
+ parcel?: unknown;
262
+ payload?: unknown;
263
+ pino?: unknown;
264
+ playwright?: unknown;
265
+ "playwright-ct"?: unknown;
266
+ "playwright-test"?: unknown;
267
+ plop?: unknown;
268
+ pm2?: unknown;
269
+ postcss?: unknown;
270
+ "pre-commit"?: unknown;
271
+ preconstruct?: unknown;
272
+ prettier?: unknown;
273
+ prisma?: unknown;
274
+ quasar?: unknown;
275
+ qwik?: unknown;
276
+ raycast?: unknown;
277
+ "react-cosmos"?: unknown;
278
+ "react-email"?: unknown;
279
+ "react-native"?: unknown;
280
+ "react-router"?: unknown;
281
+ relay?: unknown;
282
+ "release-it"?: unknown;
283
+ remark?: unknown;
284
+ remix?: unknown;
285
+ rolldown?: unknown;
286
+ rollup?: unknown;
287
+ rsbuild?: unknown;
288
+ rslib?: unknown;
289
+ rspack?: unknown;
290
+ rstest?: unknown;
291
+ sanity?: unknown;
292
+ "semantic-release"?: unknown;
293
+ sentry?: unknown;
294
+ "serverless-framework"?: unknown;
295
+ "simple-git-hooks"?: unknown;
296
+ "size-limit"?: unknown;
297
+ sst?: unknown;
298
+ starlight?: unknown;
299
+ stencil?: unknown;
300
+ storybook?: unknown;
301
+ stryker?: unknown;
302
+ stylelint?: unknown;
303
+ svelte?: unknown;
304
+ "sveltejs-package"?: unknown;
305
+ sveltekit?: unknown;
306
+ svgo?: unknown;
307
+ svgr?: unknown;
308
+ swc?: unknown;
309
+ syncpack?: unknown;
310
+ tailwind?: unknown;
311
+ "tanstack-router"?: unknown;
312
+ taskfile?: unknown;
313
+ tauri?: unknown;
314
+ temporal?: unknown;
315
+ textlint?: unknown;
316
+ travis?: unknown;
317
+ "ts-node"?: unknown;
318
+ tsd?: unknown;
319
+ tsdown?: unknown;
320
+ tsup?: unknown;
321
+ tsx?: unknown;
322
+ typedoc?: unknown;
323
+ typescript?: unknown;
324
+ unbuild?: unknown;
325
+ unocss?: unknown;
326
+ "unplugin-auto-import"?: unknown;
327
+ "unplugin-icons"?: unknown;
328
+ "unplugin-vue-components"?: unknown;
329
+ "unplugin-vue-i18n"?: unknown;
330
+ "unplugin-vue-markdown"?: unknown;
331
+ "unplugin-vue-router"?: unknown;
332
+ varlock?: unknown;
333
+ vercel?: unknown;
334
+ "vercel-og"?: unknown;
335
+ vike?: unknown;
336
+ vite?: unknown;
337
+ "vite-plugin-pages"?: unknown;
338
+ "vite-plugin-pwa"?: unknown;
339
+ "vite-plugin-vue-layouts-next"?: unknown;
340
+ "vite-plus"?: unknown;
341
+ "vite-pwa-assets-generator"?: unknown;
342
+ vitepress?: unknown;
343
+ vitest?: unknown;
344
+ vue?: unknown;
345
+ "webdriver-io"?: unknown;
346
+ webpack?: unknown;
347
+ wireit?: unknown;
348
+ wrangler?: unknown;
349
+ wxt?: unknown;
350
+ xo?: unknown;
351
+ yarn?: unknown;
352
+ yorkie?: unknown;
353
+ zx?: unknown;
352
354
  };
353
355
  export declare const getPublishedTypeExportSpecifiers: (exports: PackageJson['exports']) => Set<string>;
354
356
  export declare const getPublishedTypeEntrySpecifiers: (manifest: PackageJson) => {
@@ -3,9 +3,11 @@ type ParsedValue = any;
3
3
  export interface ParsedArgs {
4
4
  _: string[];
5
5
  '--'?: string[];
6
+ positionalIndices?: number[];
6
7
  [key: string]: ParsedValue;
7
8
  }
8
9
  interface Opts {
10
+ isStorePositions?: boolean;
9
11
  string?: string[];
10
12
  boolean?: string[];
11
13
  alias?: Record<string, string | string[]>;