knip 5.14.0 → 5.15.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/ConfigurationChief.d.ts +1 -0
- package/dist/ConfigurationValidator.d.ts +56 -0
- package/dist/ConfigurationValidator.js +1 -0
- package/dist/WorkspaceWorker.d.ts +2 -2
- package/dist/compilers/index.d.ts +10 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +1 -0
- package/dist/plugins/syncpack/index.d.ts +8 -0
- package/dist/plugins/syncpack/index.js +11 -0
- package/dist/plugins.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schema.json +4 -0
|
@@ -110,6 +110,7 @@ export declare class ConfigurationChief {
|
|
|
110
110
|
stryker?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
111
111
|
stylelint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
112
112
|
svelte?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
113
|
+
syncpack?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
113
114
|
tailwind?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
114
115
|
tsup?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
115
116
|
typedoc?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
@@ -639,6 +639,19 @@ export declare const ConfigurationValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
639
639
|
entry?: string | string[] | undefined;
|
|
640
640
|
project?: string | string[] | undefined;
|
|
641
641
|
}>]>>;
|
|
642
|
+
syncpack: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
643
|
+
config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
644
|
+
entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
645
|
+
project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
646
|
+
}, "strip", z.ZodTypeAny, {
|
|
647
|
+
config?: string | string[] | undefined;
|
|
648
|
+
entry?: string | string[] | undefined;
|
|
649
|
+
project?: string | string[] | undefined;
|
|
650
|
+
}, {
|
|
651
|
+
config?: string | string[] | undefined;
|
|
652
|
+
entry?: string | string[] | undefined;
|
|
653
|
+
project?: string | string[] | undefined;
|
|
654
|
+
}>]>>;
|
|
642
655
|
tailwind: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
643
656
|
config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
644
657
|
entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -1060,6 +1073,11 @@ export declare const ConfigurationValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
1060
1073
|
entry?: string | string[] | undefined;
|
|
1061
1074
|
project?: string | string[] | undefined;
|
|
1062
1075
|
} | undefined;
|
|
1076
|
+
syncpack?: string | boolean | string[] | {
|
|
1077
|
+
config?: string | string[] | undefined;
|
|
1078
|
+
entry?: string | string[] | undefined;
|
|
1079
|
+
project?: string | string[] | undefined;
|
|
1080
|
+
} | undefined;
|
|
1063
1081
|
tailwind?: string | boolean | string[] | {
|
|
1064
1082
|
config?: string | string[] | undefined;
|
|
1065
1083
|
entry?: string | string[] | undefined;
|
|
@@ -1369,6 +1387,11 @@ export declare const ConfigurationValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
1369
1387
|
entry?: string | string[] | undefined;
|
|
1370
1388
|
project?: string | string[] | undefined;
|
|
1371
1389
|
} | undefined;
|
|
1390
|
+
syncpack?: string | boolean | string[] | {
|
|
1391
|
+
config?: string | string[] | undefined;
|
|
1392
|
+
entry?: string | string[] | undefined;
|
|
1393
|
+
project?: string | string[] | undefined;
|
|
1394
|
+
} | undefined;
|
|
1372
1395
|
tailwind?: string | boolean | string[] | {
|
|
1373
1396
|
config?: string | string[] | undefined;
|
|
1374
1397
|
entry?: string | string[] | undefined;
|
|
@@ -2039,6 +2062,19 @@ export declare const ConfigurationValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
2039
2062
|
entry?: string | string[] | undefined;
|
|
2040
2063
|
project?: string | string[] | undefined;
|
|
2041
2064
|
}>]>>;
|
|
2065
|
+
syncpack: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
2066
|
+
config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2067
|
+
entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2068
|
+
project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2069
|
+
}, "strip", z.ZodTypeAny, {
|
|
2070
|
+
config?: string | string[] | undefined;
|
|
2071
|
+
entry?: string | string[] | undefined;
|
|
2072
|
+
project?: string | string[] | undefined;
|
|
2073
|
+
}, {
|
|
2074
|
+
config?: string | string[] | undefined;
|
|
2075
|
+
entry?: string | string[] | undefined;
|
|
2076
|
+
project?: string | string[] | undefined;
|
|
2077
|
+
}>]>>;
|
|
2042
2078
|
tailwind: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
2043
2079
|
config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2044
2080
|
entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -2468,6 +2504,11 @@ export declare const ConfigurationValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
2468
2504
|
entry?: string | string[] | undefined;
|
|
2469
2505
|
project?: string | string[] | undefined;
|
|
2470
2506
|
} | undefined;
|
|
2507
|
+
syncpack?: string | boolean | string[] | {
|
|
2508
|
+
config?: string | string[] | undefined;
|
|
2509
|
+
entry?: string | string[] | undefined;
|
|
2510
|
+
project?: string | string[] | undefined;
|
|
2511
|
+
} | undefined;
|
|
2471
2512
|
tailwind?: string | boolean | string[] | {
|
|
2472
2513
|
config?: string | string[] | undefined;
|
|
2473
2514
|
entry?: string | string[] | undefined;
|
|
@@ -2777,6 +2818,11 @@ export declare const ConfigurationValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
2777
2818
|
entry?: string | string[] | undefined;
|
|
2778
2819
|
project?: string | string[] | undefined;
|
|
2779
2820
|
} | undefined;
|
|
2821
|
+
syncpack?: string | boolean | string[] | {
|
|
2822
|
+
config?: string | string[] | undefined;
|
|
2823
|
+
entry?: string | string[] | undefined;
|
|
2824
|
+
project?: string | string[] | undefined;
|
|
2825
|
+
} | undefined;
|
|
2780
2826
|
tailwind?: string | boolean | string[] | {
|
|
2781
2827
|
config?: string | string[] | undefined;
|
|
2782
2828
|
entry?: string | string[] | undefined;
|
|
@@ -3095,6 +3141,11 @@ export declare const ConfigurationValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
3095
3141
|
entry?: string | string[] | undefined;
|
|
3096
3142
|
project?: string | string[] | undefined;
|
|
3097
3143
|
} | undefined;
|
|
3144
|
+
syncpack?: string | boolean | string[] | {
|
|
3145
|
+
config?: string | string[] | undefined;
|
|
3146
|
+
entry?: string | string[] | undefined;
|
|
3147
|
+
project?: string | string[] | undefined;
|
|
3148
|
+
} | undefined;
|
|
3098
3149
|
tailwind?: string | boolean | string[] | {
|
|
3099
3150
|
config?: string | string[] | undefined;
|
|
3100
3151
|
entry?: string | string[] | undefined;
|
|
@@ -3404,6 +3455,11 @@ export declare const ConfigurationValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
3404
3455
|
entry?: string | string[] | undefined;
|
|
3405
3456
|
project?: string | string[] | undefined;
|
|
3406
3457
|
} | undefined;
|
|
3458
|
+
syncpack?: string | boolean | string[] | {
|
|
3459
|
+
config?: string | string[] | undefined;
|
|
3460
|
+
entry?: string | string[] | undefined;
|
|
3461
|
+
project?: string | string[] | undefined;
|
|
3462
|
+
} | undefined;
|
|
3407
3463
|
tailwind?: string | boolean | string[] | {
|
|
3408
3464
|
config?: string | string[] | undefined;
|
|
3409
3465
|
entry?: string | string[] | undefined;
|
|
@@ -28,7 +28,7 @@ export declare class WorkspaceWorker {
|
|
|
28
28
|
isStrict: boolean;
|
|
29
29
|
rootIgnore: Configuration['ignore'];
|
|
30
30
|
negatedWorkspacePatterns: string[];
|
|
31
|
-
enabledPluginsMap: Record<"astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease" | "vercelOg", boolean>;
|
|
31
|
+
enabledPluginsMap: Record<"astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease" | "vercelOg", boolean>;
|
|
32
32
|
enabledPlugins: PluginName[];
|
|
33
33
|
enabledPluginsInAncestors: string[];
|
|
34
34
|
cache: CacheConsultant<unknown>;
|
|
@@ -48,7 +48,7 @@ export declare class WorkspaceWorker {
|
|
|
48
48
|
entryFilePatterns: Set<string>;
|
|
49
49
|
productionEntryFilePatterns: Set<string>;
|
|
50
50
|
referencedDependencies: ReferencedDependencies;
|
|
51
|
-
enabledPlugins: ("astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease" | "vercelOg")[];
|
|
51
|
+
enabledPlugins: ("astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease" | "vercelOg")[];
|
|
52
52
|
}>;
|
|
53
53
|
onDispose(): void;
|
|
54
54
|
}
|
|
@@ -248,6 +248,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
248
248
|
entry?: string | string[] | undefined;
|
|
249
249
|
project?: string | string[] | undefined;
|
|
250
250
|
} | undefined;
|
|
251
|
+
syncpack?: string | boolean | string[] | {
|
|
252
|
+
config?: string | string[] | undefined;
|
|
253
|
+
entry?: string | string[] | undefined;
|
|
254
|
+
project?: string | string[] | undefined;
|
|
255
|
+
} | undefined;
|
|
251
256
|
tailwind?: string | boolean | string[] | {
|
|
252
257
|
config?: string | string[] | undefined;
|
|
253
258
|
entry?: string | string[] | undefined;
|
|
@@ -557,6 +562,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
557
562
|
entry?: string | string[] | undefined;
|
|
558
563
|
project?: string | string[] | undefined;
|
|
559
564
|
} | undefined;
|
|
565
|
+
syncpack?: string | boolean | string[] | {
|
|
566
|
+
config?: string | string[] | undefined;
|
|
567
|
+
entry?: string | string[] | undefined;
|
|
568
|
+
project?: string | string[] | undefined;
|
|
569
|
+
} | undefined;
|
|
560
570
|
tailwind?: string | boolean | string[] | {
|
|
561
571
|
config?: string | string[] | undefined;
|
|
562
572
|
entry?: string | string[] | undefined;
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { default as storybook } from './storybook/index.js';
|
|
|
45
45
|
export { default as stryker } from './stryker/index.js';
|
|
46
46
|
export { default as stylelint } from './stylelint/index.js';
|
|
47
47
|
export { default as svelte } from './svelte/index.js';
|
|
48
|
+
export { default as syncpack } from './syncpack/index.js';
|
|
48
49
|
export { default as tailwind } from './tailwind/index.js';
|
|
49
50
|
export { default as tsup } from './tsup/index.js';
|
|
50
51
|
export { default as typedoc } from './typedoc/index.js';
|
package/dist/plugins/index.js
CHANGED
|
@@ -45,6 +45,7 @@ export { default as storybook } from './storybook/index.js';
|
|
|
45
45
|
export { default as stryker } from './stryker/index.js';
|
|
46
46
|
export { default as stylelint } from './stylelint/index.js';
|
|
47
47
|
export { default as svelte } from './svelte/index.js';
|
|
48
|
+
export { default as syncpack } from './syncpack/index.js';
|
|
48
49
|
export { default as tailwind } from './tailwind/index.js';
|
|
49
50
|
export { default as tsup } from './tsup/index.js';
|
|
50
51
|
export { default as typedoc } from './typedoc/index.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { hasDependency } from '#p/util/plugin.js';
|
|
2
|
+
const title = 'Syncpack';
|
|
3
|
+
const enablers = ['syncpack'];
|
|
4
|
+
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
5
|
+
const config = ['.syncpackrc', '.syncpackrc.{json,yaml,yml,js,cjs}', '.syncpack.config.{js,cjs}'];
|
|
6
|
+
export default {
|
|
7
|
+
title,
|
|
8
|
+
enablers,
|
|
9
|
+
isEnabled,
|
|
10
|
+
config,
|
|
11
|
+
};
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Plugin } from './types/plugins.js';
|
|
2
|
-
declare const plugins: Record<"astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease" | "vercelOg", Plugin>;
|
|
2
|
+
declare const plugins: Record<"astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease" | "vercelOg", Plugin>;
|
|
3
3
|
export { plugins };
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.
|
|
1
|
+
export declare const version = "5.15.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.
|
|
1
|
+
export const version = '5.15.0';
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -459,6 +459,10 @@
|
|
|
459
459
|
"title": "svelte plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/svelte/README.md)",
|
|
460
460
|
"$ref": "#/definitions/plugin"
|
|
461
461
|
},
|
|
462
|
+
"syncpack": {
|
|
463
|
+
"title": "syncpack plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/syncpack/README.md)",
|
|
464
|
+
"$ref": "#/definitions/plugin"
|
|
465
|
+
},
|
|
462
466
|
"tailwind": {
|
|
463
467
|
"title": "tailwind plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/tailwind/README.md)",
|
|
464
468
|
"$ref": "#/definitions/plugin"
|