knip 5.30.3 → 5.30.4
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/DependencyDeputy.js +3 -3
- package/dist/WorkspaceWorker.d.ts +2 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +5 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/DependencyDeputy.js
CHANGED
|
@@ -175,11 +175,11 @@ export class DependencyDeputy {
|
|
|
175
175
|
return false;
|
|
176
176
|
const [scope, typedDependency] = dependency.split('/');
|
|
177
177
|
if (scope === DT_SCOPE) {
|
|
178
|
-
if (hasTypesIncluded?.has(typedDependency))
|
|
179
|
-
return false;
|
|
180
178
|
const typedPackageName = getPackageFromDefinitelyTyped(typedDependency);
|
|
181
|
-
if (IGNORE_DEFINITELY_TYPED.
|
|
179
|
+
if (IGNORE_DEFINITELY_TYPED.has(typedPackageName))
|
|
182
180
|
return true;
|
|
181
|
+
if (hasTypesIncluded?.has(typedDependency))
|
|
182
|
+
return false;
|
|
183
183
|
const hostDependencies = [
|
|
184
184
|
...this.getHostDependenciesFor(workspace, dependency),
|
|
185
185
|
...this.getHostDependenciesFor(workspace, typedPackageName),
|
|
@@ -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" | "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>;
|
|
@@ -55,7 +55,7 @@ export declare class WorkspaceWorker {
|
|
|
55
55
|
entryFilePatterns: Set<string>;
|
|
56
56
|
productionEntryFilePatterns: Set<string>;
|
|
57
57
|
referencedDependencies: ReferencedDependencies;
|
|
58
|
-
enabledPlugins: ("
|
|
58
|
+
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" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vercelOg" | "vike" | "vite" | "vitest" | "vue" | "webdriverIo" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie")[];
|
|
59
59
|
}>;
|
|
60
60
|
onDispose(): void;
|
|
61
61
|
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export declare const IGNORED_GLOBAL_BINARIES: Set<string>;
|
|
|
14
14
|
export declare const IGNORED_DEPENDENCIES: Set<string>;
|
|
15
15
|
export declare const IGNORED_RUNTIME_DEPENDENCIES: Set<string>;
|
|
16
16
|
export declare const FOREIGN_FILE_EXTENSIONS: Set<string>;
|
|
17
|
-
export declare const IGNORE_DEFINITELY_TYPED: string
|
|
17
|
+
export declare const IGNORE_DEFINITELY_TYPED: Set<string>;
|
|
18
18
|
export declare const ISSUE_TYPES: IssueType[];
|
|
19
19
|
export declare const ISSUE_TYPE_TITLE: Record<IssueType, string>;
|
package/dist/constants.js
CHANGED
|
@@ -142,7 +142,11 @@ export const FOREIGN_FILE_EXTENSIONS = new Set([
|
|
|
142
142
|
'.yaml',
|
|
143
143
|
'.yml',
|
|
144
144
|
]);
|
|
145
|
-
export const IGNORE_DEFINITELY_TYPED = [
|
|
145
|
+
export const IGNORE_DEFINITELY_TYPED = new Set([
|
|
146
|
+
'node',
|
|
147
|
+
'bun',
|
|
148
|
+
'jest',
|
|
149
|
+
]);
|
|
146
150
|
export const ISSUE_TYPES = [
|
|
147
151
|
'files',
|
|
148
152
|
'dependencies',
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.30.
|
|
1
|
+
export declare const version = "5.30.4";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.30.
|
|
1
|
+
export const version = '5.30.4';
|