knip 5.48.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/graph/build.js +56 -26
- package/dist/plugins/ava/index.js +1 -1
- package/dist/plugins/create-typescript-app/index.js +11 -0
- package/dist/plugins/cucumber/index.js +1 -1
- package/dist/plugins/cypress/index.js +1 -1
- package/dist/plugins/github-actions/index.js +1 -1
- package/dist/plugins/index.js +2 -0
- package/dist/plugins/jest/index.js +1 -1
- package/dist/plugins/ladle/index.js +1 -1
- package/dist/plugins/mocha/index.js +2 -2
- package/dist/plugins/node/index.js +1 -1
- package/dist/plugins/preconstruct/index.js +1 -1
- package/dist/plugins/react-cosmos/index.js +1 -1
- package/dist/plugins/react-router/index.js +1 -1
- package/dist/plugins/storybook/index.js +1 -1
- package/dist/plugins/tanstack-router/index.js +1 -1
- package/dist/plugins/unbuild/index.js +1 -1
- package/dist/plugins/vitest/index.js +1 -1
- package/dist/schema/plugins.js +1 -0
- package/dist/types/PluginNames.js +1 -0
- package/dist/util/glob-core.js +1 -1
- package/dist/util/object.js +0 -16
- package/dist/util/package-json.js +28 -5
- package/dist/util/to-source-path.js +9 -12
- 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 -42
- 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 -5
- package/dist/util/package-json.d.ts +0 -16
- 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
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import type { Configuration, IgnorePatterns, WorkspaceConfiguration } from './types/config.js';
|
|
2
|
-
import type { PackageJson, WorkspacePackage } from './types/package-json.js';
|
|
3
|
-
import { type WorkspaceGraph } from './util/create-workspace-graph.js';
|
|
4
|
-
import { type CLIArguments } from './util/get-included-issue-types.js';
|
|
5
|
-
type ConfigurationManagerOptions = {
|
|
6
|
-
cwd: string;
|
|
7
|
-
isProduction: boolean;
|
|
8
|
-
isStrict: boolean;
|
|
9
|
-
isIncludeEntryExports: boolean;
|
|
10
|
-
workspace: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
export type Workspace = {
|
|
13
|
-
name: string;
|
|
14
|
-
pkgName: string;
|
|
15
|
-
dir: string;
|
|
16
|
-
ancestors: string[];
|
|
17
|
-
config: WorkspaceConfiguration;
|
|
18
|
-
manifestPath: string;
|
|
19
|
-
manifestStr: string;
|
|
20
|
-
ignoreMembers: IgnorePatterns;
|
|
21
|
-
srcDir?: string;
|
|
22
|
-
outDir?: string;
|
|
23
|
-
};
|
|
24
|
-
export declare class ConfigurationChief {
|
|
25
|
-
cwd: string;
|
|
26
|
-
isProduction: boolean;
|
|
27
|
-
isStrict: boolean;
|
|
28
|
-
isIncludeEntryExports: boolean;
|
|
29
|
-
config: Configuration;
|
|
30
|
-
workspace: string | undefined;
|
|
31
|
-
manifestPath?: string;
|
|
32
|
-
manifest?: PackageJson;
|
|
33
|
-
ignoredWorkspacePatterns: string[];
|
|
34
|
-
workspacePackages: Map<string, WorkspacePackage>;
|
|
35
|
-
workspacesByPkgName: Map<string, Workspace>;
|
|
36
|
-
workspacesByName: Map<string, Workspace>;
|
|
37
|
-
additionalWorkspaceNames: Set<string>;
|
|
38
|
-
availableWorkspaceNames: string[];
|
|
39
|
-
availableWorkspacePkgNames: Set<string>;
|
|
40
|
-
availableWorkspaceDirs: string[];
|
|
41
|
-
workspaceGraph: WorkspaceGraph;
|
|
42
|
-
includedWorkspaces: Workspace[];
|
|
43
|
-
resolvedConfigFilePath?: string;
|
|
44
|
-
rawConfig?: any;
|
|
45
|
-
constructor({ cwd, isProduction, isStrict, isIncludeEntryExports, workspace }: ConfigurationManagerOptions);
|
|
46
|
-
init(): Promise<void>;
|
|
47
|
-
private loadResolvedConfigurationFile;
|
|
48
|
-
getRules(): import("./types/issues.js").Rules;
|
|
49
|
-
getFilters(): {
|
|
50
|
-
dir: string;
|
|
51
|
-
} | {
|
|
52
|
-
dir?: undefined;
|
|
53
|
-
};
|
|
54
|
-
private normalize;
|
|
55
|
-
private setWorkspaces;
|
|
56
|
-
private getListedWorkspaces;
|
|
57
|
-
private getIgnoredWorkspacePatterns;
|
|
58
|
-
private getConfiguredWorkspaceKeys;
|
|
59
|
-
private getAdditionalWorkspaceNames;
|
|
60
|
-
private getAvailableWorkspaceNames;
|
|
61
|
-
private getIncludedWorkspaces;
|
|
62
|
-
getManifestForWorkspace(name: string): PackageJson | undefined;
|
|
63
|
-
getWorkspaces(): Workspace[];
|
|
64
|
-
private getDescendentWorkspaces;
|
|
65
|
-
getIgnoredWorkspacesFor(name: string): string[];
|
|
66
|
-
getNegatedWorkspacePatterns(name: string): string[];
|
|
67
|
-
private getConfigKeyForWorkspace;
|
|
68
|
-
getWorkspaceConfig(workspaceName: string): any;
|
|
69
|
-
getIgnores(workspaceName: string): {
|
|
70
|
-
ignoreBinaries: any[];
|
|
71
|
-
ignoreDependencies: any[];
|
|
72
|
-
ignoreUnresolved: any[];
|
|
73
|
-
};
|
|
74
|
-
getConfigForWorkspace(workspaceName: string, extensions?: string[]): {
|
|
75
|
-
node?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
76
|
-
angular?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
77
|
-
astro?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
78
|
-
ava?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
79
|
-
babel?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
80
|
-
c8?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
81
|
-
capacitor?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
82
|
-
changesets?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
83
|
-
commitizen?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
84
|
-
commitlint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
85
|
-
cspell?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
86
|
-
cucumber?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
87
|
-
cypress?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
88
|
-
"dependency-cruiser"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
89
|
-
dotenv?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
90
|
-
drizzle?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
91
|
-
eleventy?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
92
|
-
eslint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
93
|
-
expo?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
94
|
-
gatsby?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
95
|
-
"github-action"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
96
|
-
"github-actions"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
97
|
-
glob?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
98
|
-
"graphql-codegen"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
99
|
-
husky?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
100
|
-
jest?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
101
|
-
karma?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
102
|
-
ladle?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
103
|
-
lefthook?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
104
|
-
"lint-staged"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
105
|
-
linthtml?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
106
|
-
"lockfile-lint"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
107
|
-
"lost-pixel"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
108
|
-
markdownlint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
109
|
-
metro?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
110
|
-
mocha?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
111
|
-
moonrepo?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
112
|
-
msw?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
113
|
-
nest?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
114
|
-
netlify?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
115
|
-
next?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
116
|
-
nodemon?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
117
|
-
"npm-package-json-lint"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
118
|
-
nuxt?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
119
|
-
nx?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
120
|
-
nyc?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
121
|
-
oclif?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
122
|
-
playwright?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
123
|
-
"playwright-ct"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
124
|
-
"playwright-test"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
125
|
-
plop?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
126
|
-
postcss?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
127
|
-
preconstruct?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
128
|
-
prettier?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
129
|
-
"react-cosmos"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
130
|
-
"react-router"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
131
|
-
"release-it"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
132
|
-
remark?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
133
|
-
remix?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
134
|
-
rollup?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
135
|
-
rsbuild?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
136
|
-
rspack?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
137
|
-
"semantic-release"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
138
|
-
sentry?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
139
|
-
"simple-git-hooks"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
140
|
-
"size-limit"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
141
|
-
sst?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
142
|
-
starlight?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
143
|
-
storybook?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
144
|
-
stryker?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
145
|
-
stylelint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
146
|
-
svelte?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
147
|
-
syncpack?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
148
|
-
tailwind?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
149
|
-
"tanstack-router"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
150
|
-
travis?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
151
|
-
"ts-node"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
152
|
-
tsup?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
153
|
-
tsx?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
154
|
-
typedoc?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
155
|
-
typescript?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
156
|
-
unbuild?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
157
|
-
unocss?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
158
|
-
"vercel-og"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
159
|
-
vike?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
160
|
-
vite?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
161
|
-
vitest?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
162
|
-
vue?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
163
|
-
"webdriver-io"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
164
|
-
webpack?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
165
|
-
wireit?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
166
|
-
wrangler?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
167
|
-
xo?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
168
|
-
yarn?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
169
|
-
yorkie?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
170
|
-
entry: string[];
|
|
171
|
-
project: string[];
|
|
172
|
-
paths: any;
|
|
173
|
-
ignore: string[];
|
|
174
|
-
isIncludeEntryExports: any;
|
|
175
|
-
};
|
|
176
|
-
getIncludedIssueTypes(cliArgs: CLIArguments): import("./types/issues.js").Report;
|
|
177
|
-
findWorkspaceByFilePath(filePath: string): Workspace | undefined;
|
|
178
|
-
getUnusedIgnoredWorkspaces(): string[];
|
|
179
|
-
getTags(): import("./types/cli.js").Tags;
|
|
180
|
-
}
|
|
181
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare class ConsoleStreamer {
|
|
2
|
-
isEnabled: boolean;
|
|
3
|
-
private lines;
|
|
4
|
-
constructor({ isEnabled }: {
|
|
5
|
-
isEnabled?: boolean | undefined;
|
|
6
|
-
});
|
|
7
|
-
private clearLines;
|
|
8
|
-
private resetLines;
|
|
9
|
-
private update;
|
|
10
|
-
cast(message: string | string[]): void;
|
|
11
|
-
clear(): void;
|
|
12
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from './ConfigurationChief.js';
|
|
2
|
-
import type { ConfigurationHints, Counters, Issue, Issues, SymbolIssueType } from './types/issues.js';
|
|
3
|
-
import type { PackageJson } from './types/package-json.js';
|
|
4
|
-
import type { DependencyArray, DependencySet, HostDependencies, InstalledBinaries, WorkspaceManifests } from './types/workspace.js';
|
|
5
|
-
type Options = {
|
|
6
|
-
isProduction: boolean;
|
|
7
|
-
isStrict: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare class DependencyDeputy {
|
|
10
|
-
isProduction: boolean;
|
|
11
|
-
isStrict: boolean;
|
|
12
|
-
_manifests: WorkspaceManifests;
|
|
13
|
-
referencedDependencies: Map<string, Set<string>>;
|
|
14
|
-
referencedBinaries: Map<string, Set<string>>;
|
|
15
|
-
hostDependencies: Map<string, HostDependencies>;
|
|
16
|
-
installedBinaries: Map<string, InstalledBinaries>;
|
|
17
|
-
hasTypesIncluded: Map<string, Set<string>>;
|
|
18
|
-
constructor({ isProduction, isStrict }: Options);
|
|
19
|
-
addWorkspace({ name, cwd, dir, manifestPath, manifestStr, manifest, ignoreDependencies, ignoreBinaries, ignoreUnresolved, }: {
|
|
20
|
-
name: string;
|
|
21
|
-
cwd: string;
|
|
22
|
-
dir: string;
|
|
23
|
-
manifestPath: string;
|
|
24
|
-
manifestStr: string;
|
|
25
|
-
manifest: PackageJson;
|
|
26
|
-
ignoreDependencies: (string | RegExp)[];
|
|
27
|
-
ignoreBinaries: (string | RegExp)[];
|
|
28
|
-
ignoreUnresolved: (string | RegExp)[];
|
|
29
|
-
}): void;
|
|
30
|
-
getWorkspaceManifest(workspaceName: string): {
|
|
31
|
-
workspaceDir: string;
|
|
32
|
-
manifestPath: string;
|
|
33
|
-
manifestStr: string;
|
|
34
|
-
dependencies: DependencyArray;
|
|
35
|
-
devDependencies: DependencyArray;
|
|
36
|
-
peerDependencies: DependencySet;
|
|
37
|
-
optionalPeerDependencies: DependencyArray;
|
|
38
|
-
allDependencies: DependencySet;
|
|
39
|
-
ignoreDependencies: (string | RegExp)[];
|
|
40
|
-
ignoreBinaries: (string | RegExp)[];
|
|
41
|
-
ignoreUnresolved: (string | RegExp)[];
|
|
42
|
-
usedIgnoreDependencies: Set<string | RegExp>;
|
|
43
|
-
usedIgnoreBinaries: Set<string | RegExp>;
|
|
44
|
-
usedIgnoreUnresolved: Set<string | RegExp>;
|
|
45
|
-
} | undefined;
|
|
46
|
-
getProductionDependencies(workspaceName: string): DependencyArray;
|
|
47
|
-
getDevDependencies(workspaceName: string): DependencyArray;
|
|
48
|
-
getDependencies(workspaceName: string): DependencySet;
|
|
49
|
-
setInstalledBinaries(workspaceName: string, installedBinaries: Map<string, Set<string>>): void;
|
|
50
|
-
getInstalledBinaries(workspaceName: string): InstalledBinaries | undefined;
|
|
51
|
-
setHasTypesIncluded(workspaceName: string, hasTypesIncluded: Set<string>): void;
|
|
52
|
-
getHasTypesIncluded(workspaceName: string): Set<string> | undefined;
|
|
53
|
-
addReferencedDependency(workspaceName: string, packageName: string): void;
|
|
54
|
-
addReferencedBinary(workspaceName: string, binaryName: string): void;
|
|
55
|
-
setHostDependencies(workspaceName: string, hostDependencies: HostDependencies): void;
|
|
56
|
-
getHostDependenciesFor(workspaceName: string, dependency: string): {
|
|
57
|
-
name: string;
|
|
58
|
-
isPeerOptional: boolean;
|
|
59
|
-
}[];
|
|
60
|
-
getOptionalPeerDependencies(workspaceName: string): DependencyArray;
|
|
61
|
-
maybeAddReferencedExternalDependency(workspace: Workspace, packageName: string): boolean;
|
|
62
|
-
maybeAddReferencedBinary(workspace: Workspace, binaryName: string): boolean;
|
|
63
|
-
private isInDependencies;
|
|
64
|
-
settleDependencyIssues(): {
|
|
65
|
-
dependencyIssues: Issue[];
|
|
66
|
-
devDependencyIssues: Issue[];
|
|
67
|
-
optionalPeerDependencyIssues: Issue[];
|
|
68
|
-
};
|
|
69
|
-
handleIgnoredDependencies(issues: Issues, counters: Counters, type: SymbolIssueType): void;
|
|
70
|
-
handleIgnoredBinaries(issues: Issues, counters: Counters, type: SymbolIssueType): void;
|
|
71
|
-
handleIgnoredUnresolved(issues: Issues, counters: Counters): void;
|
|
72
|
-
removeIgnoredIssues({ issues, counters }: {
|
|
73
|
-
issues: Issues;
|
|
74
|
-
counters: Counters;
|
|
75
|
-
}): void;
|
|
76
|
-
getConfigurationHints(): ConfigurationHints;
|
|
77
|
-
}
|
|
78
|
-
export {};
|
package/dist/IssueCollector.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { ConfigurationHint, Issue, Rules, TagHint } from './types/issues.js';
|
|
2
|
-
type Filters = Partial<{
|
|
3
|
-
dir: string;
|
|
4
|
-
}>;
|
|
5
|
-
type IssueCollectorOptions = {
|
|
6
|
-
cwd: string;
|
|
7
|
-
rules: Rules;
|
|
8
|
-
filters: Filters;
|
|
9
|
-
};
|
|
10
|
-
export declare class IssueCollector {
|
|
11
|
-
private cwd;
|
|
12
|
-
private rules;
|
|
13
|
-
private filters;
|
|
14
|
-
private issues;
|
|
15
|
-
private counters;
|
|
16
|
-
private referencedFiles;
|
|
17
|
-
private configurationHints;
|
|
18
|
-
private tagHints;
|
|
19
|
-
private ignorePatterns;
|
|
20
|
-
private isMatch;
|
|
21
|
-
constructor({ cwd, rules, filters }: IssueCollectorOptions);
|
|
22
|
-
addIgnorePatterns(patterns: string[]): void;
|
|
23
|
-
addFileCounts({ processed, unused }: {
|
|
24
|
-
processed: number;
|
|
25
|
-
unused: number;
|
|
26
|
-
}): void;
|
|
27
|
-
addFilesIssues(filePaths: string[]): void;
|
|
28
|
-
addIssue(issue: Issue): Issue | undefined;
|
|
29
|
-
addConfigurationHint(issue: ConfigurationHint): void;
|
|
30
|
-
addTagHint(issue: TagHint): void;
|
|
31
|
-
purge(): import("./types/issues.js").IssueSet;
|
|
32
|
-
getIssues(): {
|
|
33
|
-
issues: import("./types/issues.js").Issues;
|
|
34
|
-
counters: import("./types/issues.js").Counters;
|
|
35
|
-
tagHints: Set<TagHint>;
|
|
36
|
-
configurationHints: Set<ConfigurationHint>;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export {};
|
package/dist/IssueFixer.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Fix, Fixes } from './types/exports.js';
|
|
2
|
-
import type { Issues } from './types/issues.js';
|
|
3
|
-
interface Fixer {
|
|
4
|
-
isEnabled: boolean;
|
|
5
|
-
cwd: string;
|
|
6
|
-
fixTypes: string[];
|
|
7
|
-
isRemoveFiles: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare class IssueFixer {
|
|
10
|
-
isEnabled: boolean;
|
|
11
|
-
cwd: string;
|
|
12
|
-
isFixFiles: boolean;
|
|
13
|
-
isFixDependencies: boolean;
|
|
14
|
-
isFixUnusedTypes: boolean;
|
|
15
|
-
isFixUnusedExports: boolean;
|
|
16
|
-
unusedTypeNodes: Map<string, Set<Fix>>;
|
|
17
|
-
unusedExportNodes: Map<string, Set<Fix>>;
|
|
18
|
-
constructor({ isEnabled, cwd, fixTypes, isRemoveFiles }: Fixer);
|
|
19
|
-
addUnusedTypeNode(filePath: string, fixes: Fixes | undefined): void;
|
|
20
|
-
addUnusedExportNode(filePath: string, fixes: Fixes | undefined): void;
|
|
21
|
-
fixIssues(issues: Issues): Promise<void>;
|
|
22
|
-
private markExportFixed;
|
|
23
|
-
private removeUnusedFiles;
|
|
24
|
-
private removeUnusedExports;
|
|
25
|
-
private removeUnusedDependencies;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class PackageJsonPeeker {
|
|
2
|
-
private manifestStr;
|
|
3
|
-
private lines;
|
|
4
|
-
private sections;
|
|
5
|
-
private ready;
|
|
6
|
-
constructor(manifestStr: string);
|
|
7
|
-
private init;
|
|
8
|
-
getLocation(type: 'dependencies' | 'devDependencies' | 'optionalPeerDependencies', packageName: string): {
|
|
9
|
-
line: number;
|
|
10
|
-
col: number;
|
|
11
|
-
pos: number;
|
|
12
|
-
} | undefined;
|
|
13
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ProjectPrincipal } from './ProjectPrincipal.js';
|
|
2
|
-
import type { PrincipalOptions } from './types/project.js';
|
|
3
|
-
type Principal = {
|
|
4
|
-
principal: ProjectPrincipal;
|
|
5
|
-
wsDirs: Set<string>;
|
|
6
|
-
pathKeys: Set<string>;
|
|
7
|
-
pkgNames: Set<string>;
|
|
8
|
-
};
|
|
9
|
-
type Principals = Set<Principal>;
|
|
10
|
-
export declare class PrincipalFactory {
|
|
11
|
-
principals: Principals;
|
|
12
|
-
createPrincipal(options: PrincipalOptions): ProjectPrincipal;
|
|
13
|
-
private findReusablePrincipal;
|
|
14
|
-
private linkPrincipal;
|
|
15
|
-
private addNewPrincipal;
|
|
16
|
-
getPrincipals(): ProjectPrincipal[];
|
|
17
|
-
getPrincipalByPackageName(packageName: string): ProjectPrincipal | undefined;
|
|
18
|
-
deletePrincipal(principal: ProjectPrincipal): void;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import ts from 'typescript';
|
|
2
|
-
import { CacheConsultant } from './CacheConsultant.js';
|
|
3
|
-
import type { AsyncCompilers, SyncCompilers } from './compilers/types.js';
|
|
4
|
-
import type { GetImportsAndExportsOptions } from './types/config.js';
|
|
5
|
-
import type { Export, ExportMember, FileNode, ModuleGraph } from './types/module-graph.js';
|
|
6
|
-
import type { PrincipalOptions } from './types/project.js';
|
|
7
|
-
import { SourceFileManager } from './typescript/SourceFileManager.js';
|
|
8
|
-
import type { ResolveModuleNames } from './typescript/resolve-module-names.js';
|
|
9
|
-
import type { ToSourceFilePath } from './util/to-source-path.js';
|
|
10
|
-
export declare class ProjectPrincipal {
|
|
11
|
-
entryPaths: Set<string>;
|
|
12
|
-
projectPaths: Set<string>;
|
|
13
|
-
nonEntryPaths: Set<string>;
|
|
14
|
-
skipExportsAnalysis: Set<string>;
|
|
15
|
-
cwd: string;
|
|
16
|
-
compilerOptions: ts.CompilerOptions;
|
|
17
|
-
extensions: Set<string>;
|
|
18
|
-
syncCompilers: SyncCompilers;
|
|
19
|
-
asyncCompilers: AsyncCompilers;
|
|
20
|
-
isSkipLibs: boolean;
|
|
21
|
-
isWatch: boolean;
|
|
22
|
-
cache: CacheConsultant<FileNode>;
|
|
23
|
-
toSourceFilePath: ToSourceFilePath;
|
|
24
|
-
backend: {
|
|
25
|
-
fileManager: SourceFileManager;
|
|
26
|
-
compilerHost?: ts.CompilerHost;
|
|
27
|
-
resolveModuleNames: ResolveModuleNames;
|
|
28
|
-
program?: ts.Program;
|
|
29
|
-
typeChecker?: ts.TypeChecker;
|
|
30
|
-
languageServiceHost: ts.LanguageServiceHost;
|
|
31
|
-
};
|
|
32
|
-
findReferences?: ts.LanguageService['findReferences'];
|
|
33
|
-
constructor({ compilerOptions, cwd, compilers, isSkipLibs, isWatch, pkgName, toSourceFilePath, isCache, cacheLocation, }: PrincipalOptions);
|
|
34
|
-
init(): void;
|
|
35
|
-
addPaths(paths: ts.CompilerOptions['paths']): void;
|
|
36
|
-
addCompilers(compilers: [SyncCompilers, AsyncCompilers]): void;
|
|
37
|
-
private createProgram;
|
|
38
|
-
private hasAcceptedExtension;
|
|
39
|
-
addEntryPath(filePath: string, options?: {
|
|
40
|
-
skipExportsAnalysis: boolean;
|
|
41
|
-
}): void;
|
|
42
|
-
addEntryPaths(filePaths: Set<string> | string[], options?: {
|
|
43
|
-
skipExportsAnalysis: boolean;
|
|
44
|
-
}): void;
|
|
45
|
-
addNonEntryPath(filePath: string): void;
|
|
46
|
-
addProjectPath(filePath: string): void;
|
|
47
|
-
deletedFiles: Set<unknown>;
|
|
48
|
-
removeProjectPath(filePath: string): void;
|
|
49
|
-
runAsyncCompilers(): Promise<void>;
|
|
50
|
-
getUsedResolvedFiles(): string[];
|
|
51
|
-
private getProgramSourceFiles;
|
|
52
|
-
getUnreferencedFiles(): string[];
|
|
53
|
-
analyzeSourceFile(filePath: string, options: Omit<GetImportsAndExportsOptions, 'skipExports'>, isGitIgnored: (filePath: string) => boolean, isInternalWorkspace: (packageName: string) => boolean, getPrincipalByFilePath: (filePath: string) => undefined | ProjectPrincipal): FileNode;
|
|
54
|
-
invalidateFile(filePath: string): void;
|
|
55
|
-
findUnusedMembers(filePath: string, members: ExportMember[]): ExportMember[];
|
|
56
|
-
hasExternalReferences(filePath: string, exportedItem: Export): boolean;
|
|
57
|
-
reconcileCache(graph: ModuleGraph): void;
|
|
58
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { CacheConsultant } from './CacheConsultant.js';
|
|
2
|
-
import type { Workspace } from './ConfigurationChief.js';
|
|
3
|
-
import type { PluginName } from './types/PluginNames.js';
|
|
4
|
-
import type { Configuration, GetReferencedInternalFilePath, GetSourceFile, WorkspaceConfiguration } from './types/config.js';
|
|
5
|
-
import type { PackageJson } from './types/package-json.js';
|
|
6
|
-
import type { DependencySet } from './types/workspace.js';
|
|
7
|
-
import { type Input } from './util/input.js';
|
|
8
|
-
type WorkspaceManagerOptions = {
|
|
9
|
-
name: string;
|
|
10
|
-
dir: string;
|
|
11
|
-
cwd: string;
|
|
12
|
-
config: WorkspaceConfiguration;
|
|
13
|
-
manifest: PackageJson;
|
|
14
|
-
dependencies: DependencySet;
|
|
15
|
-
getReferencedInternalFilePath: GetReferencedInternalFilePath;
|
|
16
|
-
findWorkspaceByFilePath: (filePath: string) => Workspace | undefined;
|
|
17
|
-
getSourceFile: GetSourceFile;
|
|
18
|
-
rootIgnore: Configuration['ignore'];
|
|
19
|
-
negatedWorkspacePatterns: string[];
|
|
20
|
-
ignoredWorkspacePatterns: string[];
|
|
21
|
-
enabledPluginsInAncestors: string[];
|
|
22
|
-
isProduction: boolean;
|
|
23
|
-
isStrict: boolean;
|
|
24
|
-
isCache: boolean;
|
|
25
|
-
cacheLocation: string;
|
|
26
|
-
configFilesMap: Map<string, Map<PluginName, Set<string>>>;
|
|
27
|
-
};
|
|
28
|
-
type CacheItem = {
|
|
29
|
-
resolveEntryPaths?: Input[];
|
|
30
|
-
resolveConfig?: Input[];
|
|
31
|
-
resolveFromAST?: Input[];
|
|
32
|
-
};
|
|
33
|
-
export declare class WorkspaceWorker {
|
|
34
|
-
name: string;
|
|
35
|
-
dir: string;
|
|
36
|
-
cwd: string;
|
|
37
|
-
config: WorkspaceConfiguration;
|
|
38
|
-
manifest: PackageJson;
|
|
39
|
-
dependencies: DependencySet;
|
|
40
|
-
getReferencedInternalFilePath: GetReferencedInternalFilePath;
|
|
41
|
-
findWorkspaceByFilePath: (filePath: string) => Workspace | undefined;
|
|
42
|
-
getSourceFile: GetSourceFile;
|
|
43
|
-
isProduction: boolean;
|
|
44
|
-
isStrict: boolean;
|
|
45
|
-
rootIgnore: Configuration['ignore'];
|
|
46
|
-
negatedWorkspacePatterns: string[];
|
|
47
|
-
ignoredWorkspacePatterns: string[];
|
|
48
|
-
enabledPluginsMap: Record<PluginName, boolean>;
|
|
49
|
-
enabledPlugins: PluginName[];
|
|
50
|
-
enabledPluginsInAncestors: string[];
|
|
51
|
-
cache: CacheConsultant<CacheItem>;
|
|
52
|
-
configFilesMap: Map<string, Map<PluginName, Set<string>>>;
|
|
53
|
-
constructor({ name, dir, cwd, config, manifest, dependencies, isProduction, isStrict, rootIgnore, negatedWorkspacePatterns, ignoredWorkspacePatterns, enabledPluginsInAncestors, getReferencedInternalFilePath, findWorkspaceByFilePath, getSourceFile, isCache, cacheLocation, configFilesMap, }: WorkspaceManagerOptions);
|
|
54
|
-
init(): Promise<void>;
|
|
55
|
-
private determineEnabledPlugins;
|
|
56
|
-
private getConfigForPlugin;
|
|
57
|
-
getEntryFilePatterns(): string[];
|
|
58
|
-
getProjectFilePatterns(projectFilePatterns: string[]): string[];
|
|
59
|
-
getPluginProjectFilePatterns(patterns?: string[]): string[];
|
|
60
|
-
getPluginConfigPatterns(): string[];
|
|
61
|
-
getPluginEntryFilePatterns(patterns: string[]): string[];
|
|
62
|
-
getProductionEntryFilePatterns(negatedTestFilePatterns: string[]): string[];
|
|
63
|
-
getProductionProjectFilePatterns(negatedTestFilePatterns: string[]): string[];
|
|
64
|
-
private getConfigurationFilePatterns;
|
|
65
|
-
getIgnorePatterns(): string[];
|
|
66
|
-
runPlugins(): Promise<Input[]>;
|
|
67
|
-
onDispose(): void;
|
|
68
|
-
}
|
|
69
|
-
export {};
|
package/dist/binaries/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
bun: import("../../types/config.js").BinaryResolver;
|
|
3
|
-
bunx: import("../../types/config.js").BinaryResolver;
|
|
4
|
-
npm: import("../../types/config.js").BinaryResolver;
|
|
5
|
-
npx: import("../../types/config.js").BinaryResolver;
|
|
6
|
-
pnpm: import("../../types/config.js").BinaryResolver;
|
|
7
|
-
pnpx: import("../../types/config.js").BinaryResolver;
|
|
8
|
-
yarn: import("../../types/config.js").BinaryResolver;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
package/dist/binaries/util.d.ts
DELETED
package/dist/cli.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|