knip 5.24.1 → 5.24.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 -2
- package/dist/binaries/bash-parser.js +1 -1
- package/dist/plugins/jest/index.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schema.json +9 -0
|
@@ -32,7 +32,7 @@ export declare class WorkspaceWorker {
|
|
|
32
32
|
isStrict: boolean;
|
|
33
33
|
rootIgnore: Configuration['ignore'];
|
|
34
34
|
negatedWorkspacePatterns: string[];
|
|
35
|
-
enabledPluginsMap: Record<"
|
|
35
|
+
enabledPluginsMap: Record<"angular" | "astro" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "drizzle" | "eleventy" | "eslint" | "gatsby" | "githubActions" | "graphqlCodegen" | "husky" | "jest" | "lefthook" | "linthtml" | "lintStaged" | "lockfileLint" | "lostPixel" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nodeTestRunner" | "npmPackageJsonLint" | "nx" | "nyc" | "oclif" | "playwright" | "playwrightCt" | "postcss" | "prettier" | "releaseIt" | "remark" | "remix" | "rollup" | "semanticRelease" | "sentry" | "simpleGitHooks" | "sizeLimit" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vercelOg" | "vite" | "vitest" | "vue" | "webdriverIo" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie", boolean>;
|
|
36
36
|
enabledPlugins: PluginName[];
|
|
37
37
|
enabledPluginsInAncestors: string[];
|
|
38
38
|
cache: CacheConsultant<CacheItem>;
|
|
@@ -52,7 +52,7 @@ export declare class WorkspaceWorker {
|
|
|
52
52
|
entryFilePatterns: Set<string>;
|
|
53
53
|
productionEntryFilePatterns: Set<string>;
|
|
54
54
|
referencedDependencies: ReferencedDependencies;
|
|
55
|
-
enabledPlugins: ("
|
|
55
|
+
enabledPlugins: ("angular" | "astro" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "drizzle" | "eleventy" | "eslint" | "gatsby" | "githubActions" | "graphqlCodegen" | "husky" | "jest" | "lefthook" | "linthtml" | "lintStaged" | "lockfileLint" | "lostPixel" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nodeTestRunner" | "npmPackageJsonLint" | "nx" | "nyc" | "oclif" | "playwright" | "playwrightCt" | "postcss" | "prettier" | "releaseIt" | "remark" | "remix" | "rollup" | "semanticRelease" | "sentry" | "simpleGitHooks" | "sizeLimit" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vercelOg" | "vite" | "vitest" | "vue" | "webdriverIo" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie")[];
|
|
56
56
|
}>;
|
|
57
57
|
onDispose(): void;
|
|
58
58
|
}
|
|
@@ -38,7 +38,7 @@ export const getBinariesFromScript = (script, options) => {
|
|
|
38
38
|
.flatMap(node => node.text.split('=')[1])
|
|
39
39
|
.map(arg => parseNodeArgs(arg.split(' ')))
|
|
40
40
|
.filter(args => args.require)
|
|
41
|
-
.
|
|
41
|
+
.flatMap(arg => arg.require) ?? [];
|
|
42
42
|
if (binary in KnownResolvers) {
|
|
43
43
|
const resolver = KnownResolvers[binary];
|
|
44
44
|
return resolver(binary, args, { ...options, fromArgs });
|
|
@@ -49,8 +49,8 @@ const resolveDependencies = async (config, options) => {
|
|
|
49
49
|
.filter(reporter => !['default', 'github-actions', 'summary'].includes(reporter))
|
|
50
50
|
: [];
|
|
51
51
|
const watchPlugins = config.watchPlugins?.map(watchPlugin => (typeof watchPlugin === 'string' ? watchPlugin : watchPlugin[0])) ?? [];
|
|
52
|
-
const setupFiles = config.setupFiles ?? [];
|
|
53
|
-
const setupFilesAfterEnv = config.setupFilesAfterEnv ?? [];
|
|
52
|
+
const setupFiles = (config.setupFiles ?? []).map(toEntryPattern);
|
|
53
|
+
const setupFilesAfterEnv = (config.setupFilesAfterEnv ?? []).map(toEntryPattern);
|
|
54
54
|
const transform = config.transform
|
|
55
55
|
? Object.values(config.transform).map(transform => (typeof transform === 'string' ? transform : transform[0]))
|
|
56
56
|
: [];
|
|
@@ -60,8 +60,8 @@ const resolveDependencies = async (config, options) => {
|
|
|
60
60
|
const testResultsProcessor = config.testResultsProcessor ? [config.testResultsProcessor] : [];
|
|
61
61
|
const snapshotResolver = config.snapshotResolver ? [config.snapshotResolver] : [];
|
|
62
62
|
const testSequencer = config.testSequencer ? [config.testSequencer] : [];
|
|
63
|
-
const globalSetup = config.globalSetup ? [config.globalSetup] : [];
|
|
64
|
-
const globalTeardown = config.globalTeardown ? [config.globalTeardown] : [];
|
|
63
|
+
const globalSetup = (config.globalSetup ? [config.globalSetup] : []).map(toEntryPattern);
|
|
64
|
+
const globalTeardown = (config.globalTeardown ? [config.globalTeardown] : []).map(toEntryPattern);
|
|
65
65
|
return [
|
|
66
66
|
...presets,
|
|
67
67
|
...projects,
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.24.
|
|
1
|
+
export declare const version = "5.24.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.24.
|
|
1
|
+
export const version = '5.24.2';
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -115,12 +115,21 @@
|
|
|
115
115
|
"rules": {
|
|
116
116
|
"type": "object",
|
|
117
117
|
"properties": {
|
|
118
|
+
"binaries": {
|
|
119
|
+
"$ref": "#/definitions/ruleValue"
|
|
120
|
+
},
|
|
118
121
|
"classMembers": {
|
|
119
122
|
"$ref": "#/definitions/ruleValue"
|
|
120
123
|
},
|
|
121
124
|
"dependencies": {
|
|
122
125
|
"$ref": "#/definitions/ruleValue"
|
|
123
126
|
},
|
|
127
|
+
"devDependencies": {
|
|
128
|
+
"$ref": "#/definitions/ruleValue"
|
|
129
|
+
},
|
|
130
|
+
"optionalPeerDependencies": {
|
|
131
|
+
"$ref": "#/definitions/ruleValue"
|
|
132
|
+
},
|
|
124
133
|
"duplicates": {
|
|
125
134
|
"$ref": "#/definitions/ruleValue"
|
|
126
135
|
},
|