knip 5.33.0 → 5.33.2
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/WorkspaceWorker.d.ts +2 -3
- package/dist/WorkspaceWorker.js +0 -3
- package/dist/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -34,7 +34,7 @@ export declare class WorkspaceWorker {
|
|
|
34
34
|
isStrict: boolean;
|
|
35
35
|
rootIgnore: Configuration['ignore'];
|
|
36
36
|
negatedWorkspacePatterns: string[];
|
|
37
|
-
enabledPluginsMap: Record<"
|
|
37
|
+
enabledPluginsMap: Record<"angular" | "astro" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "drizzle" | "eleventy" | "eslint" | "gatsby" | "githubActions" | "graphqlCodegen" | "husky" | "jest" | "ladle" | "lefthook" | "linthtml" | "lintStaged" | "lockfileLint" | "lostPixel" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "nest" | "netlify" | "next" | "nodeTestRunner" | "npmPackageJsonLint" | "nuxt" | "nx" | "nyc" | "oclif" | "playwright" | "playwrightCt" | "postcss" | "preconstruct" | "prettier" | "reactCosmos" | "releaseIt" | "remark" | "remix" | "rollup" | "rsbuild" | "rspack" | "semanticRelease" | "sentry" | "simpleGitHooks" | "sizeLimit" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "travis" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vercelOg" | "vike" | "vite" | "vitest" | "vue" | "webdriverIo" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie", boolean>;
|
|
38
38
|
enabledPlugins: PluginName[];
|
|
39
39
|
enabledPluginsInAncestors: string[];
|
|
40
40
|
cache: CacheConsultant<CacheItem>;
|
|
@@ -44,7 +44,6 @@ export declare class WorkspaceWorker {
|
|
|
44
44
|
private getConfigForPlugin;
|
|
45
45
|
getEntryFilePatterns(): string[];
|
|
46
46
|
getProjectFilePatterns(projectFilePatterns: string[]): string[];
|
|
47
|
-
getPluginEntryFilePatterns(patterns: string[]): string[];
|
|
48
47
|
getPluginProjectFilePatterns(): string[];
|
|
49
48
|
getPluginConfigPatterns(): string[];
|
|
50
49
|
getProductionEntryFilePatterns(negatedTestFilePatterns: string[]): string[];
|
|
@@ -55,7 +54,7 @@ export declare class WorkspaceWorker {
|
|
|
55
54
|
entryFilePatterns: Set<string>;
|
|
56
55
|
productionEntryFilePatterns: Set<string>;
|
|
57
56
|
referencedDependencies: ReferencedDependencies;
|
|
58
|
-
enabledPlugins: ("
|
|
57
|
+
enabledPlugins: ("angular" | "astro" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "drizzle" | "eleventy" | "eslint" | "gatsby" | "githubActions" | "graphqlCodegen" | "husky" | "jest" | "ladle" | "lefthook" | "linthtml" | "lintStaged" | "lockfileLint" | "lostPixel" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "nest" | "netlify" | "next" | "nodeTestRunner" | "npmPackageJsonLint" | "nuxt" | "nx" | "nyc" | "oclif" | "playwright" | "playwrightCt" | "postcss" | "preconstruct" | "prettier" | "reactCosmos" | "releaseIt" | "remark" | "remix" | "rollup" | "rsbuild" | "rspack" | "semanticRelease" | "sentry" | "simpleGitHooks" | "sizeLimit" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "travis" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vercelOg" | "vike" | "vite" | "vitest" | "vue" | "webdriverIo" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie")[];
|
|
59
58
|
}>;
|
|
60
59
|
onDispose(): void;
|
|
61
60
|
}
|
package/dist/WorkspaceWorker.js
CHANGED
|
@@ -89,9 +89,6 @@ export class WorkspaceWorker {
|
|
|
89
89
|
this.negatedWorkspacePatterns,
|
|
90
90
|
].flat();
|
|
91
91
|
}
|
|
92
|
-
getPluginEntryFilePatterns(patterns) {
|
|
93
|
-
return [patterns, this.negatedWorkspacePatterns].flat();
|
|
94
|
-
}
|
|
95
92
|
getPluginProjectFilePatterns() {
|
|
96
93
|
const patterns = [];
|
|
97
94
|
for (const [pluginName, plugin] of Object.entries(plugins)) {
|
package/dist/index.js
CHANGED
|
@@ -160,7 +160,7 @@ export const main = async (unresolvedConfiguration) => {
|
|
|
160
160
|
principal.addProjectPath(projectPath);
|
|
161
161
|
}
|
|
162
162
|
{
|
|
163
|
-
const patterns =
|
|
163
|
+
const patterns = [...entryFilePatterns, ...productionEntryFilePatterns];
|
|
164
164
|
const pluginWorkspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns });
|
|
165
165
|
debugLogArray(name, 'Plugin entry paths', pluginWorkspaceEntryPaths);
|
|
166
166
|
principal.addEntryPaths(pluginWorkspaceEntryPaths, { skipExportsAnalysis: true });
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.33.
|
|
1
|
+
export declare const version = "5.33.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.33.
|
|
1
|
+
export const version = '5.33.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "5.33.
|
|
3
|
+
"version": "5.33.2",
|
|
4
4
|
"description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
|
|
5
5
|
"homepage": "https://knip.dev",
|
|
6
6
|
"repository": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"easy-table": "1.2.0",
|
|
67
67
|
"enhanced-resolve": "^5.17.1",
|
|
68
68
|
"fast-glob": "^3.3.2",
|
|
69
|
-
"jiti": "^2.3.
|
|
69
|
+
"jiti": "^2.3.3",
|
|
70
70
|
"js-yaml": "^4.1.0",
|
|
71
71
|
"minimist": "^1.2.8",
|
|
72
72
|
"picocolors": "^1.0.0",
|