Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

knip

Package Overview
Dependencies
Maintainers
0
Versions
423
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knip - npm Package Compare versions

Comparing version 5.23.0 to 5.23.1

10

dist/binaries/util.d.ts

@@ -1,5 +0,5 @@

export declare const tryResolveFilePath: (cwd: string, specifier: string, acceptModuleSpecifier?: boolean) => string | undefined;
export declare const tryResolveSpecifiers: (cwd: string, specifiers: string[]) => (string | undefined)[];
export declare const stripVersionFromSpecifier: (specifier: string) => string;
export declare const trimBinary: (command: string) => string;
export declare const argsFrom: (args: string[], from: string) => string[];
export declare const tryResolveFilePath: (cwd: string, specifier: string, acceptModuleSpecifier?: boolean) => any;
export declare const tryResolveSpecifiers: (cwd: string, specifiers: string[]) => any;
export declare const stripVersionFromSpecifier: (specifier: string) => any;
export declare const trimBinary: (command: string) => any;
export declare const argsFrom: (args: string[], from: string) => any;
import type { HasDependency } from './types.js';
declare const _default: {
condition: (hasDependency: HasDependency) => boolean;
compiler: (text: string) => string;
compiler: (text: string) => any;
};
export default _default;
import type { SyncCompilerFn } from './types.js';
export declare const importMatcher: RegExp;
export declare const fencedCodeBlockMatcher: RegExp;
export declare const importMatcher: {};
export declare const fencedCodeBlockMatcher: {};
export declare const importsWithinScripts: SyncCompilerFn;

@@ -7,698 +7,86 @@ import type { RawConfiguration } from '../types/config.js';

asyncCompilers: Record<string, AsyncCompilerFn>;
exclude?: ("dependencies" | "exports" | "files" | "devDependencies" | "unlisted" | "binaries" | "unresolved" | "types" | "nsExports" | "nsTypes" | "duplicates" | "enumMembers" | "classMembers")[] | undefined;
include?: ("dependencies" | "exports" | "files" | "devDependencies" | "unlisted" | "binaries" | "unresolved" | "types" | "nsExports" | "nsTypes" | "duplicates" | "enumMembers" | "classMembers")[] | undefined;
rules?: Partial<Record<"dependencies" | "exports" | "files" | "devDependencies" | "unlisted" | "binaries" | "unresolved" | "types" | "nsExports" | "nsTypes" | "duplicates" | "enumMembers" | "classMembers", "error" | "warn" | "off">> | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
paths?: Record<string, string[]> | undefined;
ignore?: string | string[] | undefined;
ignoreBinaries?: (string | RegExp)[] | undefined;
ignoreDependencies?: (string | RegExp)[] | undefined;
ignoreMembers?: (string | RegExp)[] | undefined;
ignoreExportsUsedInFile?: boolean | Partial<Record<"function" | "type" | "enum" | "class" | "interface" | "member", boolean>> | undefined;
ignoreWorkspaces?: string[] | undefined;
includeEntryExports?: boolean | undefined;
compilers?: Record<string, ((args_0: string, args_1: string, ...args_2: unknown[]) => string) | ((args_0: string, args_1: string, ...args_2: unknown[]) => Promise<string>)> | undefined;
astro?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
angular?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
ava?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
babel?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
capacitor?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
changesets?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
commitizen?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
commitlint?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
cspell?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
cucumber?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
cypress?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
eleventy?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
eslint?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
gatsby?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'github-actions'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'graphql-codegen'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
husky?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
jest?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
lefthook?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'lint-staged'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
linthtml?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'lockfile-lint'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'lost-pixel'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
markdownlint?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
mocha?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
moonrepo?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
msw?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
netlify?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
next?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'node-test-runner'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'npm-package-json-lint'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
nx?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
nyc?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
oclif?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
playwright?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'playwright-ct'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
postcss?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
prettier?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'release-it'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
remark?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
remix?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
rollup?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'semantic-release'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
sentry?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'simple-git-hooks'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'size-limit'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
storybook?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
stryker?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
stylelint?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
svelte?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
syncpack?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
tailwind?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
tsup?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
typedoc?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
typescript?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
unbuild?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
unocss?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'vercel-og'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
vue?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
vite?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
vitest?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'webdriver-io'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
webpack?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
wireit?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
wrangler?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
xo?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
yorkie?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
workspaces?: Record<string, {
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
paths?: Record<string, string[]> | undefined;
ignore?: string | string[] | undefined;
ignoreBinaries?: (string | RegExp)[] | undefined;
ignoreDependencies?: (string | RegExp)[] | undefined;
ignoreMembers?: (string | RegExp)[] | undefined;
includeEntryExports?: boolean | undefined;
astro?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
angular?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
ava?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
babel?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
capacitor?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
changesets?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
commitizen?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
commitlint?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
cspell?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
cucumber?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
cypress?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
eleventy?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
eslint?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
gatsby?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'github-actions'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'graphql-codegen'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
husky?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
jest?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
lefthook?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'lint-staged'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
linthtml?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'lockfile-lint'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'lost-pixel'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
markdownlint?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
mocha?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
moonrepo?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
msw?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
netlify?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
next?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'node-test-runner'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'npm-package-json-lint'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
nx?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
nyc?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
oclif?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
playwright?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'playwright-ct'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
postcss?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
prettier?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'release-it'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
remark?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
remix?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
rollup?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'semantic-release'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
sentry?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'simple-git-hooks'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'size-limit'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
storybook?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
stryker?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
stylelint?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
svelte?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
syncpack?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
tailwind?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
tsup?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
typedoc?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
typescript?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
unbuild?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
unocss?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'vercel-og'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
vue?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
vite?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
vitest?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
'webdriver-io'?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
webpack?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
wireit?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
wrangler?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
xo?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
yorkie?: string | boolean | string[] | {
config?: string | string[] | undefined;
entry?: string | string[] | undefined;
project?: string | string[] | undefined;
} | undefined;
}> | undefined;
rules?: unknown;
entry?: unknown;
project?: unknown;
paths?: unknown;
ignore?: unknown;
ignoreBinaries?: unknown;
ignoreDependencies?: unknown;
ignoreMembers?: unknown;
ignoreExportsUsedInFile?: unknown;
ignoreWorkspaces?: unknown;
includeEntryExports?: unknown;
compilers?: unknown;
include?: unknown;
exclude?: unknown;
workspaces?: unknown;
astro?: unknown;
angular?: unknown;
ava?: unknown;
babel?: unknown;
capacitor?: unknown;
changesets?: unknown;
commitizen?: unknown;
commitlint?: unknown;
cspell?: unknown;
cucumber?: unknown;
cypress?: unknown;
eleventy?: unknown;
eslint?: unknown;
gatsby?: unknown;
'github-actions'?: unknown;
'graphql-codegen'?: unknown;
husky?: unknown;
jest?: unknown;
lefthook?: unknown;
'lint-staged'?: unknown;
linthtml?: unknown;
'lockfile-lint'?: unknown;
'lost-pixel'?: unknown;
markdownlint?: unknown;
mocha?: unknown;
moonrepo?: unknown;
msw?: unknown;
netlify?: unknown;
next?: unknown;
'node-test-runner'?: unknown;
'npm-package-json-lint'?: unknown;
nx?: unknown;
nyc?: unknown;
oclif?: unknown;
playwright?: unknown;
'playwright-ct'?: unknown;
postcss?: unknown;
prettier?: unknown;
'release-it'?: unknown;
remark?: unknown;
remix?: unknown;
rollup?: unknown;
'semantic-release'?: unknown;
sentry?: unknown;
'simple-git-hooks'?: unknown;
'size-limit'?: unknown;
storybook?: unknown;
stryker?: unknown;
stylelint?: unknown;
svelte?: unknown;
syncpack?: unknown;
tailwind?: unknown;
tsup?: unknown;
typedoc?: unknown;
typescript?: unknown;
unbuild?: unknown;
unocss?: unknown;
'vercel-og'?: unknown;
vue?: unknown;
vite?: unknown;
vitest?: unknown;
'webdriver-io'?: unknown;
webpack?: unknown;
wireit?: unknown;
wrangler?: unknown;
xo?: unknown;
yorkie?: unknown;
};
export declare const getIncludedCompilers: (syncCompilers: SyncCompilers, asyncCompilers: AsyncCompilers, dependencies: DependencySet) => [SyncCompilers, AsyncCompilers];
export declare const getCompilerExtensions: (compilers: [SyncCompilers, AsyncCompilers]) => string[];
export declare const getCompilerExtensions: (compilers: [SyncCompilers, AsyncCompilers]) => any[];
import type { HasDependency } from './types.js';
declare const _default: {
condition: (hasDependency: HasDependency) => boolean;
compiler: (text: string) => string;
compiler: (text: string) => any;
};
export default _default;

@@ -36,7 +36,7 @@ import type { Configuration, IgnorePatterns, WorkspaceConfiguration } from './types/config.js';

ignoredWorkspacePatterns: string[];
workspacePackages: Map<string, Package>;
workspacePackagesByName: Map<string, Package>;
additionalWorkspaceNames: Set<string>;
workspacePackages: any;
workspacePackagesByName: any;
additionalWorkspaceNames: any;
availableWorkspaceNames: string[];
availableWorkspacePkgNames: Set<string>;
availableWorkspacePkgNames: any;
availableWorkspaceDirs: string[];

@@ -48,5 +48,5 @@ packageGraph: Graph | undefined;

constructor({ cwd, isProduction, isStrict, isIncludeEntryExports }: ConfigurationManagerOptions);
init(): Promise<void>;
init(): any;
private loadResolvedConfigurationFile;
getRules(): import("./types/issues.js").Rules;
getRules(): Record<keyof import("./types/issues.js").Issues, import("./types/issues.js").IssueSeverity>;
getFilters(): {

@@ -67,93 +67,19 @@ dir: string;

private determineIncludedWorkspaces;
getManifestForWorkspace(name: string): PackageJson | undefined;
getManifestForWorkspace(name: string): any;
getIncludedWorkspaces(): Workspace[];
private getDescendentWorkspaces;
private getIgnoredWorkspacesFor;
getNegatedWorkspacePatterns(name: string): string[];
getNegatedWorkspacePatterns(name: string): any;
private getConfigKeyForWorkspace;
getWorkspaceConfig(workspaceName: string): any;
getIgnores(workspaceName: string): {
ignoreBinaries: any[];
ignoreDependencies: any[];
ignoreBinaries: any;
ignoreDependencies: any;
};
getConfigForWorkspace(workspaceName: string, extensions?: string[]): {
astro?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
angular?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
ava?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
babel?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
capacitor?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
changesets?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
commitizen?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
commitlint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
cspell?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
cucumber?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
cypress?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
eleventy?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
eslint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
gatsby?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
husky?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
jest?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
lefthook?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
linthtml?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
markdownlint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
mocha?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
moonrepo?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
msw?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
netlify?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
next?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
nx?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
nyc?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
oclif?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
playwright?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
postcss?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
prettier?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
remark?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
remix?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
rollup?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
sentry?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
storybook?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
stryker?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
stylelint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
svelte?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
syncpack?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
tailwind?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
tsup?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
typedoc?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
typescript?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
unbuild?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
unocss?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
vue?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
vite?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
vitest?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
webpack?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
wireit?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
wrangler?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
xo?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
yorkie?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
drizzle?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
githubActions?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
graphqlCodegen?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
lintStaged?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
lockfileLint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
lostPixel?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
nodeTestRunner?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
npmPackageJsonLint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
playwrightCt?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
releaseIt?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
semanticRelease?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
simpleGitHooks?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
sizeLimit?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
vercelOg?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
webdriverIo?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
entry: string[];
project: string[];
paths: any;
ignore: string[];
isIncludeEntryExports: any;
};
getIncludedIssueTypes(): import("./types/issues.js").Report;
findWorkspaceByFilePath(filePath: string): Workspace | undefined;
findWorkspaceByName(name: string): Workspace | undefined;
getUnusedIgnoredWorkspaces(): string[];
getConfigForWorkspace(workspaceName: string, extensions?: string[]): any;
getIncludedIssueTypes(): any;
findWorkspaceByFilePath(filePath: string): any;
findWorkspaceByName(name: string): any;
getUnusedIgnoredWorkspaces(): any;
}
export {};

@@ -8,8 +8,8 @@ import type { IssueType } from './types/issues.js';

export declare const GLOBAL_IGNORE_PATTERNS: string[];
export declare const IGNORED_GLOBAL_BINARIES: Set<string>;
export declare const IGNORED_DEPENDENCIES: Set<string>;
export declare const IGNORED_RUNTIME_DEPENDENCIES: Set<string>;
export declare const FOREIGN_FILE_EXTENSIONS: Set<string>;
export declare const IGNORED_GLOBAL_BINARIES: any;
export declare const IGNORED_DEPENDENCIES: any;
export declare const IGNORED_RUNTIME_DEPENDENCIES: any;
export declare const FOREIGN_FILE_EXTENSIONS: any;
export declare const IGNORE_DEFINITELY_TYPED: string[];
export declare const ISSUE_TYPES: IssueType[];
export declare const ISSUE_TYPE_TITLE: Record<IssueType, string>;
import type { Workspace } from './ConfigurationChief.js';
import type { ConfigurationHints, Counters, Issue, Issues, SymbolIssueType } from './types/issues.js';
import type { Counters, Issue, Issues, SymbolIssueType } from './types/issues.js';
import type { PackageJson } from './types/package-json.js';

@@ -28,15 +28,3 @@ import type { DependencyArray, DependencySet, HostDependencies, InstalledBinaries, WorkspaceManifests } from './types/workspace.js';

}): void;
getWorkspaceManifest(workspaceName: string): {
workspaceDir: string;
manifestPath: string;
dependencies: DependencyArray;
devDependencies: DependencyArray;
peerDependencies: DependencySet;
optionalPeerDependencies: DependencyArray;
allDependencies: DependencySet;
ignoreDependencies: (string | RegExp)[];
ignoreBinaries: (string | RegExp)[];
usedIgnoreDependencies: Set<string | RegExp>;
usedIgnoreBinaries: Set<string | RegExp>;
} | undefined;
getWorkspaceManifest(workspaceName: string): any;
getProductionDependencies(workspaceName: string): DependencyArray;

@@ -46,12 +34,9 @@ getDevDependencies(workspaceName: string): DependencyArray;

setInstalledBinaries(workspaceName: string, installedBinaries: Map<string, Set<string>>): void;
getInstalledBinaries(workspaceName: string): InstalledBinaries | undefined;
getInstalledBinaries(workspaceName: string): any;
setHasTypesIncluded(workspaceName: string, hasTypesIncluded: Set<string>): void;
getHasTypesIncluded(workspaceName: string): InstalledBinaries | undefined;
getHasTypesIncluded(workspaceName: string): any;
addReferencedDependency(workspaceName: string, packageName: string): void;
addReferencedBinary(workspaceName: string, binaryName: string): void;
setHostDependencies(workspaceName: string, hostDependencies: HostDependencies): void;
getHostDependenciesFor(workspaceName: string, dependency: string): {
name: string;
isPeerOptional: boolean;
}[];
getHostDependenciesFor(workspaceName: string, dependency: string): any;
getOptionalPeerDependencies(workspaceName: string): DependencyArray;

@@ -71,4 +56,4 @@ maybeAddReferencedExternalDependency(workspace: Workspace, packageName: string): boolean;

counters: Counters;
}): ConfigurationHints;
}): Set<import("./types/issues.js").ConfigurationHint>;
}
export {};
import type { CommandLineOptions } from './types/cli.js';
export type { RawConfiguration as KnipConfig } from './types/config.js';
export type { Preprocessor, Reporter, ReporterOptions } from './types/issues.js';
export declare const main: (unresolvedConfiguration: CommandLineOptions) => Promise<{
report: import("./types/issues.js").Report;
issues: import("./types/issues.js").Issues;
counters: import("./types/issues.js").Counters;
rules: import("./types/issues.js").Rules;
tagHints: Set<import("./types/issues.js").TagHint>;
configurationHints: Set<import("./types/issues.js").ConfigurationHint>;
}>;
export declare const main: (unresolvedConfiguration: CommandLineOptions) => unknown;

@@ -320,4 +320,13 @@ import { watch } from 'node:fs';

const isIgnored = shouldIgnoreTags(exportedItem.jsDocTags);
if (!isIgnored && importsForExport) {
if (importsForExport) {
const { isReferenced, reExportingEntryFile, traceNode } = isIdentifierReferenced(filePath, identifier, isIncludeEntryExports);
if ((isReferenced || exportedItem.refs[1]) && isIgnored) {
for (const tagName of exportedItem.jsDocTags) {
if (tags[1].includes(tagName.replace(/^\@/, ''))) {
collector.addTagHint({ type: 'tag', filePath, identifier, tagName });
}
}
}
if (isIgnored)
continue;
if (reExportingEntryFile) {

@@ -343,3 +352,3 @@ if (!isIncludeEntryExports) {

const id = `${identifier}.${member.identifier}`;
const { isReferenced } = isIdentifierReferenced(filePath, id);
const { isReferenced } = isIdentifierReferenced(filePath, id, true);
const isIgnored = shouldIgnoreTags(member.jsDocTags);

@@ -418,3 +427,3 @@ if (!isReferenced) {

});
if (isIssueAdded) {
if (isFix && isIssueAdded) {
if (isType)

@@ -426,9 +435,2 @@ fixer.addUnusedTypeNode(filePath, exportedItem.fixes);

}
else if (isIgnored) {
for (const tagName of exportedItem.jsDocTags) {
if (tags[1].includes(tagName.replace(/^\@/, ''))) {
collector.addTagHint({ type: 'tag', filePath, identifier, tagName });
}
}
}
}

@@ -435,0 +437,0 @@ }

@@ -31,10 +31,10 @@ import type { ConfigurationHint, Issue, Rules, TagHint } from './types/issues.js';

addTagHint(issue: TagHint): void;
purge(): import("./types/issues.js").IssueSet;
purge(): Set<string>;
getIssues(): {
issues: import("./types/issues.js").Issues;
counters: import("./types/issues.js").Counters;
tagHints: Set<TagHint>;
configurationHints: Set<ConfigurationHint>;
counters: Record<keyof import("./types/issues.js").Issues | "processed" | "total", number>;
tagHints: any;
configurationHints: any;
};
}
export {};

@@ -21,3 +21,3 @@ import type { Fixes } from './types/exports.js';

addUnusedExportNode(filePath: string, fixes: Fixes | undefined): void;
fixIssues(issues: Issues): Promise<void>;
fixIssues(issues: Issues): any;
private markExportFixed;

@@ -24,0 +24,0 @@ private removeUnusedFiles;

@@ -12,3 +12,3 @@ import type { Scripts } from '../types/package-json.js';

};
export declare const getFilteredScripts: ({ isProduction, scripts }: GetFilteredScriptsOptions) => Scripts;
export declare const getFilteredScripts: ({ isProduction, scripts }: GetFilteredScriptsOptions) => any;
export {};

@@ -1,2 +0,1 @@

import type { HostDependencies, InstalledBinaries } from '../types/workspace.js';
type Options = {

@@ -8,6 +7,9 @@ packageNames: string[];

export declare const getDependencyMetaData: ({ cwd, dir, packageNames }: Options) => {
hostDependencies: HostDependencies;
installedBinaries: InstalledBinaries;
hasTypesIncluded: Set<string>;
hostDependencies: Map<string, {
name: string;
isPeerOptional: boolean;
}[]>;
installedBinaries: Map<string, Set<string>>;
hasTypesIncluded: any;
};
export {};

@@ -1,2 +0,2 @@

export declare const resolveName: (identifier: string, namespace: "preset" | "plugin") => string;
export declare const resolveName: (identifier: string, namespace: "preset" | "plugin") => any;
export declare const api: {

@@ -3,0 +3,0 @@ assertVersion: () => boolean;

@@ -6,3 +6,3 @@ import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';

title: string;
enablers: RegExp[];
enablers: {}[];
isEnabled: IsPluginEnabled;

@@ -9,0 +9,0 @@ config: string[];

@@ -5,3 +5,3 @@ import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';

title: string;
enablers: RegExp[];
enablers: {}[];
isEnabled: IsPluginEnabled;

@@ -8,0 +8,0 @@ config: string[];

@@ -7,5 +7,5 @@ import type { IsPluginEnabled, ResolveEntryPaths } from '#p/types/plugins.js';

config: string[];
entry: string[];
entry: any[];
resolveEntryPaths: ResolveEntryPaths;
};
export default _default;

@@ -112,6 +112,6 @@ import type { EleventyConfig } from './types.js';

useGitIgnore: boolean;
ignores: Set<unknown>;
watchIgnores: Set<unknown>;
ignores: any;
watchIgnores: any;
dataDeepMerge: boolean;
extensionMap: Set<unknown>;
extensionMap: any;
watchJavaScriptDependencies: boolean;

@@ -123,3 +123,3 @@ additionalWatchTargets: never[];

watchThrottleWaitTime: number;
dataExtensions: Map<any, any>;
dataExtensions: any;
quietMode: boolean;

@@ -129,3 +129,3 @@ plugins: never[];

useTemplateCache: boolean;
dataFilterSelectors: Set<unknown>;
dataFilterSelectors: any;
libraryAmendments: {};

@@ -132,0 +132,0 @@ serverPassthroughCopyBehavior: string;

import type { IsPluginEnabled, ResolveConfig, ResolveEntryPaths } from '#p/types/plugins.js';
import { DummyEleventyConfig } from './helpers.js';
import type { EleventyConfig } from './types.js';
type T = Partial<EleventyConfig> | ((arg: DummyEleventyConfig) => Promise<Partial<EleventyConfig>>);
declare const _default: {

@@ -11,5 +8,5 @@ title: string;

production: string[];
resolveEntryPaths: ResolveEntryPaths<T>;
resolveConfig: ResolveConfig<T>;
resolveEntryPaths: ResolveEntryPaths<any>;
resolveConfig: ResolveConfig<any>;
};
export default _default;

@@ -5,3 +5,3 @@ import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';

title: string;
enablers: (string | RegExp)[];
enablers: {}[];
isEnabled: IsPluginEnabled;

@@ -8,0 +8,0 @@ packageJsonPath: (manifest: import("../../types/package-json.js").PackageJson) => string;

@@ -6,5 +6,5 @@ import type { IsPluginEnabled, ResolveConfig } from '../../types/plugins.js';

isEnabled: IsPluginEnabled;
config: string[];
config: any[];
resolveConfig: ResolveConfig<string>;
};
export default _default;
import type { IsPluginEnabled, ResolveConfig, ResolveEntryPaths } from '#p/types/plugins.js';
import type { JestConfig } from './types.js';
declare const _default: {

@@ -9,5 +8,5 @@ title: string;

entry: string[];
resolveEntryPaths: ResolveEntryPaths<JestConfig>;
resolveConfig: ResolveConfig<JestConfig>;
resolveEntryPaths: ResolveEntryPaths<any>;
resolveConfig: ResolveConfig<any>;
};
export default _default;

@@ -6,5 +6,5 @@ import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';

isEnabled: IsPluginEnabled;
config: string[];
config: any[];
resolveConfig: ResolveConfig;
};
export default _default;
import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
import type { LintStagedConfig } from './types.js';
declare const _default: {

@@ -9,4 +8,4 @@ title: string;

config: string[];
resolveConfig: ResolveConfig<LintStagedConfig>;
resolveConfig: ResolveConfig<any>;
};
export default _default;

@@ -1,1 +0,1 @@

export declare const getArgumentValues: (value: string, matcher: RegExp) => string[];
export declare const getArgumentValues: (value: string, matcher: RegExp) => any;
import type { FunctionsConfig } from './types.js';
export declare const extractFunctionsConfigProperty: (config: FunctionsConfig, property: keyof FunctionsConfig) => string[];
export declare const extractFunctionsConfigProperty: (config: FunctionsConfig, property: keyof FunctionsConfig) => any[];

@@ -5,3 +5,3 @@ import type { IsPluginEnabled, ResolveConfig, ResolveEntryPaths } from '#p/types/plugins.js';

title: string;
enablers: (string | RegExp)[];
enablers: {}[];
isEnabled: IsPluginEnabled;

@@ -8,0 +8,0 @@ config: string[];

@@ -7,4 +7,4 @@ import type { IsPluginEnabled } from '#p/types/plugins.js';

entry: string[];
production: string[];
production: any[];
};
export default _default;

@@ -5,3 +5,3 @@ import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';

title: string;
enablers: (string | RegExp)[];
enablers: {}[];
isEnabled: IsPluginEnabled;

@@ -8,0 +8,0 @@ config: string[];

import type { IsPluginEnabled } from '#p/types/plugins.js';
declare const _default: {
title: string;
enablers: RegExp[];
enablers: {}[];
isEnabled: IsPluginEnabled;

@@ -6,0 +6,0 @@ config: string[];

import type { IsPluginEnabled } from '#p/types/plugins.js';
declare const _default: {
title: string;
enablers: RegExp[];
enablers: {}[];
isEnabled: IsPluginEnabled;

@@ -6,0 +6,0 @@ entry: string[];

import type { IsPluginEnabled } from '#p/types/plugins.js';
declare const _default: {
title: string;
enablers: RegExp[];
enablers: {}[];
isEnabled: IsPluginEnabled;

@@ -6,0 +6,0 @@ entry: string[];

import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
import type { PluginConfig } from './types.js';
declare const _default: {

@@ -9,4 +8,4 @@ title: string;

config: string[];
resolveConfig: ResolveConfig<PluginConfig>;
resolveConfig: ResolveConfig<any>;
};
export default _default;

@@ -5,6 +5,6 @@ import type { IsPluginEnabled, ResolveConfig, ResolveEntryPaths } from '#p/types/plugins.js';

title: string;
enablers: (string | RegExp)[];
enablers: {}[];
isEnabled: IsPluginEnabled;
config: string[];
entry: string[];
entry: any[];
project: string[];

@@ -11,0 +11,0 @@ resolveEntryPaths: ResolveEntryPaths<StorybookConfig>;

@@ -6,3 +6,3 @@ import type { IsPluginEnabled } from '#p/types/plugins.js';

isEnabled: IsPluginEnabled;
entry: string[];
entry: any[];
production: string[];

@@ -9,0 +9,0 @@ project: string[];

import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
import type { UnbuildConfig } from './types.js';
declare const _default: {

@@ -8,4 +7,4 @@ title: string;

config: string[];
resolveConfig: ResolveConfig<UnbuildConfig>;
resolveConfig: ResolveConfig<any>;
};
export default _default;
import type { ViteConfig } from './types.js';
export declare const getEnvPackageName: (env: string) => string;
export declare const getExternalReporters: (reporters?: ViteConfig["test"]["reporters"]) => string[];
export declare const getEnvPackageName: (env: string) => any;
export declare const getExternalReporters: (reporters?: ViteConfig["test"]["reporters"]) => any;

@@ -6,6 +6,3 @@ import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';

cwd: string;
}) => Promise<{
dependencies: Set<string>;
entryPatterns: Set<string>;
}>;
}) => unknown;
declare const _default: {

@@ -12,0 +9,0 @@ title: string;

import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
import type { WireitConfig } from './types.js';
declare const _default: {

@@ -9,4 +8,6 @@ title: string;

config: string[];
resolveConfig: ResolveConfig<WireitConfig>;
resolveConfig: ResolveConfig<Record<string, {
command?: string;
}>>;
};
export default _default;
import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
import type { LintStagedConfig } from '../lint-staged/types.js';
declare const _default: {

@@ -9,4 +8,4 @@ title: string;

config: string[];
resolveConfig: ResolveConfig<LintStagedConfig>;
resolveConfig: ResolveConfig<any>;
};
export default _default;

@@ -24,10 +24,10 @@ import type ts from 'typescript';

principals: Principals;
getPrincipal(options: PrincipalOptions): ProjectPrincipal;
getPrincipal(options: PrincipalOptions): any;
private findReusablePrincipal;
private linkPrincipal;
private addNewPrincipal;
getPrincipals(): ProjectPrincipal[];
getPrincipalByPackageName(packageName: string): ProjectPrincipal | undefined;
getPrincipals(): any;
getPrincipalByPackageName(packageName: string): any;
deletePrincipal(principal: ProjectPrincipal): void;
}
export {};

@@ -12,7 +12,7 @@ import ts from 'typescript';

export declare class ProjectPrincipal {
entryPaths: Set<string>;
projectPaths: Set<string>;
nonEntryPaths: Set<string>;
entryPaths: any;
projectPaths: any;
nonEntryPaths: any;
referencedDependencies: Set<[string, string, string]>;
skipExportsAnalysis: Set<string>;
skipExportsAnalysis: any;
cwd: string;

@@ -49,14 +49,14 @@ compilerOptions: ts.CompilerOptions;

addProjectPath(filePath: string): void;
deletedFiles: Set<unknown>;
deletedFiles: any;
removeProjectPath(filePath: string): void;
addReferencedDependencies(workspaceName: string, referencedDependencies: ReferencedDependencies): void;
runAsyncCompilers(): Promise<void>;
getUsedResolvedFiles(): string[];
runAsyncCompilers(): any;
getUsedResolvedFiles(): any;
private getProgramSourceFiles;
getUnreferencedFiles(): string[];
getUnreferencedFiles(): any;
analyzeSourceFile(filePath: string, options: Omit<GetImportsAndExportsOptions, 'skipExports'>, isGitIgnored: (filePath: string) => boolean, isPackageNameInternalWorkspace: (packageName: string) => boolean, getPrincipalByFilePath: (filePath: string) => undefined | ProjectPrincipal): FileNode;
invalidateFile(filePath: string): void;
findUnusedMembers(filePath: string, members: ExportMember[]): ExportMember[];
findUnusedMembers(filePath: string, members: ExportMember[]): any;
hasExternalReferences(filePath: string, exportedItem: Export): boolean;
reconcileCache(graph: DependencyGraph): void;
}

@@ -5,5 +5,5 @@ declare const _default: {

codeowners: ({ report, issues, isShowProgress, options }: import("../index.js").ReporterOptions) => void;
json: ({ report, issues, options }: import("../index.js").ReporterOptions) => Promise<void>;
json: ({ report, issues, options }: import("../index.js").ReporterOptions) => any;
markdown: ({ report, issues }: import("../index.js").ReporterOptions) => void;
};
export default _default;
import type { ReporterOptions } from '../types/issues.js';
declare const _default: ({ report, issues, options }: ReporterOptions) => Promise<void>;
declare const _default: ({ report, issues, options }: ReporterOptions) => any;
export default _default;
import { ISSUE_TYPE_TITLE } from '../constants.js';
import type { Issue, IssueSeverity, IssueSymbol } from '../types/issues.js';
export declare const identity: (text: string) => string;
export declare const getTitle: (reportType: keyof typeof ISSUE_TYPE_TITLE) => string;
export declare const getTitle: (reportType: keyof typeof ISSUE_TYPE_TITLE) => Record<keyof import("../types/issues.js").Issues, string>;
export declare const logTitle: (title: string, count: number) => void;

@@ -6,0 +6,0 @@ type LogIssueLine = {

@@ -9,7 +9,7 @@ import ts from 'typescript';

export declare function isPropertyAccessCall(node: ts.Node, identifier: string): node is ts.CallExpression;
export declare function stripQuotes(name: string): string;
export declare function stripQuotes(name: string): any;
export declare function findAncestor<T>(node: ts.Node | undefined, callback: (element: ts.Node) => boolean | 'STOP'): T | undefined;
export declare function findDescendants<T>(node: ts.Node | undefined, callback: (element: ts.Node) => boolean | 'STOP'): T[];
export declare const isDeclarationFileExtension: (extension: string) => extension is ".d.ts" | ".d.mts" | ".d.cts";
export declare const getJSDocTags: (node: ts.Node) => Set<string>;
export declare const getJSDocTags: (node: ts.Node) => any;
export declare const getLineAndCharacterOfPosition: (node: ts.Node, pos: number) => {

@@ -22,7 +22,9 @@ line: number;

export declare const isDestructuring: (node: ts.Node) => boolean;
export declare const getDestructuredIds: (name: ts.ObjectBindingPattern) => string[];
export declare const isConsiderReferencedNS: (node: ts.Identifier) => boolean;
export declare const getDestructuredIds: (name: ts.ObjectBindingPattern) => any;
export declare const isConsiderReferencedNS: (node: ts.Identifier) => any;
export declare const isTopLevel: (node: ts.Node) => boolean;
export declare const getTypeName: (node: ts.Identifier) => ts.QualifiedName | undefined;
export declare const isImportSpecifier: (node: ts.Node) => boolean;
export declare const isReferencedInExportedType: (node: ts.Node, symbol: ts.Symbol) => any;
export declare const isReferencedInExportedType: (node: ts.Node) => any;
export declare const getExportKeywordNode: (node: ts.Node) => any;
export declare const getDefaultKeywordNode: (node: ts.Node) => any;

@@ -155,9 +155,19 @@ import ts from 'typescript';

const isExported = (node) => {
if (node.modifiers?.find(mod => mod.kind === ts.SyntaxKind.ExportKeyword))
if (getExportKeywordNode(node))
return true;
return node.parent ? isExported(node.parent) : false;
};
export const isReferencedInExportedType = (node, symbol) => symbol.exportSymbol &&
!(node.transformFlags & ts.TransformFlags.ContainsTypeScript) &&
Boolean(node.parent.transformFlags & ts.TransformFlags.ContainsTypeScript) &&
isExported(node.parent);
const isTypeDeclaration = (node) => ts.isInterfaceDeclaration(node) || ts.isTypeAliasDeclaration(node) || ts.isEnumDeclaration(node);
const getAncestorTypeDeclaration = (node) => {
while (node) {
if (isTypeDeclaration(node))
return node;
node = node.parent;
}
};
export const isReferencedInExportedType = (node) => {
const typeNode = getAncestorTypeDeclaration(node);
return Boolean(typeNode && isExported(typeNode));
};
export const getExportKeywordNode = (node) => node.modifiers?.find(mod => mod.kind === ts.SyntaxKind.ExportKeyword);
export const getDefaultKeywordNode = (node) => node.modifiers?.find(mod => mod.kind === ts.SyntaxKind.DefaultKeyword);
import ts from 'typescript';
import type { Tags } from '../types/cli.js';
import type { ExportMap, ImportMap, UnresolvedImport } from '../types/dependency-graph.js';
import type { IssueSymbol } from '../types/issues.js';
import type { Export } from '../types/dependency-graph.js';
import type { BoundSourceFile } from './SourceFile.js';

@@ -17,14 +16,14 @@ export type GetImportsAndExportsOptions = {

imports: {
internal: ImportMap;
external: Set<string>;
resolved: Set<string>;
specifiers: Set<[string, string]>;
unresolved: Set<UnresolvedImport>;
internal: Map<string, import("../types/dependency-graph.js").ImportDetails>;
external: any;
resolved: any;
specifiers: any;
unresolved: any;
};
exports: {
exported: ExportMap;
duplicate: IssueSymbol[][];
exported: Map<string, Export>;
duplicate: any[];
};
scripts: Set<string>;
traceRefs: Set<string>;
scripts: any;
traceRefs: any;
};

@@ -52,3 +52,3 @@ import { isBuiltin } from 'node:module';

const addInternalImport = (options) => {
const { identifier, symbol, filePath, namespace, specifier, isReExport } = options;
const { identifier, symbol, filePath, namespace, alias, specifier, isReExport } = options;
const isStar = identifier === IMPORT_STAR;

@@ -60,3 +60,3 @@ specifiers.add([specifier, filePath]);

internalImports.set(filePath, imports);
const nsOrAlias = symbol ? String(symbol.escapedName) : options.alias;
const nsOrAlias = symbol ? String(symbol.escapedName) : alias;
if (isReExport) {

@@ -229,3 +229,6 @@ if (isStar && namespace) {

}
const isTopLevel = node.parent === sourceFile || node.parent?.parent === sourceFile;
const isTopLevel = node.parent &&
('commonJsModuleIndicator' in sourceFile
? node.parent.parent === sourceFile || node.parent === sourceFile
: node.parent === sourceFile);
if (isTopLevel) {

@@ -291,3 +294,3 @@ for (const visitor of visitors.import) {

}
if (ignoreExportsUsedInFile && !isTopLevel && isReferencedInExportedType(node, symbol)) {
if (ignoreExportsUsedInFile && !isTopLevel && isReferencedInExportedType(node)) {
referencedSymbolsInExportedTypes.add(symbol.exportSymbol);

@@ -315,2 +318,6 @@ }

return;
if (item.symbol.flags & ts.SymbolFlags.AliasExcludes) {
item.refs = [1, false];
return;
}
const symbols = new Set();

@@ -322,4 +329,4 @@ let index = 0;

if (!isIdChar(text.charAt(index - 1)) && !isIdChar(text.charAt(index + id.length))) {
const isDeclaration = index === item.pos || index === item.pos + 1;
if (!isDeclaration) {
const isExportDeclaration = index === item.pos || index === item.pos + 1;
if (!isExportDeclaration) {
const symbol = typeChecker.getSymbolAtLocation(ts.getTokenAtPosition(sourceFile, index));

@@ -351,5 +358,7 @@ if (symbol) {

};
const isSetRefs = ignoreExportsUsedInFile;
for (const item of exports.values()) {
if (ignoreExportsUsedInFile)
if (isSetRefs === true || (typeof isSetRefs === 'object' && item.type !== 'unknown' && !!isSetRefs[item.type])) {
setRefs(item);
}
for (const member of item.members) {

@@ -356,0 +365,0 @@ setRefs(member);

@@ -9,4 +9,4 @@ import ts from 'typescript';

isSkipLibs: boolean;
sourceFileCache: Map<string, ts.SourceFile | undefined>;
snapshotCache: Map<string, ts.IScriptSnapshot | undefined>;
sourceFileCache: any;
snapshotCache: any;
syncCompilers: SyncCompilers;

@@ -16,6 +16,6 @@ asyncCompilers: AsyncCompilers;

createSourceFile(filePath: string, contents: string): ts.SourceFile;
getSourceFile(filePath: string): ts.SourceFile | undefined;
getSnapshot(filePath: string): ts.IScriptSnapshot | undefined;
compileAndAddSourceFile(filePath: string): Promise<void>;
getSourceFile(filePath: string): any;
getSnapshot(filePath: string): any;
compileAndAddSourceFile(filePath: string): any;
}
export {};
import type ts from 'typescript';
declare const _default: (sourceFile: ts.SourceFile) => ((node: ts.Node, options: import("../../getImportsAndExports.js").GetImportsAndExportsOptions) => undefined | import("../../../types/imports.js").ImportNode | import("../../../types/imports.js").ImportNode[])[];
declare const _default: (sourceFile: ts.SourceFile) => any;
export default _default;
import ts from 'typescript';
import { SymbolType } from '../../../types/issues.js';
import { compact } from '../../../util/array.js';
import { isGetOrSetAccessorDeclaration, isPrivateMember, stripQuotes } from '../../ast-helpers.js';
import { getDefaultKeywordNode, getExportKeywordNode, isGetOrSetAccessorDeclaration, isPrivateMember, stripQuotes, } from '../../ast-helpers.js';
import { exportVisitor as visit } from '../index.js';
export default visit(() => true, (node, { isFixExports, isFixTypes, isReportClassMembers }) => {
const exportKeyword = node.modifiers?.find(mod => mod.kind === ts.SyntaxKind.ExportKeyword);
const exportKeyword = getExportKeywordNode(node);
if (exportKeyword) {
const getFix = (node, defaultKeyword) => isFixExports ? [node.getStart(), (defaultKeyword ?? node).getEnd() + 1] : undefined;
const getElementFix = (node) => (isFixExports ? [node.getStart(), node.getEnd()] : undefined);
const getTypeFix = (node) => (isFixTypes ? [node.getStart(), node.getEnd() + 1] : undefined);
if (ts.isVariableStatement(node)) {

@@ -14,3 +17,3 @@ return node.declarationList.declarations.flatMap(declaration => {

if (ts.isIdentifier(element.name)) {
const fix = isFixExports ? [element.getStart(), element.getEnd()] : undefined;
const fix = getElementFix(element);
return {

@@ -29,3 +32,3 @@ node: element,

if (ts.isBindingElement(element)) {
const fix = isFixExports ? [element.getStart(), element.getEnd()] : undefined;
const fix = getElementFix(element);
return {

@@ -42,26 +45,13 @@ node: element,

const identifier = declaration.name.getText();
const fix = isFixExports ? [exportKeyword.getStart(), exportKeyword.getEnd() + 1] : undefined;
return {
node: declaration,
identifier,
type: SymbolType.UNKNOWN,
pos: declaration.name.getStart(),
fix,
};
const pos = declaration.name.getStart();
const fix = getFix(exportKeyword);
return { node: declaration, identifier, type: SymbolType.UNKNOWN, pos, fix };
});
}
const defaultKeyword = node.modifiers?.find(mod => mod.kind === ts.SyntaxKind.DefaultKeyword);
const defaultKeyword = getDefaultKeywordNode(node);
if (ts.isFunctionDeclaration(node) && node.name) {
const identifier = defaultKeyword ? 'default' : node.name.getText();
const pos = (node.name ?? node.body ?? node).getStart();
const fix = isFixExports
? [exportKeyword.getStart(), (defaultKeyword ?? exportKeyword).getEnd() + 1]
: undefined;
return {
node,
identifier,
pos,
type: SymbolType.FUNCTION,
fix,
};
const fix = getFix(exportKeyword, defaultKeyword);
return { node, identifier, pos, type: SymbolType.FUNCTION, fix };
}

@@ -71,2 +61,3 @@ if (ts.isClassDeclaration(node) && node.name) {

const pos = (node.name ?? node).getStart();
const fix = getFix(exportKeyword, defaultKeyword);
const members = isReportClassMembers

@@ -86,39 +77,20 @@ ? node.members

: [];
const fix = isFixExports
? [exportKeyword.getStart(), (defaultKeyword ?? exportKeyword).getEnd() + 1]
: undefined;
return {
node,
identifier,
type: SymbolType.CLASS,
pos,
members,
fix,
};
return { node, identifier, type: SymbolType.CLASS, pos, members, fix };
}
if (ts.isTypeAliasDeclaration(node)) {
const identifier = defaultKeyword ? 'default' : node.name.getText();
const fix = isFixTypes ? [exportKeyword.getStart(), exportKeyword.getEnd() + 1] : undefined;
return {
node,
identifier,
type: SymbolType.TYPE,
pos: node.name.getStart(),
fix,
};
const identifier = node.name.getText();
const pos = node.name.getStart();
const fix = getTypeFix(exportKeyword);
return { node, identifier, type: SymbolType.TYPE, pos, fix };
}
if (ts.isInterfaceDeclaration(node)) {
const identifier = defaultKeyword ? 'default' : node.name.getText();
const fix = isFixTypes ? [exportKeyword.getStart(), exportKeyword.getEnd() + 1] : undefined;
return {
node,
identifier,
type: SymbolType.INTERFACE,
pos: node.name.getStart(),
fix,
};
const identifier = node.name.getText();
const pos = node.name.getStart();
const fix = getTypeFix(exportKeyword);
return { node, identifier, type: SymbolType.INTERFACE, pos, fix };
}
if (ts.isEnumDeclaration(node)) {
const identifier = defaultKeyword ? 'default' : node.name.getText();
const identifier = node.name.getText();
const pos = node.name.getStart();
const fix = getTypeFix(exportKeyword);
const members = node.members.map(member => ({

@@ -131,13 +103,5 @@ node: member,

}));
const fix = isFixTypes ? [exportKeyword.getStart(), exportKeyword.getEnd() + 1] : undefined;
return {
node,
identifier,
type: SymbolType.ENUM,
pos,
members,
fix,
};
return { node, identifier, type: SymbolType.ENUM, pos, members, fix };
}
}
});
import type ts from 'typescript';
declare const _default: (sourceFile: ts.SourceFile) => ((node: ts.Node, options: import("../../getImportsAndExports.js").GetImportsAndExportsOptions) => undefined | import("../../../types/exports.js").ExportNode | import("../../../types/exports.js").ExportNode[])[];
declare const _default: (sourceFile: ts.SourceFile) => any;
export default _default;
import type ts from 'typescript';
declare const _default: (sourceFile: ts.SourceFile) => ((node: ts.Node, options: import("../../getImportsAndExports.js").GetImportsAndExportsOptions) => undefined | import("../../../types/imports.js").ImportNode | import("../../../types/imports.js").ImportNode[])[];
declare const _default: (sourceFile: ts.SourceFile) => any;
export default _default;
import type ts from 'typescript';
declare const _default: (sourceFile: ts.SourceFile) => ((node: ts.Node, options: import("../../getImportsAndExports.js").GetImportsAndExportsOptions) => undefined | string | string[])[];
declare const _default: (sourceFile: ts.SourceFile) => any;
export default _default;
type Collection<T> = Array<T> | Set<T>;
export declare const compact: <T>(collection: Collection<T | undefined>) => T[];
export declare const arrayify: (value?: string[] | string) => string[];
export declare const compact: <T>(collection: Collection<T | undefined>) => any;
export declare const arrayify: (value?: string[] | string) => string | string[] | undefined;
export declare const partition: <T>(collection: T[], predicate: (item: T) => unknown) => [T[], T[]];
export {};

@@ -12,3 +12,3 @@ import { ZodError } from 'zod';

export declare const isConfigurationError: (error: Error) => error is ConfigurationError;
export declare const getKnownError: (error: Error) => Error;
export declare const getKnownError: (error: Error) => any;
export {};

@@ -16,4 +16,4 @@ import fs from 'node:fs';

filePath: string;
cache: Map<string, MetaData<T>>;
normalizedEntries: Map<string, FileDescriptor<T>>;
cache: any;
normalizedEntries: any;
constructor(cacheId: string, _path: string);

@@ -24,8 +24,5 @@ removeNotFoundFiles(): void;

removeEntry(entryName: string): void;
_getMetaForFileUsingMtimeAndSize(cacheEntry: FileDescriptor<T>): {
size: number;
mtime: number;
};
_getMetaForFileUsingMtimeAndSize(cacheEntry: FileDescriptor<T>): any;
reconcile(): void;
}
export {};
export declare const isDirectory: (filePath: string) => boolean;
export declare const isFile: (filePath: string) => boolean;
export declare const findFile: (workingDir: string, fileName: string) => string | undefined;
export declare const loadFile: (filePath: string) => Promise<string>;
export declare const loadJSON: (filePath: string) => Promise<any>;
export declare const loadYAML: (filePath: string) => Promise<unknown>;
export declare const loadTOML: (filePath: string) => Promise<Record<string, import("smol-toml").TomlPrimitive>>;
export declare const parseJSON: (filePath: string, contents: string) => Promise<any>;
export declare const loadFile: (filePath: string) => unknown;
export declare const loadJSON: (filePath: string) => unknown;
export declare const loadYAML: (filePath: string) => unknown;
export declare const loadTOML: (filePath: string) => unknown;
export declare const parseJSON: (filePath: string, contents: string) => unknown;
export declare const parseYAML: (contents: string) => unknown;
export declare function isTypeModule(path: string): boolean;
export declare const _loadJSON: (filePath: string) => Promise<any>;
export declare const _loadJSON: (filePath: string) => unknown;

@@ -1,2 +0,1 @@

import type { Report } from '../types/issues.js';
type CLIArguments = {

@@ -17,3 +16,3 @@ include: string[];

export declare const defaultExcludedIssueTypes: string[];
export declare const getIncludedIssueTypes: (cliArgs: CLIArguments, { include, exclude, isProduction }?: Options) => Report;
export declare const getIncludedIssueTypes: (cliArgs: CLIArguments, { include, exclude, isProduction }?: Options) => any;
export {};

@@ -1,1 +0,1 @@

export declare const getGitHookPaths: (defaultPath?: string, followGitConfig?: boolean) => string[];
export declare const getGitHookPaths: (defaultPath?: string, followGitConfig?: boolean) => any;
export declare const prependDirToPattern: (workingDir: string, pattern: string) => string;
export declare const negate: (pattern: string) => string;
export declare const hasProductionSuffix: (pattern: string) => boolean;
export declare const negate: (pattern: string) => any;
export declare const hasProductionSuffix: (pattern: string) => any;
export declare const hasNoProductionSuffix: (pattern: string) => boolean;

@@ -13,6 +13,6 @@ interface BaseGlobOptions {

}
export declare const _glob: ({ cwd, workingDir, patterns, gitignore }: GlobOptions) => Promise<string[]>;
export declare const _pureGlob: ({ cwd, patterns, gitignore }: BaseGlobOptions) => Promise<string[]>;
export declare const _firstGlob: ({ cwd, patterns }: BaseGlobOptions) => Promise<string | Buffer | undefined>;
export declare const _dirGlob: ({ cwd, patterns, gitignore }: BaseGlobOptions) => Promise<string[]>;
export declare const _glob: ({ cwd, workingDir, patterns, gitignore }: GlobOptions) => unknown;
export declare const _pureGlob: ({ cwd, patterns, gitignore }: BaseGlobOptions) => unknown;
export declare const _firstGlob: ({ cwd, patterns }: BaseGlobOptions) => unknown;
export declare const _dirGlob: ({ cwd, patterns, gitignore }: BaseGlobOptions) => unknown;
export {};
import type { ConfigurationChief, Workspace } from '../ConfigurationChief.js';
import type { DependencyDeputy } from '../DependencyDeputy.js';
import type { IssueCollector } from '../IssueCollector.js';
export declare const getHandler: (collector: IssueCollector, deputy: DependencyDeputy, chief: ConfigurationChief) => (specifier: string, containingFilePath: string, workspace: Workspace) => string | undefined;
export declare const getHandler: (collector: IssueCollector, deputy: DependencyDeputy, chief: ConfigurationChief) => (specifier: string, containingFilePath: string, workspace: Workspace) => any;

@@ -8,3 +8,3 @@ import type { DependencyGraph } from '../types/dependency-graph.js';

};
export declare const getIsIdentifierReferencedHandler: (graph: DependencyGraph, entryPaths: Set<string>) => (filePath: string, id: string, isIncludeEntryExports?: boolean, traceNode?: TraceNode, seen?: Set<string>) => Result;
export declare const getIsIdentifierReferencedHandler: (graph: DependencyGraph, entryPaths: Set<string>) => (filePath: string, id: string, isIncludeEntryExports?: boolean, traceNode?: TraceNode, seen?: any) => Result;
export {};

@@ -1,1 +0,1 @@

export declare const _load: (filePath: string) => Promise<any>;
export declare const _load: (filePath: string) => unknown;

@@ -1,2 +0,1 @@

import type { Package } from '../ConfigurationChief.js';
export default function mapWorkspaces(cwd: string, workspaces: string[]): Promise<Map<string, Package>[]>;
export default function mapWorkspaces(cwd: string, workspaces: string[]): unknown;
import type { PackageJson } from '../types/package-json.js';
export declare const getPackageNameFromModuleSpecifier: (moduleSpecifier: string) => string | undefined;
export declare const getPackageNameFromFilePath: (value: string) => string;
export declare const normalizeSpecifierFromFilePath: (value: string) => string;
export declare const isStartsLikePackageName: (specifier: string) => boolean;
export declare const isDefinitelyTyped: (packageName: string) => boolean;
export declare const getPackageNameFromModuleSpecifier: (moduleSpecifier: string) => any;
export declare const getPackageNameFromFilePath: (value: string) => any;
export declare const normalizeSpecifierFromFilePath: (value: string) => any;
export declare const isStartsLikePackageName: (specifier: string) => any;
export declare const isDefinitelyTyped: (packageName: string) => any;
export declare const getDefinitelyTypedFor: (packageName: string) => string;

@@ -14,3 +14,3 @@ export declare const getPackageFromDefinitelyTyped: (typedDependency: string) => string;

ignore: string[];
}) => Promise<string[]>;
export declare const sanitizeSpecifier: (specifier: string) => string;
}) => unknown;
export declare const sanitizeSpecifier: (specifier: string) => any;
import type { PackageJson } from '../types/package-json.js';
declare const INDENT: unique symbol;
declare const NEWLINE: unique symbol;
interface ExtendedPackageJson extends PackageJson {
[INDENT]?: string;
[NEWLINE]?: string;
}
export declare const load: (filePath: string) => Promise<ExtendedPackageJson>;
export declare const save: (filePath: string, content: ExtendedPackageJson) => Promise<void>;
export declare const load: (filePath: string) => unknown;
export declare const save: (filePath: string, content: ExtendedPackageJson) => any;
export {};

@@ -6,9 +6,9 @@ export declare const isAbsolute: (path: string) => boolean;

export declare const join: (...paths: string[]) => string;
export declare const toPosix: (value: string) => string;
export declare const cwd: string;
export declare const toPosix: (value: string) => any;
export declare const cwd: any;
export declare const resolve: (...paths: string[]) => string;
export declare const relative: (from: string, to?: string) => string;
export declare const isInNodeModules: (filePath: string) => boolean;
export declare const relative: (from: string, to?: string) => any;
export declare const isInNodeModules: (filePath: string) => any;
export declare const toAbsolute: (id: string, base?: string) => string;
export declare const toRelative: (id: string) => string;
export declare const isInternal: (id: string) => boolean;
export declare const toRelative: (id: string) => any;
export declare const isInternal: (id: string) => any;

@@ -18,7 +18,7 @@ import { type PerformanceEntry, PerformanceObserver } from 'node:perf_hooks';

private getEntriesByName;
getTable(): string;
getTable(): any;
getCurrentDurationInMs(startTime?: number): number;
getMemHeapUsage(): number;
getCurrentMemUsageInMb(): number;
finalize(): Promise<void>;
finalize(): any;
reset(): void;

@@ -25,0 +25,0 @@ }

@@ -7,3 +7,3 @@ import type { PackageJson } from '../types/package-json.js';

export type Graph = Record<string, Set<string>>;
export declare function createPkgGraph(cwd: string, wsNames: string[], wsPkgNames: Set<string>, byPkgName: Map<string, Package>, byName: Map<string, Package>): Graph;
export declare function createPkgGraph(cwd: string, wsNames: string[], wsPkgNames: Set<string>, byPkgName: Map<string, Package>, byName: Map<string, Package>): Record<string, Set<string>>;
export {};

@@ -7,10 +7,10 @@ export { _load as load } from './loader.js';

import type { Plugin, PluginOptions } from '../types/plugins.js';
export declare const toCamelCase: (name: string) => string;
export declare const hasDependency: (dependencies: Set<string>, values: (string | RegExp)[]) => boolean;
export declare const toCamelCase: (name: string) => any;
export declare const hasDependency: (dependencies: Set<string>, values: (string | RegExp)[]) => any;
export declare const normalizePluginConfig: (pluginConfig: RawPluginConfiguration) => boolean | {
config: string[] | null;
entry: string[] | null;
project: string[] | null;
config: string | string[] | null | undefined;
entry: string | string[] | null | undefined;
project: string | string[] | null | undefined;
};
export declare const loadConfigForPlugin: (configFilePath: string, plugin: Plugin, options: PluginOptions, pluginName: string) => Promise<any>;
export declare const getFinalEntryPaths: (plugin: Plugin, options: PluginOptions, configEntryPaths: string[]) => string[];
export declare const loadConfigForPlugin: (configFilePath: string, plugin: Plugin, options: PluginOptions, pluginName: string) => unknown;
export declare const getFinalEntryPaths: (plugin: Plugin, options: PluginOptions, configEntryPaths: string[]) => any;

@@ -1,9 +0,9 @@

export declare const toBinary: (specifier: string) => string;
export declare const fromBinary: (specifier: string) => string;
export declare const isBinary: (specifier: string) => boolean;
export declare const toEntryPattern: (specifier: string) => string;
export declare const fromEntryPattern: (specifier: string) => string;
export declare const isEntryPattern: (specifier: string) => boolean;
export declare const toProductionEntryPattern: (specifier: string) => string;
export declare const fromProductionEntryPattern: (specifier: string) => string;
export declare const isProductionEntryPattern: (specifier: string) => boolean;
export declare const toBinary: (specifier: string) => any;
export declare const fromBinary: (specifier: string) => any;
export declare const isBinary: (specifier: string) => any;
export declare const toEntryPattern: (specifier: string) => any;
export declare const fromEntryPattern: (specifier: string) => any;
export declare const isEntryPattern: (specifier: string) => any;
export declare const toProductionEntryPattern: (specifier: string) => any;
export declare const fromProductionEntryPattern: (specifier: string) => any;
export declare const isProductionEntryPattern: (specifier: string) => any;

@@ -1,3 +0,3 @@

export declare const toRegexOrString: (value: string | RegExp) => string | RegExp;
export declare const findMatch: (haystack: undefined | (string | RegExp)[], needle: string) => string | RegExp | undefined;
export declare const isIdChar: (text: string) => boolean;
export declare const toRegexOrString: (value: string | RegExp) => any;
export declare const findMatch: (haystack: undefined | (string | RegExp)[], needle: string) => any;
export declare const isIdChar: (text: string) => any;
import type { ReporterOptions } from '../types/issues.js';
export declare const runPreprocessors: (data: ReporterOptions, processors?: any) => Promise<ReporterOptions>;
export declare const runReporters: (options: ReporterOptions) => Promise<void>;
export declare const runReporters: (options: ReporterOptions) => any;
export declare const _require: NodeRequire;
export declare const _loadESLintConfig: (configFilePath: string) => any;
export declare const _resolve: (specifier: string) => string;
export declare const _tryResolve: (specifier: string, from: string) => string | undefined;
export declare const _resolveSpecifier: (dir: string, specifier: string) => string | undefined;
export declare const _resolve: (specifier: string) => any;
export declare const _tryResolve: (specifier: string, from: string) => any;
export declare const _resolveSpecifier: (dir: string, specifier: string) => any;

@@ -1,1 +0,1 @@

export declare const resolveSync: (specifier: string, containingFile: string, extensions?: string[]) => string | undefined;
export declare const resolveSync: (specifier: string, containingFile: string, extensions?: string[]) => any;
import type { Tags } from '../types/cli.js';
export declare const splitTags: (rawTags: string[]) => Tags;
export declare const splitTags: (rawTags: string[]) => any;
export declare const shouldIgnore: (jsDocTags: Set<string>, tags: Tags) => boolean;
export declare const getShouldIgnoreHandler: (isProduction: boolean) => (jsDocTags: Set<string>) => boolean;
export declare const getShouldIgnoreHandler: (isProduction: boolean) => (jsDocTags: Set<string>) => any;
export declare const getShouldIgnoreTagHandler: (tags: Tags) => (jsDocTags: Set<string>) => boolean;
import type { DependencyGraph } from '../types/dependency-graph.js';
declare const isTrace: boolean;
declare const isTrace: any;
type CreateNode = {

@@ -19,3 +19,3 @@ identifier?: string;

export declare const createNode: Create;
export declare const addNodes: (node: TraceNode, id: string, importedSymbols: DependencyGraph, filePaths?: Set<string>) => void;
export declare const addNodes: (node: TraceNode, id: string, importedSymbols: DependencyGraph, filePaths?: any) => void;
export declare const createAndPrintTrace: (filePath: string, options?: CreateNode) => void;

@@ -1,6 +0,1 @@

import ts from 'typescript';
export declare const loadTSConfig: (tsConfigFilePath: string) => Promise<{
isFile: boolean;
compilerOptions: ts.CompilerOptions;
definitionPaths: string[];
}>;
export declare const loadTSConfig: (tsConfigFilePath: string) => unknown;

@@ -1,1 +0,1 @@

export declare const unwrapFunction: (maybeFunction: unknown) => Promise<any>;
export declare const unwrapFunction: (maybeFunction: unknown) => unknown;

@@ -1,1 +0,1 @@

export declare const version = "5.23.0";
export declare const version = "5.23.1";

@@ -1,1 +0,1 @@

export const version = '5.23.0';
export const version = '5.23.1';

@@ -35,3 +35,3 @@ import { CacheConsultant } from './CacheConsultant.js';

negatedWorkspacePatterns: string[];
enabledPluginsMap: Record<"astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "lockfileLint" | "lostPixel" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease" | "simpleGitHooks" | "sizeLimit" | "vercelOg" | "webdriverIo", boolean>;
enabledPluginsMap: any;
enabledPlugins: PluginName[];

@@ -41,21 +41,16 @@ enabledPluginsInAncestors: string[];

constructor({ name, dir, cwd, config, manifest, dependencies, isProduction, isStrict, rootIgnore, negatedWorkspacePatterns, enabledPluginsInAncestors, }: WorkspaceManagerOptions);
init(): Promise<void>;
init(): any;
private determineEnabledPlugins;
private getConfigForPlugin;
getEntryFilePatterns(): string[];
getProjectFilePatterns(testFilePatterns: string[]): string[];
getPluginProjectFilePatterns(): string[];
getEntryFilePatterns(): any;
getProjectFilePatterns(testFilePatterns: string[]): any;
getPluginProjectFilePatterns(): any;
getPluginConfigPatterns(): string[];
getProductionEntryFilePatterns(negatedTestFilePatterns: string[]): string[];
getProductionProjectFilePatterns(negatedTestFilePatterns: string[]): string[];
getProductionEntryFilePatterns(negatedTestFilePatterns: string[]): any;
getProductionProjectFilePatterns(negatedTestFilePatterns: string[]): any;
private getConfigurationFilePatterns;
getIgnorePatterns(): string[];
findDependenciesByPlugins(): Promise<{
entryFilePatterns: Set<string>;
productionEntryFilePatterns: Set<string>;
referencedDependencies: ReferencedDependencies;
enabledPlugins: ("astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "lockfileLint" | "lostPixel" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease" | "simpleGitHooks" | "sizeLimit" | "vercelOg" | "webdriverIo")[];
}>;
getIgnorePatterns(): any[];
findDependenciesByPlugins(): unknown;
onDispose(): void;
}
export {};
{
"name": "knip",
"version": "5.23.0",
"version": "5.23.1",
"description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",

@@ -5,0 +5,0 @@ "homepage": "https://knip.dev",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc