knip 5.49.0 → 5.50.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/plugins/create-typescript-app/index.js +11 -0
- package/dist/plugins/index.js +2 -0
- package/dist/schema/plugins.js +1 -0
- package/dist/types/PluginNames.js +1 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schema.json +4 -0
- package/dist/CacheConsultant.d.ts +0 -14
- package/dist/ConfigurationChief.d.ts +0 -181
- package/dist/ConsoleStreamer.d.ts +0 -12
- package/dist/DependencyDeputy.d.ts +0 -78
- package/dist/IssueCollector.d.ts +0 -39
- package/dist/IssueFixer.d.ts +0 -27
- package/dist/PackageJsonPeeker.d.ts +0 -13
- package/dist/PrincipalFactory.d.ts +0 -20
- package/dist/ProjectPrincipal.d.ts +0 -58
- package/dist/WorkspaceWorker.d.ts +0 -69
- package/dist/binaries/bash-parser.d.ts +0 -3
- package/dist/binaries/fallback.d.ts +0 -2
- package/dist/binaries/index.d.ts +0 -2
- package/dist/binaries/package-manager/bun.d.ts +0 -2
- package/dist/binaries/package-manager/bunx.d.ts +0 -3
- package/dist/binaries/package-manager/index.d.ts +0 -10
- package/dist/binaries/package-manager/npm.d.ts +0 -2
- package/dist/binaries/package-manager/npx.d.ts +0 -2
- package/dist/binaries/package-manager/pnpm.d.ts +0 -2
- package/dist/binaries/package-manager/pnpx.d.ts +0 -3
- package/dist/binaries/package-manager/yarn.d.ts +0 -2
- package/dist/binaries/plugins.d.ts +0 -2
- package/dist/binaries/util.d.ts +0 -3
- package/dist/cli.d.ts +0 -1
- package/dist/compilers/astro.d.ts +0 -6
- package/dist/compilers/compilers.d.ts +0 -5
- package/dist/compilers/index.d.ts +0 -987
- package/dist/compilers/mdx.d.ts +0 -6
- package/dist/compilers/svelte.d.ts +0 -6
- package/dist/compilers/types.d.ts +0 -7
- package/dist/compilers/vue.d.ts +0 -6
- package/dist/constants.d.ts +0 -26
- package/dist/graph/analyze.d.ts +0 -30
- package/dist/graph/build.d.ts +0 -40
- package/dist/index.d.ts +0 -11
- package/dist/manifest/helpers.d.ts +0 -9
- package/dist/manifest/index.d.ts +0 -12
- package/dist/plugins/_template/index.d.ts +0 -12
- package/dist/plugins/_template/types.d.ts +0 -4
- package/dist/plugins/angular/index.d.ts +0 -10
- package/dist/plugins/angular/types.d.ts +0 -1048
- package/dist/plugins/astro/index.d.ts +0 -11
- package/dist/plugins/ava/index.d.ts +0 -12
- package/dist/plugins/ava/types.d.ts +0 -8
- package/dist/plugins/babel/helpers.d.ts +0 -14
- package/dist/plugins/babel/index.d.ts +0 -12
- package/dist/plugins/babel/types.d.ts +0 -10
- package/dist/plugins/c8/index.d.ts +0 -10
- package/dist/plugins/capacitor/index.d.ts +0 -10
- package/dist/plugins/capacitor/types.d.ts +0 -3
- package/dist/plugins/changesets/index.d.ts +0 -11
- package/dist/plugins/changesets/types.d.ts +0 -3
- package/dist/plugins/commitizen/index.d.ts +0 -12
- package/dist/plugins/commitizen/types.d.ts +0 -3
- package/dist/plugins/commitlint/index.d.ts +0 -10
- package/dist/plugins/commitlint/types.d.ts +0 -12
- package/dist/plugins/cspell/index.d.ts +0 -10
- package/dist/plugins/cspell/types.d.ts +0 -3
- package/dist/plugins/cucumber/index.d.ts +0 -12
- package/dist/plugins/cucumber/types.d.ts +0 -7
- package/dist/plugins/cypress/helpers.d.ts +0 -3
- package/dist/plugins/cypress/index.d.ts +0 -12
- package/dist/plugins/cypress/types.d.ts +0 -6
- package/dist/plugins/dependency-cruiser/index.d.ts +0 -12
- package/dist/plugins/dotenv/index.d.ts +0 -8
- package/dist/plugins/drizzle/index.d.ts +0 -10
- package/dist/plugins/drizzle/types.d.ts +0 -3
- package/dist/plugins/eleventy/helpers.d.ts +0 -138
- package/dist/plugins/eleventy/index.d.ts +0 -14
- package/dist/plugins/eleventy/types.d.ts +0 -10
- package/dist/plugins/eslint/helpers.d.ts +0 -4
- package/dist/plugins/eslint/index.d.ts +0 -15
- package/dist/plugins/eslint/types.d.ts +0 -29
- package/dist/plugins/expo/helpers.d.ts +0 -20
- package/dist/plugins/expo/index.d.ts +0 -14
- package/dist/plugins/expo/types.d.ts +0 -28
- package/dist/plugins/gatsby/index.d.ts +0 -11
- package/dist/plugins/gatsby/types.d.ts +0 -15
- package/dist/plugins/github-action/index.d.ts +0 -9
- package/dist/plugins/github-actions/index.d.ts +0 -11
- package/dist/plugins/github-actions/types.d.ts +0 -20
- package/dist/plugins/glob/index.d.ts +0 -12
- package/dist/plugins/graphql-codegen/index.d.ts +0 -11
- package/dist/plugins/graphql-codegen/types.d.ts +0 -37
- package/dist/plugins/husky/index.d.ts +0 -10
- package/dist/plugins/index.d.ts +0 -782
- package/dist/plugins/jest/helpers.d.ts +0 -4
- package/dist/plugins/jest/index.d.ts +0 -15
- package/dist/plugins/jest/types.d.ts +0 -3
- package/dist/plugins/karma/helpers.d.ts +0 -7
- package/dist/plugins/karma/index.d.ts +0 -12
- package/dist/plugins/karma/types.d.ts +0 -22
- package/dist/plugins/ladle/index.d.ts +0 -13
- package/dist/plugins/ladle/types.d.ts +0 -4
- package/dist/plugins/lefthook/index.d.ts +0 -9
- package/dist/plugins/lint-staged/index.d.ts +0 -11
- package/dist/plugins/lint-staged/types.d.ts +0 -5
- package/dist/plugins/linthtml/index.d.ts +0 -11
- package/dist/plugins/linthtml/types.d.ts +0 -4
- package/dist/plugins/lockfile-lint/index.d.ts +0 -8
- package/dist/plugins/lost-pixel/index.d.ts +0 -8
- package/dist/plugins/markdownlint/helpers.d.ts +0 -1
- package/dist/plugins/markdownlint/index.d.ts +0 -10
- package/dist/plugins/markdownlint/types.d.ts +0 -3
- package/dist/plugins/metro/index.d.ts +0 -15
- package/dist/plugins/metro/types.d.ts +0 -13
- package/dist/plugins/mocha/index.d.ts +0 -15
- package/dist/plugins/mocha/types.d.ts +0 -4
- package/dist/plugins/moonrepo/index.d.ts +0 -11
- package/dist/plugins/moonrepo/types.d.ts +0 -7
- package/dist/plugins/msw/index.d.ts +0 -11
- package/dist/plugins/msw/types.d.ts +0 -3
- package/dist/plugins/nest/index.d.ts +0 -10
- package/dist/plugins/nest/types.d.ts +0 -3
- package/dist/plugins/netlify/helpers.d.ts +0 -2
- package/dist/plugins/netlify/index.d.ts +0 -12
- package/dist/plugins/netlify/types.d.ts +0 -11
- package/dist/plugins/next/index.d.ts +0 -10
- package/dist/plugins/next/resolveFromAST.d.ts +0 -2
- package/dist/plugins/node/index.d.ts +0 -16
- package/dist/plugins/nodemon/index.d.ts +0 -10
- package/dist/plugins/npm-package-json-lint/index.d.ts +0 -11
- package/dist/plugins/npm-package-json-lint/types.d.ts +0 -3
- package/dist/plugins/nuxt/index.d.ts +0 -14
- package/dist/plugins/nuxt/types.d.ts +0 -8
- package/dist/plugins/nx/index.d.ts +0 -14
- package/dist/plugins/nx/types.d.ts +0 -19
- package/dist/plugins/nyc/index.d.ts +0 -10
- package/dist/plugins/nyc/types.d.ts +0 -4
- package/dist/plugins/oclif/index.d.ts +0 -10
- package/dist/plugins/oclif/types.d.ts +0 -4
- package/dist/plugins/playwright/index.d.ts +0 -21
- package/dist/plugins/playwright/types.d.ts +0 -36
- package/dist/plugins/playwright-ct/index.d.ts +0 -11
- package/dist/plugins/playwright-test/index.d.ts +0 -13
- package/dist/plugins/plop/index.d.ts +0 -8
- package/dist/plugins/postcss/index.d.ts +0 -10
- package/dist/plugins/postcss/types.d.ts +0 -3
- package/dist/plugins/preconstruct/index.d.ts +0 -10
- package/dist/plugins/preconstruct/types.d.ts +0 -3
- package/dist/plugins/prettier/index.d.ts +0 -10
- package/dist/plugins/prettier/types.d.ts +0 -8
- package/dist/plugins/react-cosmos/index.d.ts +0 -12
- package/dist/plugins/react-cosmos/types.d.ts +0 -5
- package/dist/plugins/react-router/index.d.ts +0 -10
- package/dist/plugins/react-router/types.d.ts +0 -7
- package/dist/plugins/release-it/index.d.ts +0 -10
- package/dist/plugins/release-it/types.d.ts +0 -10
- package/dist/plugins/remark/index.d.ts +0 -11
- package/dist/plugins/remark/types.d.ts +0 -3
- package/dist/plugins/remix/index.d.ts +0 -9
- package/dist/plugins/rollup/index.d.ts +0 -10
- package/dist/plugins/rsbuild/index.d.ts +0 -10
- package/dist/plugins/rsbuild/types.d.ts +0 -3
- package/dist/plugins/rspack/index.d.ts +0 -10
- package/dist/plugins/semantic-release/index.d.ts +0 -12
- package/dist/plugins/semantic-release/types.d.ts +0 -3
- package/dist/plugins/sentry/index.d.ts +0 -8
- package/dist/plugins/simple-git-hooks/index.d.ts +0 -10
- package/dist/plugins/simple-git-hooks/types.d.ts +0 -3
- package/dist/plugins/size-limit/index.d.ts +0 -8
- package/dist/plugins/sst/index.d.ts +0 -9
- package/dist/plugins/sst/resolveFromAST.d.ts +0 -2
- package/dist/plugins/starlight/index.d.ts +0 -9
- package/dist/plugins/starlight/resolveFromAST.d.ts +0 -2
- package/dist/plugins/storybook/index.d.ts +0 -13
- package/dist/plugins/storybook/types.d.ts +0 -20
- package/dist/plugins/stryker/index.d.ts +0 -10
- package/dist/plugins/stryker/types.d.ts +0 -5
- package/dist/plugins/stylelint/index.d.ts +0 -10
- package/dist/plugins/stylelint/types.d.ts +0 -8
- package/dist/plugins/svelte/index.d.ts +0 -9
- package/dist/plugins/syncpack/index.d.ts +0 -8
- package/dist/plugins/tailwind/index.d.ts +0 -8
- package/dist/plugins/tanstack-router/index.d.ts +0 -12
- package/dist/plugins/tanstack-router/resolveFromAST.d.ts +0 -2
- package/dist/plugins/tanstack-router/types.d.ts +0 -7
- package/dist/plugins/travis/index.d.ts +0 -10
- package/dist/plugins/ts-node/index.d.ts +0 -15
- package/dist/plugins/tsup/index.d.ts +0 -13
- package/dist/plugins/tsup/types.d.ts +0 -7
- package/dist/plugins/tsx/index.d.ts +0 -9
- package/dist/plugins/typedoc/index.d.ts +0 -16
- package/dist/plugins/typedoc/types.d.ts +0 -4
- package/dist/plugins/typescript/index.d.ts +0 -21
- package/dist/plugins/unbuild/index.d.ts +0 -10
- package/dist/plugins/unbuild/types.d.ts +0 -13
- package/dist/plugins/unocss/index.d.ts +0 -8
- package/dist/plugins/vercel-og/index.d.ts +0 -8
- package/dist/plugins/vike/index.d.ts +0 -8
- package/dist/plugins/vite/index.d.ts +0 -11
- package/dist/plugins/vitest/helpers.d.ts +0 -3
- package/dist/plugins/vitest/index.d.ts +0 -17
- package/dist/plugins/vitest/types.d.ts +0 -39
- package/dist/plugins/vue/index.d.ts +0 -10
- package/dist/plugins/vue/types.d.ts +0 -5
- package/dist/plugins/webdriver-io/index.d.ts +0 -10
- package/dist/plugins/webdriver-io/types.d.ts +0 -3
- package/dist/plugins/webpack/index.d.ts +0 -19
- package/dist/plugins/webpack/types.d.ts +0 -12
- package/dist/plugins/wireit/index.d.ts +0 -10
- package/dist/plugins/wireit/types.d.ts +0 -3
- package/dist/plugins/wrangler/index.d.ts +0 -10
- package/dist/plugins/wrangler/types.d.ts +0 -3
- package/dist/plugins/xo/index.d.ts +0 -11
- package/dist/plugins/xo/types.d.ts +0 -12
- package/dist/plugins/yarn/index.d.ts +0 -9
- package/dist/plugins/yorkie/index.d.ts +0 -11
- package/dist/plugins.d.ts +0 -7
- package/dist/reporters/codeclimate.d.ts +0 -3
- package/dist/reporters/codeowners.d.ts +0 -3
- package/dist/reporters/compact.d.ts +0 -3
- package/dist/reporters/disclosure.d.ts +0 -3
- package/dist/reporters/index.d.ts +0 -10
- package/dist/reporters/json.d.ts +0 -3
- package/dist/reporters/markdown.d.ts +0 -3
- package/dist/reporters/symbols.d.ts +0 -3
- package/dist/reporters/util.d.ts +0 -22
- package/dist/reporters/watch.d.ts +0 -12
- package/dist/schema/configuration.d.ts +0 -5439
- package/dist/schema/plugins.d.ts +0 -2204
- package/dist/types/PluginNames.d.ts +0 -2
- package/dist/types/args.d.ts +0 -14
- package/dist/types/cli.d.ts +0 -27
- package/dist/types/config.d.ts +0 -119
- package/dist/types/exports.d.ts +0 -24
- package/dist/types/imports.d.ts +0 -12
- package/dist/types/issues.d.ts +0 -88
- package/dist/types/module-graph.d.ts +0 -67
- package/dist/types/package-json.d.ts +0 -53
- package/dist/types/project.d.ts +0 -18
- package/dist/types/workspace.d.ts +0 -27
- package/dist/typescript/SourceFile.d.ts +0 -35
- package/dist/typescript/SourceFileManager.d.ts +0 -19
- package/dist/typescript/ast-helpers.d.ts +0 -38
- package/dist/typescript/create-hosts.d.ts +0 -21
- package/dist/typescript/find-internal-references.d.ts +0 -4
- package/dist/typescript/get-imports-and-exports.d.ts +0 -18
- package/dist/typescript/resolve-module-names.d.ts +0 -4
- package/dist/typescript/visitors/dynamic-imports/importCall.d.ts +0 -3
- package/dist/typescript/visitors/dynamic-imports/importType.d.ts +0 -3
- package/dist/typescript/visitors/dynamic-imports/index.d.ts +0 -3
- package/dist/typescript/visitors/dynamic-imports/jsDocType.d.ts +0 -4
- package/dist/typescript/visitors/dynamic-imports/requireCall.d.ts +0 -3
- package/dist/typescript/visitors/dynamic-imports/resolveCall.d.ts +0 -3
- package/dist/typescript/visitors/exports/exportAssignment.d.ts +0 -3
- package/dist/typescript/visitors/exports/exportDeclaration.d.ts +0 -3
- package/dist/typescript/visitors/exports/exportKeyword.d.ts +0 -3
- package/dist/typescript/visitors/exports/exportsAccessExpression.d.ts +0 -3
- package/dist/typescript/visitors/exports/index.d.ts +0 -3
- package/dist/typescript/visitors/exports/moduleExportsAccessExpression.d.ts +0 -3
- package/dist/typescript/visitors/helpers.d.ts +0 -8
- package/dist/typescript/visitors/imports/importDeclaration.d.ts +0 -3
- package/dist/typescript/visitors/imports/importEqualsDeclaration.d.ts +0 -3
- package/dist/typescript/visitors/imports/index.d.ts +0 -3
- package/dist/typescript/visitors/imports/reExportDeclaration.d.ts +0 -3
- package/dist/typescript/visitors/index.d.ts +0 -12
- package/dist/typescript/visitors/scripts/bun.d.ts +0 -3
- package/dist/typescript/visitors/scripts/execa.d.ts +0 -3
- package/dist/typescript/visitors/scripts/index.d.ts +0 -3
- package/dist/typescript/visitors/scripts/zx.d.ts +0 -3
- package/dist/util/Performance.d.ts +0 -26
- package/dist/util/array.d.ts +0 -5
- package/dist/util/cli-arguments.d.ts +0 -44
- package/dist/util/codeowners.d.ts +0 -2
- package/dist/util/create-workspace-graph.d.ts +0 -3
- package/dist/util/debug.d.ts +0 -4
- package/dist/util/empty.d.ts +0 -1
- package/dist/util/errors.d.ts +0 -13
- package/dist/util/file-entry-cache.d.ts +0 -29
- package/dist/util/fs.d.ts +0 -9
- package/dist/util/get-included-issue-types.d.ts +0 -18
- package/dist/util/get-referenced-inputs.d.ts +0 -5
- package/dist/util/git.d.ts +0 -1
- package/dist/util/glob-core.d.ts +0 -28
- package/dist/util/glob.d.ts +0 -16
- package/dist/util/graph-sequencer.d.ts +0 -9
- package/dist/util/has-strictly-ns-references.d.ts +0 -4
- package/dist/util/input.d.ts +0 -43
- package/dist/util/is-identifier-referenced.d.ts +0 -9
- package/dist/util/issue-initializers.d.ts +0 -4
- package/dist/util/jiti.d.ts +0 -1
- package/dist/util/loader.d.ts +0 -1
- package/dist/util/log.d.ts +0 -2
- package/dist/util/map-workspaces.d.ts +0 -5
- package/dist/util/math.d.ts +0 -6
- package/dist/util/module-graph.d.ts +0 -6
- package/dist/util/modules.d.ts +0 -10
- package/dist/util/object.d.ts +0 -4
- package/dist/util/package-json.d.ts +0 -14
- package/dist/util/package-name.d.ts +0 -2
- package/dist/util/path.d.ts +0 -13
- package/dist/util/plugin-config.d.ts +0 -24
- package/dist/util/plugin.d.ts +0 -9
- package/dist/util/regex.d.ts +0 -3
- package/dist/util/remove-export.d.ts +0 -8
- package/dist/util/reporter.d.ts +0 -3
- package/dist/util/require.d.ts +0 -1
- package/dist/util/resolve.d.ts +0 -2
- package/dist/util/string.d.ts +0 -1
- package/dist/util/tag.d.ts +0 -5
- package/dist/util/to-source-path.d.ts +0 -5
- package/dist/util/trace.d.ts +0 -20
- package/dist/util/tsconfig-loader.d.ts +0 -6
- package/dist/util/unwrap-function.d.ts +0 -1
- package/dist/util/watch.d.ts +0 -25
- package/dist/util/workspace.d.ts +0 -1
- package/dist/version.d.ts +0 -1
package/dist/compilers/mdx.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type FileExtension = string;
|
|
2
|
-
export type SyncCompilerFn = (source: string, path: string) => string;
|
|
3
|
-
export type AsyncCompilerFn = (source: string, path: string) => Promise<string>;
|
|
4
|
-
export type SyncCompilers = Map<FileExtension, SyncCompilerFn>;
|
|
5
|
-
export type AsyncCompilers = Map<FileExtension, AsyncCompilerFn>;
|
|
6
|
-
export type HasDependency = (pkgName: string) => boolean;
|
|
7
|
-
export {};
|
package/dist/compilers/vue.d.ts
DELETED
package/dist/constants.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { IssueType } from './types/issues.js';
|
|
2
|
-
export declare const ROOT_WORKSPACE_NAME = ".";
|
|
3
|
-
export declare const IMPORT_STAR = "*";
|
|
4
|
-
export declare const ANONYMOUS = "__anonymous";
|
|
5
|
-
export declare const KNIP_CONFIG_LOCATIONS: string[];
|
|
6
|
-
export declare const DEFAULT_EXTENSIONS: string[];
|
|
7
|
-
export declare const GLOBAL_IGNORE_PATTERNS: string[];
|
|
8
|
-
export declare const PUBLIC_TAG = "@public";
|
|
9
|
-
export declare const INTERNAL_TAG = "@internal";
|
|
10
|
-
export declare const BETA_TAG = "@beta";
|
|
11
|
-
export declare const ALIAS_TAG = "@alias";
|
|
12
|
-
export declare const DT_SCOPE = "@types";
|
|
13
|
-
export declare const PROTOCOL_VIRTUAL = "virtual:";
|
|
14
|
-
export declare const IGNORED_GLOBAL_BINARIES: Set<string>;
|
|
15
|
-
export declare const IGNORED_DEPENDENCIES: Set<string>;
|
|
16
|
-
export declare const IGNORED_RUNTIME_DEPENDENCIES: Set<string>;
|
|
17
|
-
export declare const FOREIGN_FILE_EXTENSIONS: Set<string>;
|
|
18
|
-
export declare const IGNORE_DEFINITELY_TYPED: Set<string>;
|
|
19
|
-
export declare const ISSUE_TYPES: IssueType[];
|
|
20
|
-
export declare const ISSUE_TYPE_TITLE: Record<IssueType, string>;
|
|
21
|
-
export declare const FIX_FLAGS: {
|
|
22
|
-
readonly NONE: 0;
|
|
23
|
-
readonly OBJECT_BINDING: number;
|
|
24
|
-
readonly EMPTY_DECLARATION: number;
|
|
25
|
-
readonly WITH_NEWLINE: number;
|
|
26
|
-
};
|
package/dist/graph/analyze.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ConfigurationChief } from '../ConfigurationChief.js';
|
|
2
|
-
import type { ConsoleStreamer } from '../ConsoleStreamer.js';
|
|
3
|
-
import type { DependencyDeputy } from '../DependencyDeputy.js';
|
|
4
|
-
import type { IssueCollector } from '../IssueCollector.js';
|
|
5
|
-
import type { IssueFixer } from '../IssueFixer.js';
|
|
6
|
-
import type { PrincipalFactory } from '../PrincipalFactory.js';
|
|
7
|
-
import type { Tags } from '../types/cli.js';
|
|
8
|
-
import type { Report } from '../types/issues.js';
|
|
9
|
-
import type { ModuleGraph } from '../types/module-graph.js';
|
|
10
|
-
interface AnalyzeOptions {
|
|
11
|
-
analyzedFiles: Set<string>;
|
|
12
|
-
chief: ConfigurationChief;
|
|
13
|
-
collector: IssueCollector;
|
|
14
|
-
deputy: DependencyDeputy;
|
|
15
|
-
entryPaths: Set<string>;
|
|
16
|
-
factory: PrincipalFactory;
|
|
17
|
-
fixer: IssueFixer;
|
|
18
|
-
graph: ModuleGraph;
|
|
19
|
-
isFix: boolean;
|
|
20
|
-
isDisableConfigHints: boolean;
|
|
21
|
-
isIncludeLibs: boolean;
|
|
22
|
-
isProduction: boolean;
|
|
23
|
-
report: Report;
|
|
24
|
-
streamer: ConsoleStreamer;
|
|
25
|
-
tags: Tags;
|
|
26
|
-
unreferencedFiles: Set<string>;
|
|
27
|
-
workspace?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare const analyze: (options: AnalyzeOptions) => Promise<() => Promise<void>>;
|
|
30
|
-
export {};
|
package/dist/graph/build.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ConfigurationChief, Workspace } from '../ConfigurationChief.js';
|
|
2
|
-
import type { ConsoleStreamer } from '../ConsoleStreamer.js';
|
|
3
|
-
import type { DependencyDeputy } from '../DependencyDeputy.js';
|
|
4
|
-
import type { IssueCollector } from '../IssueCollector.js';
|
|
5
|
-
import type { PrincipalFactory } from '../PrincipalFactory.js';
|
|
6
|
-
import type { ProjectPrincipal } from '../ProjectPrincipal.js';
|
|
7
|
-
import type { Tags } from '../types/cli.js';
|
|
8
|
-
import type { Report } from '../types/issues.js';
|
|
9
|
-
import type { ModuleGraph } from '../types/module-graph.js';
|
|
10
|
-
interface BuildOptions {
|
|
11
|
-
cacheLocation: string;
|
|
12
|
-
chief: ConfigurationChief;
|
|
13
|
-
collector: IssueCollector;
|
|
14
|
-
cwd: string;
|
|
15
|
-
deputy: DependencyDeputy;
|
|
16
|
-
factory: PrincipalFactory;
|
|
17
|
-
gitignore: boolean;
|
|
18
|
-
isCache: boolean;
|
|
19
|
-
isFixExports: boolean;
|
|
20
|
-
isFixTypes: boolean;
|
|
21
|
-
isGitIgnored: (path: string) => boolean;
|
|
22
|
-
isIsolateWorkspaces: boolean;
|
|
23
|
-
isProduction: boolean;
|
|
24
|
-
isSkipLibs: boolean;
|
|
25
|
-
isStrict: boolean;
|
|
26
|
-
isWatch: boolean;
|
|
27
|
-
report: Report;
|
|
28
|
-
streamer: ConsoleStreamer;
|
|
29
|
-
tags: Tags;
|
|
30
|
-
tsConfigFile?: string;
|
|
31
|
-
workspaces: Workspace[];
|
|
32
|
-
}
|
|
33
|
-
export declare function build({ cacheLocation, chief, collector, cwd, deputy, factory, gitignore, isCache, isFixExports, isFixTypes, isGitIgnored, isIsolateWorkspaces, isProduction, isSkipLibs, isStrict, isWatch, report, streamer, tags, tsConfigFile, workspaces, }: BuildOptions): Promise<{
|
|
34
|
-
graph: ModuleGraph;
|
|
35
|
-
entryPaths: Set<string>;
|
|
36
|
-
analyzedFiles: Set<string>;
|
|
37
|
-
unreferencedFiles: Set<string>;
|
|
38
|
-
analyzeSourceFile: (filePath: string, principal: ProjectPrincipal) => void;
|
|
39
|
-
}>;
|
|
40
|
-
export {};
|
package/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CommandLineOptions } from './types/cli.js';
|
|
2
|
-
export type { RawConfiguration as KnipConfig } from './types/config.js';
|
|
3
|
-
export type { Preprocessor, Reporter, ReporterOptions } from './types/issues.js';
|
|
4
|
-
export declare const main: (unresolvedConfiguration: CommandLineOptions) => Promise<{
|
|
5
|
-
report: import("./types/issues.js").Report;
|
|
6
|
-
issues: import("./types/issues.js").Issues;
|
|
7
|
-
counters: import("./types/issues.js").Counters;
|
|
8
|
-
rules: import("./types/issues.js").Rules;
|
|
9
|
-
tagHints: Set<import("./types/issues.js").TagHint>;
|
|
10
|
-
configurationHints: Set<import("./types/issues.js").ConfigurationHint>;
|
|
11
|
-
}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Scripts } from '../types/package-json.js';
|
|
2
|
-
type LoadPackageManifestOptions = {
|
|
3
|
-
dir: string;
|
|
4
|
-
packageName: string;
|
|
5
|
-
cwd: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const loadPackageManifest: ({ dir, packageName, cwd }: LoadPackageManifestOptions) => any;
|
|
8
|
-
export declare const getFilteredScripts: (scripts: Scripts) => Scripts[];
|
|
9
|
-
export {};
|
package/dist/manifest/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { HostDependencies, InstalledBinaries } from '../types/workspace.js';
|
|
2
|
-
type Options = {
|
|
3
|
-
packageNames: string[];
|
|
4
|
-
dir: string;
|
|
5
|
-
cwd: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const getDependencyMetaData: ({ cwd, dir, packageNames }: Options) => {
|
|
8
|
-
hostDependencies: HostDependencies;
|
|
9
|
-
installedBinaries: InstalledBinaries;
|
|
10
|
-
hasTypesIncluded: Set<string>;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IsPluginEnabled, ResolveConfig } from '../../types/config.js';
|
|
2
|
-
import type { PluginConfig } from './types.js';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
entry: string[];
|
|
9
|
-
production: string[];
|
|
10
|
-
resolveConfig: ResolveConfig<PluginConfig>;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IsPluginEnabled, ResolveConfig } from '../../types/config.js';
|
|
2
|
-
import type { AngularCLIWorkspaceConfiguration } from './types.js';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
resolveConfig: ResolveConfig<AngularCLIWorkspaceConfiguration>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|