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.
- package/dist/ConfigurationChief.d.ts +20 -2
- package/dist/ConfigurationChief.js +15 -1
- package/dist/DependencyDeputy.d.ts +0 -2
- package/dist/DependencyDeputy.js +1 -17
- package/dist/WorkspaceWorker.js +7 -6
- package/dist/binaries/bash-parser.js +1 -1
- package/dist/binaries/command.js +21 -10
- package/dist/binaries/fallback.js +5 -4
- package/dist/binaries/plugins.js +4 -4
- package/dist/binaries/resolvers/bun.js +2 -2
- package/dist/binaries/resolvers/find.js +5 -4
- package/dist/binaries/resolvers/index.d.ts +2 -1
- package/dist/binaries/resolvers/index.js +3 -2
- package/dist/binaries/resolvers/npm.js +46 -4
- package/dist/binaries/resolvers/npx.js +8 -4
- package/dist/binaries/resolvers/nub.js +3 -2
- package/dist/binaries/resolvers/pnpm.js +17 -10
- package/dist/binaries/resolvers/yarn.js +1 -1
- package/dist/binaries/util.d.ts +4 -1
- package/dist/binaries/util.js +2 -0
- package/dist/compilers/compilers.js +1 -1
- package/dist/compilers/scss.js +2 -2
- package/dist/graph-explorer/cache.d.ts +3 -0
- package/dist/graph-explorer/cache.js +6 -0
- package/dist/graph-explorer/explorer.d.ts +1 -0
- package/dist/graph-explorer/explorer.js +2 -0
- package/dist/graph-explorer/operations/build-exports-tree.js +14 -2
- package/dist/graph-explorer/operations/get-ambiguous-star-export.d.ts +8 -0
- package/dist/graph-explorer/operations/get-ambiguous-star-export.js +11 -0
- package/dist/graph-explorer/operations/get-contention.js +265 -122
- package/dist/graph-explorer/operations/resolve-export-origins.d.ts +32 -0
- package/dist/graph-explorer/operations/resolve-export-origins.js +255 -0
- package/dist/graph-explorer/utils.js +8 -0
- package/dist/manifest/index.js +1 -3
- package/dist/plugins/ava/index.js +1 -1
- package/dist/plugins/eslint/helpers.d.ts +2 -1
- package/dist/plugins/eslint/helpers.js +59 -14
- package/dist/plugins/eslint/index.js +2 -2
- package/dist/plugins/eslint/resolveFromAST.js +17 -11
- package/dist/plugins/eslint/types.d.ts +3 -3
- package/dist/plugins/github-actions/index.js +1 -1
- package/dist/plugins/graphql-codegen/index.js +15 -4
- package/dist/plugins/graphql-codegen/types.d.ts +11 -1
- package/dist/plugins/graphql-codegen/types.js +6 -0
- package/dist/plugins/husky/index.js +1 -1
- package/dist/plugins/index.d.ts +2 -0
- package/dist/plugins/index.js +4 -0
- package/dist/plugins/lefthook/index.js +1 -1
- package/dist/plugins/mise/scripts.js +5 -5
- package/dist/plugins/next/index.js +39 -5
- package/dist/plugins/node/index.js +6 -0
- package/dist/plugins/tailwind/compiler.js +2 -2
- package/dist/plugins/tailwind/index.js +7 -1
- package/dist/plugins/taskfile/index.js +1 -1
- package/dist/plugins/tauri/index.js +1 -1
- package/dist/plugins/textlint/helpers.d.ts +4 -0
- package/dist/plugins/textlint/helpers.js +39 -0
- package/dist/plugins/textlint/index.d.ts +3 -0
- package/dist/plugins/textlint/index.js +52 -0
- package/dist/plugins/textlint/types.d.ts +5 -0
- package/dist/plugins/textlint/types.js +1 -0
- package/dist/plugins/travis/index.js +1 -1
- package/dist/plugins/typedoc/index.js +3 -2
- package/dist/plugins/typedoc/types.d.ts +2 -2
- package/dist/plugins/varlock/index.d.ts +3 -0
- package/dist/plugins/varlock/index.js +31 -0
- package/dist/plugins/varlock/parse.d.ts +11 -0
- package/dist/plugins/varlock/parse.js +185 -0
- package/dist/plugins/varlock/scan.d.ts +2 -0
- package/dist/plugins/varlock/scan.js +78 -0
- package/dist/plugins/vite-plus/resolveFromAST.js +1 -1
- package/dist/plugins/vitest/index.js +4 -2
- package/dist/reporters/trace.js +30 -1
- package/dist/schema/configuration.d.ts +33 -0
- package/dist/schema/configuration.js +2 -0
- package/dist/schema/plugins.d.ts +10 -0
- package/dist/schema/plugins.js +2 -0
- package/dist/session/build-maps.js +9 -1
- package/dist/session/file-descriptor.js +0 -2
- package/dist/session/index.d.ts +1 -1
- package/dist/session/types.d.ts +18 -0
- package/dist/types/PluginNames.d.ts +2 -2
- package/dist/types/PluginNames.js +2 -0
- package/dist/types/config.d.ts +5 -1
- package/dist/types/module-graph.d.ts +3 -0
- package/dist/types/package-json.d.ts +1 -1
- package/dist/typescript/get-imports-and-exports.js +43 -9
- package/dist/typescript/visitors/exports.js +9 -4
- package/dist/typescript/visitors/walk.d.ts +1 -1
- package/dist/typescript/visitors/walk.js +4 -1
- package/dist/util/array.d.ts +1 -1
- package/dist/util/array.js +5 -1
- package/dist/util/create-input-handler.js +3 -3
- package/dist/util/create-options.d.ts +28 -2
- package/dist/util/file-entry-cache.js +1 -1
- package/dist/util/glob-core.d.ts +1 -0
- package/dist/util/glob-core.js +11 -3
- package/dist/util/jiti.js +1 -0
- package/dist/util/modules.d.ts +2 -0
- package/dist/util/modules.js +3 -1
- package/dist/util/package-json.d.ts +185 -183
- package/dist/util/parse-args.d.ts +2 -0
- package/dist/util/parse-args.js +6 -1
- package/dist/util/url.d.ts +1 -0
- package/dist/util/url.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
- 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
|
};
|
package/dist/util/array.d.ts
CHANGED
|
@@ -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
|
|
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 {};
|
package/dist/util/array.js
CHANGED
|
@@ -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)
|
|
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 (
|
|
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:
|
|
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 |
|
|
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 |
|
|
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))
|
package/dist/util/glob-core.d.ts
CHANGED
|
@@ -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[];
|
package/dist/util/glob-core.js
CHANGED
|
@@ -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
|
|
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
|
|
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
package/dist/util/modules.d.ts
CHANGED
|
@@ -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;
|
package/dist/util/modules.js
CHANGED
|
@@ -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
|
|
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
|
|
171
|
-
astro
|
|
172
|
-
"astro-db"
|
|
173
|
-
"astro-markdoc"
|
|
174
|
-
"astro-og-canvas"
|
|
175
|
-
ava
|
|
176
|
-
babel
|
|
177
|
-
biome
|
|
178
|
-
borp
|
|
179
|
-
bumpp
|
|
180
|
-
bun
|
|
181
|
-
c8
|
|
182
|
-
capacitor
|
|
183
|
-
catalyst
|
|
184
|
-
changelogen
|
|
185
|
-
changelogithub
|
|
186
|
-
changesets
|
|
187
|
-
commitizen
|
|
188
|
-
commitlint
|
|
189
|
-
convex
|
|
190
|
-
"create-typescript-app"
|
|
191
|
-
cspell
|
|
192
|
-
cucumber
|
|
193
|
-
cypress
|
|
194
|
-
danger
|
|
195
|
-
"dependency-cruiser"
|
|
196
|
-
docusaurus
|
|
197
|
-
dotenv
|
|
198
|
-
drizzle
|
|
199
|
-
"electron-vite"
|
|
200
|
-
eleventy
|
|
201
|
-
esbuild
|
|
202
|
-
eslint
|
|
203
|
-
eve
|
|
204
|
-
execa
|
|
205
|
-
expo
|
|
206
|
-
"expressive-code"
|
|
207
|
-
fast
|
|
208
|
-
fumadocs
|
|
209
|
-
gatsby
|
|
210
|
-
"github-action"
|
|
211
|
-
"github-actions"
|
|
212
|
-
glob
|
|
213
|
-
"graphql-codegen"
|
|
214
|
-
hardhat
|
|
215
|
-
husky
|
|
216
|
-
"i18next-parser"
|
|
217
|
-
jest
|
|
218
|
-
karma
|
|
219
|
-
knex
|
|
220
|
-
ladle
|
|
221
|
-
"laravel-vite-plugin"
|
|
222
|
-
lefthook
|
|
223
|
-
"lint-staged"
|
|
224
|
-
linthtml
|
|
225
|
-
lit
|
|
226
|
-
"lockfile-lint"
|
|
227
|
-
"lost-pixel"
|
|
228
|
-
lunaria
|
|
229
|
-
markdownlint
|
|
230
|
-
marko
|
|
231
|
-
mdx
|
|
232
|
-
mdxlint
|
|
233
|
-
metro
|
|
234
|
-
mise
|
|
235
|
-
mocha
|
|
236
|
-
moonrepo
|
|
237
|
-
msw
|
|
238
|
-
"nano-spawn"
|
|
239
|
-
"nano-staged"
|
|
240
|
-
nest
|
|
241
|
-
netlify
|
|
242
|
-
next
|
|
243
|
-
"next-intl"
|
|
244
|
-
"next-mdx"
|
|
245
|
-
nitro
|
|
246
|
-
node
|
|
247
|
-
"node-modules-inspector"
|
|
248
|
-
nodemon
|
|
249
|
-
"npm-package-json-lint"
|
|
250
|
-
nuxt
|
|
251
|
-
"nuxtjs-i18n"
|
|
252
|
-
nx
|
|
253
|
-
nyc
|
|
254
|
-
oclif
|
|
255
|
-
"openapi-ts"
|
|
256
|
-
openclaw
|
|
257
|
-
orval
|
|
258
|
-
oxfmt
|
|
259
|
-
oxlint
|
|
260
|
-
"panda-css"
|
|
261
|
-
parcel
|
|
262
|
-
payload
|
|
263
|
-
pino
|
|
264
|
-
playwright
|
|
265
|
-
"playwright-ct"
|
|
266
|
-
"playwright-test"
|
|
267
|
-
plop
|
|
268
|
-
pm2
|
|
269
|
-
postcss
|
|
270
|
-
"pre-commit"
|
|
271
|
-
preconstruct
|
|
272
|
-
prettier
|
|
273
|
-
prisma
|
|
274
|
-
quasar
|
|
275
|
-
qwik
|
|
276
|
-
raycast
|
|
277
|
-
"react-cosmos"
|
|
278
|
-
"react-email"
|
|
279
|
-
"react-native"
|
|
280
|
-
"react-router"
|
|
281
|
-
relay
|
|
282
|
-
"release-it"
|
|
283
|
-
remark
|
|
284
|
-
remix
|
|
285
|
-
rolldown
|
|
286
|
-
rollup
|
|
287
|
-
rsbuild
|
|
288
|
-
rslib
|
|
289
|
-
rspack
|
|
290
|
-
rstest
|
|
291
|
-
sanity
|
|
292
|
-
"semantic-release"
|
|
293
|
-
sentry
|
|
294
|
-
"serverless-framework"
|
|
295
|
-
"simple-git-hooks"
|
|
296
|
-
"size-limit"
|
|
297
|
-
sst
|
|
298
|
-
starlight
|
|
299
|
-
stencil
|
|
300
|
-
storybook
|
|
301
|
-
stryker
|
|
302
|
-
stylelint
|
|
303
|
-
svelte
|
|
304
|
-
"sveltejs-package"
|
|
305
|
-
sveltekit
|
|
306
|
-
svgo
|
|
307
|
-
svgr
|
|
308
|
-
swc
|
|
309
|
-
syncpack
|
|
310
|
-
tailwind
|
|
311
|
-
"tanstack-router"
|
|
312
|
-
taskfile
|
|
313
|
-
tauri
|
|
314
|
-
temporal
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
"unplugin-
|
|
327
|
-
"unplugin-
|
|
328
|
-
"unplugin-vue-
|
|
329
|
-
"unplugin-vue-
|
|
330
|
-
"unplugin-vue-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
"vite-plugin-
|
|
338
|
-
"vite-
|
|
339
|
-
"vite-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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[]>;
|