knip 4.2.3 → 4.3.1

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.
@@ -112,6 +112,7 @@ export declare class ConfigurationChief {
112
112
  vitest?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
113
113
  webpack?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
114
114
  wireit?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
115
+ yorkie?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
115
116
  drizzle?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
116
117
  githubActions?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
117
118
  graphqlCodegen?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
@@ -36,19 +36,6 @@ export declare const ConfigurationValidator: z.ZodObject<{
36
36
  paths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
37
37
  ignore: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
38
38
  includeEntryExports: z.ZodOptional<z.ZodBoolean>;
39
- vue: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
40
- config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
41
- entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
42
- project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
43
- }, "strip", z.ZodTypeAny, {
44
- config?: string | string[] | undefined;
45
- entry?: string | string[] | undefined;
46
- project?: string | string[] | undefined;
47
- }, {
48
- config?: string | string[] | undefined;
49
- entry?: string | string[] | undefined;
50
- project?: string | string[] | undefined;
51
- }>]>>;
52
39
  astro: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
53
40
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
54
41
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -426,6 +413,19 @@ export declare const ConfigurationValidator: z.ZodObject<{
426
413
  entry?: string | string[] | undefined;
427
414
  project?: string | string[] | undefined;
428
415
  }>]>>;
416
+ 'playwright-ct': z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
417
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
418
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
419
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ config?: string | string[] | undefined;
422
+ entry?: string | string[] | undefined;
423
+ project?: string | string[] | undefined;
424
+ }, {
425
+ config?: string | string[] | undefined;
426
+ entry?: string | string[] | undefined;
427
+ project?: string | string[] | undefined;
428
+ }>]>>;
429
429
  postcss: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
430
430
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
431
431
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -647,6 +647,19 @@ export declare const ConfigurationValidator: z.ZodObject<{
647
647
  entry?: string | string[] | undefined;
648
648
  project?: string | string[] | undefined;
649
649
  }>]>>;
650
+ vue: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
651
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
652
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
653
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ config?: string | string[] | undefined;
656
+ entry?: string | string[] | undefined;
657
+ project?: string | string[] | undefined;
658
+ }, {
659
+ config?: string | string[] | undefined;
660
+ entry?: string | string[] | undefined;
661
+ project?: string | string[] | undefined;
662
+ }>]>>;
650
663
  vite: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
651
664
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
652
665
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -699,6 +712,19 @@ export declare const ConfigurationValidator: z.ZodObject<{
699
712
  entry?: string | string[] | undefined;
700
713
  project?: string | string[] | undefined;
701
714
  }>]>>;
715
+ yorkie: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
716
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
717
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
718
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ config?: string | string[] | undefined;
721
+ entry?: string | string[] | undefined;
722
+ project?: string | string[] | undefined;
723
+ }, {
724
+ config?: string | string[] | undefined;
725
+ entry?: string | string[] | undefined;
726
+ project?: string | string[] | undefined;
727
+ }>]>>;
702
728
  }, "strip", z.ZodTypeAny, {
703
729
  ignoreBinaries?: (string | RegExp)[] | undefined;
704
730
  ignoreDependencies?: (string | RegExp)[] | undefined;
@@ -707,11 +733,6 @@ export declare const ConfigurationValidator: z.ZodObject<{
707
733
  paths?: Record<string, string[]> | undefined;
708
734
  ignore?: string | string[] | undefined;
709
735
  includeEntryExports?: boolean | undefined;
710
- vue?: string | boolean | string[] | {
711
- config?: string | string[] | undefined;
712
- entry?: string | string[] | undefined;
713
- project?: string | string[] | undefined;
714
- } | undefined;
715
736
  astro?: string | boolean | string[] | {
716
737
  config?: string | string[] | undefined;
717
738
  entry?: string | string[] | undefined;
@@ -857,6 +878,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
857
878
  entry?: string | string[] | undefined;
858
879
  project?: string | string[] | undefined;
859
880
  } | undefined;
881
+ 'playwright-ct'?: string | boolean | string[] | {
882
+ config?: string | string[] | undefined;
883
+ entry?: string | string[] | undefined;
884
+ project?: string | string[] | undefined;
885
+ } | undefined;
860
886
  postcss?: string | boolean | string[] | {
861
887
  config?: string | string[] | undefined;
862
888
  entry?: string | string[] | undefined;
@@ -942,6 +968,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
942
968
  entry?: string | string[] | undefined;
943
969
  project?: string | string[] | undefined;
944
970
  } | undefined;
971
+ vue?: string | boolean | string[] | {
972
+ config?: string | string[] | undefined;
973
+ entry?: string | string[] | undefined;
974
+ project?: string | string[] | undefined;
975
+ } | undefined;
945
976
  vite?: string | boolean | string[] | {
946
977
  config?: string | string[] | undefined;
947
978
  entry?: string | string[] | undefined;
@@ -962,6 +993,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
962
993
  entry?: string | string[] | undefined;
963
994
  project?: string | string[] | undefined;
964
995
  } | undefined;
996
+ yorkie?: string | boolean | string[] | {
997
+ config?: string | string[] | undefined;
998
+ entry?: string | string[] | undefined;
999
+ project?: string | string[] | undefined;
1000
+ } | undefined;
965
1001
  }, {
966
1002
  ignoreBinaries?: (string | RegExp)[] | undefined;
967
1003
  ignoreDependencies?: (string | RegExp)[] | undefined;
@@ -970,11 +1006,6 @@ export declare const ConfigurationValidator: z.ZodObject<{
970
1006
  paths?: Record<string, string[]> | undefined;
971
1007
  ignore?: string | string[] | undefined;
972
1008
  includeEntryExports?: boolean | undefined;
973
- vue?: string | boolean | string[] | {
974
- config?: string | string[] | undefined;
975
- entry?: string | string[] | undefined;
976
- project?: string | string[] | undefined;
977
- } | undefined;
978
1009
  astro?: string | boolean | string[] | {
979
1010
  config?: string | string[] | undefined;
980
1011
  entry?: string | string[] | undefined;
@@ -1120,6 +1151,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
1120
1151
  entry?: string | string[] | undefined;
1121
1152
  project?: string | string[] | undefined;
1122
1153
  } | undefined;
1154
+ 'playwright-ct'?: string | boolean | string[] | {
1155
+ config?: string | string[] | undefined;
1156
+ entry?: string | string[] | undefined;
1157
+ project?: string | string[] | undefined;
1158
+ } | undefined;
1123
1159
  postcss?: string | boolean | string[] | {
1124
1160
  config?: string | string[] | undefined;
1125
1161
  entry?: string | string[] | undefined;
@@ -1205,6 +1241,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
1205
1241
  entry?: string | string[] | undefined;
1206
1242
  project?: string | string[] | undefined;
1207
1243
  } | undefined;
1244
+ vue?: string | boolean | string[] | {
1245
+ config?: string | string[] | undefined;
1246
+ entry?: string | string[] | undefined;
1247
+ project?: string | string[] | undefined;
1248
+ } | undefined;
1208
1249
  vite?: string | boolean | string[] | {
1209
1250
  config?: string | string[] | undefined;
1210
1251
  entry?: string | string[] | undefined;
@@ -1225,20 +1266,12 @@ export declare const ConfigurationValidator: z.ZodObject<{
1225
1266
  entry?: string | string[] | undefined;
1226
1267
  project?: string | string[] | undefined;
1227
1268
  } | undefined;
1269
+ yorkie?: string | boolean | string[] | {
1270
+ config?: string | string[] | undefined;
1271
+ entry?: string | string[] | undefined;
1272
+ project?: string | string[] | undefined;
1273
+ } | undefined;
1228
1274
  }>>>;
1229
- vue: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
1230
- config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1231
- entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1232
- project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1233
- }, "strip", z.ZodTypeAny, {
1234
- config?: string | string[] | undefined;
1235
- entry?: string | string[] | undefined;
1236
- project?: string | string[] | undefined;
1237
- }, {
1238
- config?: string | string[] | undefined;
1239
- entry?: string | string[] | undefined;
1240
- project?: string | string[] | undefined;
1241
- }>]>>;
1242
1275
  astro: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
1243
1276
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1244
1277
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -1616,6 +1649,19 @@ export declare const ConfigurationValidator: z.ZodObject<{
1616
1649
  entry?: string | string[] | undefined;
1617
1650
  project?: string | string[] | undefined;
1618
1651
  }>]>>;
1652
+ 'playwright-ct': z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
1653
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1654
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1655
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1656
+ }, "strip", z.ZodTypeAny, {
1657
+ config?: string | string[] | undefined;
1658
+ entry?: string | string[] | undefined;
1659
+ project?: string | string[] | undefined;
1660
+ }, {
1661
+ config?: string | string[] | undefined;
1662
+ entry?: string | string[] | undefined;
1663
+ project?: string | string[] | undefined;
1664
+ }>]>>;
1619
1665
  postcss: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
1620
1666
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1621
1667
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -1837,6 +1883,19 @@ export declare const ConfigurationValidator: z.ZodObject<{
1837
1883
  entry?: string | string[] | undefined;
1838
1884
  project?: string | string[] | undefined;
1839
1885
  }>]>>;
1886
+ vue: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
1887
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1888
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1889
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1890
+ }, "strip", z.ZodTypeAny, {
1891
+ config?: string | string[] | undefined;
1892
+ entry?: string | string[] | undefined;
1893
+ project?: string | string[] | undefined;
1894
+ }, {
1895
+ config?: string | string[] | undefined;
1896
+ entry?: string | string[] | undefined;
1897
+ project?: string | string[] | undefined;
1898
+ }>]>>;
1840
1899
  vite: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
1841
1900
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1842
1901
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -1889,6 +1948,19 @@ export declare const ConfigurationValidator: z.ZodObject<{
1889
1948
  entry?: string | string[] | undefined;
1890
1949
  project?: string | string[] | undefined;
1891
1950
  }>]>>;
1951
+ yorkie: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
1952
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1953
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1954
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1955
+ }, "strip", z.ZodTypeAny, {
1956
+ config?: string | string[] | undefined;
1957
+ entry?: string | string[] | undefined;
1958
+ project?: string | string[] | undefined;
1959
+ }, {
1960
+ config?: string | string[] | undefined;
1961
+ entry?: string | string[] | undefined;
1962
+ project?: string | string[] | undefined;
1963
+ }>]>>;
1892
1964
  }, "strip", z.ZodTypeAny, {
1893
1965
  ignoreBinaries?: (string | RegExp)[] | undefined;
1894
1966
  ignoreDependencies?: (string | RegExp)[] | undefined;
@@ -1913,11 +1985,6 @@ export declare const ConfigurationValidator: z.ZodObject<{
1913
1985
  paths?: Record<string, string[]> | undefined;
1914
1986
  ignore?: string | string[] | undefined;
1915
1987
  includeEntryExports?: boolean | undefined;
1916
- vue?: string | boolean | string[] | {
1917
- config?: string | string[] | undefined;
1918
- entry?: string | string[] | undefined;
1919
- project?: string | string[] | undefined;
1920
- } | undefined;
1921
1988
  astro?: string | boolean | string[] | {
1922
1989
  config?: string | string[] | undefined;
1923
1990
  entry?: string | string[] | undefined;
@@ -2063,6 +2130,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2063
2130
  entry?: string | string[] | undefined;
2064
2131
  project?: string | string[] | undefined;
2065
2132
  } | undefined;
2133
+ 'playwright-ct'?: string | boolean | string[] | {
2134
+ config?: string | string[] | undefined;
2135
+ entry?: string | string[] | undefined;
2136
+ project?: string | string[] | undefined;
2137
+ } | undefined;
2066
2138
  postcss?: string | boolean | string[] | {
2067
2139
  config?: string | string[] | undefined;
2068
2140
  entry?: string | string[] | undefined;
@@ -2148,6 +2220,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2148
2220
  entry?: string | string[] | undefined;
2149
2221
  project?: string | string[] | undefined;
2150
2222
  } | undefined;
2223
+ vue?: string | boolean | string[] | {
2224
+ config?: string | string[] | undefined;
2225
+ entry?: string | string[] | undefined;
2226
+ project?: string | string[] | undefined;
2227
+ } | undefined;
2151
2228
  vite?: string | boolean | string[] | {
2152
2229
  config?: string | string[] | undefined;
2153
2230
  entry?: string | string[] | undefined;
@@ -2168,12 +2245,12 @@ export declare const ConfigurationValidator: z.ZodObject<{
2168
2245
  entry?: string | string[] | undefined;
2169
2246
  project?: string | string[] | undefined;
2170
2247
  } | undefined;
2248
+ yorkie?: string | boolean | string[] | {
2249
+ config?: string | string[] | undefined;
2250
+ entry?: string | string[] | undefined;
2251
+ project?: string | string[] | undefined;
2252
+ } | undefined;
2171
2253
  }> | undefined;
2172
- vue?: string | boolean | string[] | {
2173
- config?: string | string[] | undefined;
2174
- entry?: string | string[] | undefined;
2175
- project?: string | string[] | undefined;
2176
- } | undefined;
2177
2254
  astro?: string | boolean | string[] | {
2178
2255
  config?: string | string[] | undefined;
2179
2256
  entry?: string | string[] | undefined;
@@ -2319,6 +2396,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2319
2396
  entry?: string | string[] | undefined;
2320
2397
  project?: string | string[] | undefined;
2321
2398
  } | undefined;
2399
+ 'playwright-ct'?: string | boolean | string[] | {
2400
+ config?: string | string[] | undefined;
2401
+ entry?: string | string[] | undefined;
2402
+ project?: string | string[] | undefined;
2403
+ } | undefined;
2322
2404
  postcss?: string | boolean | string[] | {
2323
2405
  config?: string | string[] | undefined;
2324
2406
  entry?: string | string[] | undefined;
@@ -2404,6 +2486,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2404
2486
  entry?: string | string[] | undefined;
2405
2487
  project?: string | string[] | undefined;
2406
2488
  } | undefined;
2489
+ vue?: string | boolean | string[] | {
2490
+ config?: string | string[] | undefined;
2491
+ entry?: string | string[] | undefined;
2492
+ project?: string | string[] | undefined;
2493
+ } | undefined;
2407
2494
  vite?: string | boolean | string[] | {
2408
2495
  config?: string | string[] | undefined;
2409
2496
  entry?: string | string[] | undefined;
@@ -2424,6 +2511,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2424
2511
  entry?: string | string[] | undefined;
2425
2512
  project?: string | string[] | undefined;
2426
2513
  } | undefined;
2514
+ yorkie?: string | boolean | string[] | {
2515
+ config?: string | string[] | undefined;
2516
+ entry?: string | string[] | undefined;
2517
+ project?: string | string[] | undefined;
2518
+ } | undefined;
2427
2519
  }, {
2428
2520
  ignoreBinaries?: (string | RegExp)[] | undefined;
2429
2521
  ignoreDependencies?: (string | RegExp)[] | undefined;
@@ -2448,11 +2540,6 @@ export declare const ConfigurationValidator: z.ZodObject<{
2448
2540
  paths?: Record<string, string[]> | undefined;
2449
2541
  ignore?: string | string[] | undefined;
2450
2542
  includeEntryExports?: boolean | undefined;
2451
- vue?: string | boolean | string[] | {
2452
- config?: string | string[] | undefined;
2453
- entry?: string | string[] | undefined;
2454
- project?: string | string[] | undefined;
2455
- } | undefined;
2456
2543
  astro?: string | boolean | string[] | {
2457
2544
  config?: string | string[] | undefined;
2458
2545
  entry?: string | string[] | undefined;
@@ -2598,6 +2685,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2598
2685
  entry?: string | string[] | undefined;
2599
2686
  project?: string | string[] | undefined;
2600
2687
  } | undefined;
2688
+ 'playwright-ct'?: string | boolean | string[] | {
2689
+ config?: string | string[] | undefined;
2690
+ entry?: string | string[] | undefined;
2691
+ project?: string | string[] | undefined;
2692
+ } | undefined;
2601
2693
  postcss?: string | boolean | string[] | {
2602
2694
  config?: string | string[] | undefined;
2603
2695
  entry?: string | string[] | undefined;
@@ -2683,6 +2775,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2683
2775
  entry?: string | string[] | undefined;
2684
2776
  project?: string | string[] | undefined;
2685
2777
  } | undefined;
2778
+ vue?: string | boolean | string[] | {
2779
+ config?: string | string[] | undefined;
2780
+ entry?: string | string[] | undefined;
2781
+ project?: string | string[] | undefined;
2782
+ } | undefined;
2686
2783
  vite?: string | boolean | string[] | {
2687
2784
  config?: string | string[] | undefined;
2688
2785
  entry?: string | string[] | undefined;
@@ -2703,12 +2800,12 @@ export declare const ConfigurationValidator: z.ZodObject<{
2703
2800
  entry?: string | string[] | undefined;
2704
2801
  project?: string | string[] | undefined;
2705
2802
  } | undefined;
2803
+ yorkie?: string | boolean | string[] | {
2804
+ config?: string | string[] | undefined;
2805
+ entry?: string | string[] | undefined;
2806
+ project?: string | string[] | undefined;
2807
+ } | undefined;
2706
2808
  }> | undefined;
2707
- vue?: string | boolean | string[] | {
2708
- config?: string | string[] | undefined;
2709
- entry?: string | string[] | undefined;
2710
- project?: string | string[] | undefined;
2711
- } | undefined;
2712
2809
  astro?: string | boolean | string[] | {
2713
2810
  config?: string | string[] | undefined;
2714
2811
  entry?: string | string[] | undefined;
@@ -2854,6 +2951,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2854
2951
  entry?: string | string[] | undefined;
2855
2952
  project?: string | string[] | undefined;
2856
2953
  } | undefined;
2954
+ 'playwright-ct'?: string | boolean | string[] | {
2955
+ config?: string | string[] | undefined;
2956
+ entry?: string | string[] | undefined;
2957
+ project?: string | string[] | undefined;
2958
+ } | undefined;
2857
2959
  postcss?: string | boolean | string[] | {
2858
2960
  config?: string | string[] | undefined;
2859
2961
  entry?: string | string[] | undefined;
@@ -2939,6 +3041,11 @@ export declare const ConfigurationValidator: z.ZodObject<{
2939
3041
  entry?: string | string[] | undefined;
2940
3042
  project?: string | string[] | undefined;
2941
3043
  } | undefined;
3044
+ vue?: string | boolean | string[] | {
3045
+ config?: string | string[] | undefined;
3046
+ entry?: string | string[] | undefined;
3047
+ project?: string | string[] | undefined;
3048
+ } | undefined;
2942
3049
  vite?: string | boolean | string[] | {
2943
3050
  config?: string | string[] | undefined;
2944
3051
  entry?: string | string[] | undefined;
@@ -2959,4 +3066,9 @@ export declare const ConfigurationValidator: z.ZodObject<{
2959
3066
  entry?: string | string[] | undefined;
2960
3067
  project?: string | string[] | undefined;
2961
3068
  } | undefined;
3069
+ yorkie?: string | boolean | string[] | {
3070
+ config?: string | string[] | undefined;
3071
+ entry?: string | string[] | undefined;
3072
+ project?: string | string[] | undefined;
3073
+ } | undefined;
2962
3074
  }>;
@@ -62,7 +62,6 @@ export const pluginSchema = z.union([
62
62
  }),
63
63
  ]);
64
64
  const pluginsSchema = z.object({
65
- vue: pluginSchema,
66
65
  astro: pluginSchema,
67
66
  angular: pluginSchema,
68
67
  ava: pluginSchema,
@@ -92,6 +91,7 @@ const pluginsSchema = z.object({
92
91
  nx: pluginSchema,
93
92
  nyc: pluginSchema,
94
93
  playwright: pluginSchema,
94
+ 'playwright-ct': pluginSchema,
95
95
  postcss: pluginSchema,
96
96
  prettier: pluginSchema,
97
97
  'release-it': pluginSchema,
@@ -109,10 +109,12 @@ const pluginsSchema = z.object({
109
109
  typedoc: pluginSchema,
110
110
  typescript: pluginSchema,
111
111
  unbuild: pluginSchema,
112
+ vue: pluginSchema,
112
113
  vite: pluginSchema,
113
114
  vitest: pluginSchema,
114
115
  webpack: pluginSchema,
115
116
  wireit: pluginSchema,
117
+ yorkie: pluginSchema,
116
118
  });
117
119
  const baseWorkspaceConfigurationSchema = z.object({
118
120
  entry: globSchema.optional(),
@@ -13,8 +13,8 @@ export declare class IssueFixer {
13
13
  cwd: string;
14
14
  fixTypes: string[];
15
15
  });
16
- addUnusedTypeNode(filePath: string, fix: Fixes): void;
17
- addUnusedExportNode(filePath: string, fix: Fixes): void;
16
+ addUnusedTypeNode(filePath: string, fixes: Fixes | undefined): void;
17
+ addUnusedExportNode(filePath: string, fixes: Fixes | undefined): void;
18
18
  fixIssues(issues: Issues): Promise<void>;
19
19
  private removeUnusedExportKeywords;
20
20
  private removeUnusedDependencies;
@@ -16,21 +16,21 @@ export class IssueFixer {
16
16
  this.isFixUnusedTypes = fixTypes.length === 0 || fixTypes.includes('types');
17
17
  this.isFixUnusedExports = fixTypes.length === 0 || fixTypes.includes('exports');
18
18
  }
19
- addUnusedTypeNode(filePath, fix) {
20
- if (fix.length === 0)
19
+ addUnusedTypeNode(filePath, fixes) {
20
+ if (!fixes || fixes.length === 0)
21
21
  return;
22
22
  if (this.unusedTypeNodes.has(filePath))
23
- fix.forEach(fix => this.unusedTypeNodes.get(filePath).add(fix));
23
+ fixes.forEach(fix => this.unusedTypeNodes.get(filePath).add(fix));
24
24
  else
25
- this.unusedTypeNodes.set(filePath, new Set(fix));
25
+ this.unusedTypeNodes.set(filePath, new Set(fixes));
26
26
  }
27
- addUnusedExportNode(filePath, fix) {
28
- if (fix.length === 0)
27
+ addUnusedExportNode(filePath, fixes) {
28
+ if (!fixes || fixes.length === 0)
29
29
  return;
30
30
  if (this.unusedExportNodes.has(filePath))
31
- fix.forEach(fix => this.unusedExportNodes.get(filePath).add(fix));
31
+ fixes.forEach(fix => this.unusedExportNodes.get(filePath).add(fix));
32
32
  else
33
- this.unusedExportNodes.set(filePath, new Set(fix));
33
+ this.unusedExportNodes.set(filePath, new Set(fixes));
34
34
  }
35
35
  async fixIssues(issues) {
36
36
  await this.removeUnusedExportKeywords();
@@ -27,7 +27,7 @@ export declare class WorkspaceWorker {
27
27
  isStrict: boolean;
28
28
  rootIgnore: Configuration['ignore'];
29
29
  negatedWorkspacePatterns: string[];
30
- enabledPluginsMap: Record<"typescript" | "astro" | "svelte" | "vue" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "netlify" | "next" | "nx" | "nyc" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "tailwind" | "tsup" | "typedoc" | "unbuild" | "vite" | "vitest" | "webpack" | "wireit" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease", boolean>;
30
+ enabledPluginsMap: Record<"typescript" | "astro" | "svelte" | "vue" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "netlify" | "next" | "nx" | "nyc" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "tailwind" | "tsup" | "typedoc" | "unbuild" | "vite" | "vitest" | "webpack" | "wireit" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease", boolean>;
31
31
  enabledPlugins: PluginName[];
32
32
  enabledPluginsInAncestors: string[];
33
33
  constructor({ name, dir, cwd, config, manifest, dependencies, isProduction, isStrict, rootIgnore, negatedWorkspacePatterns, enabledPluginsInAncestors, }: WorkspaceManagerOptions);
@@ -46,7 +46,7 @@ export declare class WorkspaceWorker {
46
46
  entryFilePatterns: Set<string>;
47
47
  productionEntryFilePatterns: Set<string>;
48
48
  referencedDependencies: ReferencedDependencies;
49
- enabledPlugins: ("typescript" | "astro" | "svelte" | "vue" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "netlify" | "next" | "nx" | "nyc" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "tailwind" | "tsup" | "typedoc" | "unbuild" | "vite" | "vitest" | "webpack" | "wireit" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease")[];
49
+ enabledPlugins: ("typescript" | "astro" | "svelte" | "vue" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "netlify" | "next" | "nx" | "nyc" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "sentry" | "storybook" | "stryker" | "stylelint" | "tailwind" | "tsup" | "typedoc" | "unbuild" | "vite" | "vitest" | "webpack" | "wireit" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "releaseIt" | "semanticRelease")[];
50
50
  }>;
51
51
  }
52
52
  export {};
@@ -52,7 +52,10 @@ const commands = [
52
52
  'why',
53
53
  ];
54
54
  export const resolve = (_binary, args, { manifestScriptNames }) => {
55
- const parsed = parseArgs(args, { alias: { recursive: 'r' }, boolean: ['recursive'] });
55
+ const parsed = parseArgs(args, {
56
+ boolean: ['recursive', 'silent', 'shell-mode'],
57
+ alias: { recursive: 'r', silent: 's', 'shell-mode': 'c' },
58
+ });
56
59
  const [command, binary] = parsed._;
57
60
  if (manifestScriptNames.has(command) || commands.includes(command))
58
61
  return [];
@@ -25,11 +25,6 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
25
25
  paths?: Record<string, string[]> | undefined;
26
26
  ignore?: string | string[] | undefined;
27
27
  includeEntryExports?: boolean | undefined;
28
- vue?: string | boolean | string[] | {
29
- config?: string | string[] | undefined;
30
- entry?: string | string[] | undefined;
31
- project?: string | string[] | undefined;
32
- } | undefined;
33
28
  astro?: string | boolean | string[] | {
34
29
  config?: string | string[] | undefined;
35
30
  entry?: string | string[] | undefined;
@@ -175,6 +170,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
175
170
  entry?: string | string[] | undefined;
176
171
  project?: string | string[] | undefined;
177
172
  } | undefined;
173
+ 'playwright-ct'?: string | boolean | string[] | {
174
+ config?: string | string[] | undefined;
175
+ entry?: string | string[] | undefined;
176
+ project?: string | string[] | undefined;
177
+ } | undefined;
178
178
  postcss?: string | boolean | string[] | {
179
179
  config?: string | string[] | undefined;
180
180
  entry?: string | string[] | undefined;
@@ -260,6 +260,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
260
260
  entry?: string | string[] | undefined;
261
261
  project?: string | string[] | undefined;
262
262
  } | undefined;
263
+ vue?: string | boolean | string[] | {
264
+ config?: string | string[] | undefined;
265
+ entry?: string | string[] | undefined;
266
+ project?: string | string[] | undefined;
267
+ } | undefined;
263
268
  vite?: string | boolean | string[] | {
264
269
  config?: string | string[] | undefined;
265
270
  entry?: string | string[] | undefined;
@@ -280,12 +285,12 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
280
285
  entry?: string | string[] | undefined;
281
286
  project?: string | string[] | undefined;
282
287
  } | undefined;
288
+ yorkie?: string | boolean | string[] | {
289
+ config?: string | string[] | undefined;
290
+ entry?: string | string[] | undefined;
291
+ project?: string | string[] | undefined;
292
+ } | undefined;
283
293
  }> | undefined;
284
- vue?: string | boolean | string[] | {
285
- config?: string | string[] | undefined;
286
- entry?: string | string[] | undefined;
287
- project?: string | string[] | undefined;
288
- } | undefined;
289
294
  astro?: string | boolean | string[] | {
290
295
  config?: string | string[] | undefined;
291
296
  entry?: string | string[] | undefined;
@@ -431,6 +436,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
431
436
  entry?: string | string[] | undefined;
432
437
  project?: string | string[] | undefined;
433
438
  } | undefined;
439
+ 'playwright-ct'?: string | boolean | string[] | {
440
+ config?: string | string[] | undefined;
441
+ entry?: string | string[] | undefined;
442
+ project?: string | string[] | undefined;
443
+ } | undefined;
434
444
  postcss?: string | boolean | string[] | {
435
445
  config?: string | string[] | undefined;
436
446
  entry?: string | string[] | undefined;
@@ -516,6 +526,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
516
526
  entry?: string | string[] | undefined;
517
527
  project?: string | string[] | undefined;
518
528
  } | undefined;
529
+ vue?: string | boolean | string[] | {
530
+ config?: string | string[] | undefined;
531
+ entry?: string | string[] | undefined;
532
+ project?: string | string[] | undefined;
533
+ } | undefined;
519
534
  vite?: string | boolean | string[] | {
520
535
  config?: string | string[] | undefined;
521
536
  entry?: string | string[] | undefined;
@@ -536,6 +551,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
536
551
  entry?: string | string[] | undefined;
537
552
  project?: string | string[] | undefined;
538
553
  } | undefined;
554
+ yorkie?: string | boolean | string[] | {
555
+ config?: string | string[] | undefined;
556
+ entry?: string | string[] | undefined;
557
+ project?: string | string[] | undefined;
558
+ } | undefined;
539
559
  };
540
560
  export declare const dummyCompilers: Map<string, SyncCompilerFn>;
541
561
  export declare const getIncludedCompilers: (syncCompilers: SyncCompilers, asyncCompilers: AsyncCompilers, dependencies: DependencySet) => [SyncCompilers, AsyncCompilers];
@@ -8,7 +8,7 @@ import { DummyEleventyConfig, defaultEleventyConfig } from './helpers.js';
8
8
  const NAME = 'Eleventy';
9
9
  const ENABLERS = ['@11ty/eleventy'];
10
10
  const isEnabled = ({ dependencies }) => hasDependency(dependencies, ENABLERS);
11
- const CONFIG_FILE_PATTERNS = ['.eleventy.js', 'eleventy.config.{js,cjs}'];
11
+ const CONFIG_FILE_PATTERNS = ['.eleventy.js', 'eleventy.config.{js,cjs,mjs}'];
12
12
  const ENTRY_FILE_PATTERNS = [];
13
13
  const PRODUCTION_ENTRY_FILE_PATTERNS = ['posts/**/*.11tydata.js', '_data/**/*.{js,cjs,mjs}'];
14
14
  const PROJECT_FILE_PATTERNS = [];
@@ -1,5 +1,4 @@
1
1
  import { getGitHookPaths } from '../../util/git.js';
2
- import { FAKE_PATH } from '../../util/loader.js';
3
2
  import { timerify } from '../../util/Performance.js';
4
3
  import { getDependenciesFromScripts, hasDependency, loadFile } from '../../util/plugin.js';
5
4
  const NAME = 'husky';
@@ -9,7 +8,7 @@ const gitHookPaths = getGitHookPaths('.husky');
9
8
  const CONFIG_FILE_PATTERNS = [...gitHookPaths];
10
9
  const findHuskyDependencies = async (configFilePath, options) => {
11
10
  const { isProduction } = options;
12
- if (isProduction || configFilePath === FAKE_PATH)
11
+ if (isProduction)
13
12
  return [];
14
13
  const script = await loadFile(configFilePath);
15
14
  if (!script)
@@ -51,3 +51,4 @@ export { default as vitest } from './vitest/index.js';
51
51
  export { default as vue } from './vue/index.js';
52
52
  export { default as webpack } from './webpack/index.js';
53
53
  export { default as wireit } from './wireit/index.js';
54
+ export { default as yorkie } from './yorkie/index.js';
@@ -51,3 +51,4 @@ export { default as vitest } from './vitest/index.js';
51
51
  export { default as vue } from './vue/index.js';
52
52
  export { default as webpack } from './webpack/index.js';
53
53
  export { default as wireit } from './wireit/index.js';
54
+ export { default as yorkie } from './yorkie/index.js';
@@ -53,7 +53,7 @@ export const findVitestDependencies = async (configFilePath, localConfig, option
53
53
  const dependencies = (typeof entry === 'string' ? [entry] : Object.values(entry)).map(specifier => resolveEntry(configFilePath, specifier));
54
54
  if (!options.enabledPlugins.includes('vitest'))
55
55
  return dependencies;
56
- return [...dependencies, ...findConfigDependencies(configFilePath, localConfig, options)];
56
+ return compact([...dependencies, ...findConfigDependencies(configFilePath, localConfig, options)]);
57
57
  };
58
58
  const findVitestWorkspaceDependencies = async (configFilePath, options) => {
59
59
  const localConfig = await load(configFilePath);
@@ -0,0 +1,10 @@
1
+ import type { IsPluginEnabledCallback, GenericPluginCallback } from '../../types/plugins.js';
2
+ declare const _default: {
3
+ NAME: string;
4
+ ENABLERS: string[];
5
+ isEnabled: IsPluginEnabledCallback;
6
+ PACKAGE_JSON_PATH: string;
7
+ CONFIG_FILE_PATTERNS: string[];
8
+ findDependencies: GenericPluginCallback;
9
+ };
10
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { timerify } from '../../util/Performance.js';
2
+ import { getDependenciesFromScripts, hasDependency } from '../../util/plugin.js';
3
+ const NAME = 'yorkie';
4
+ const ENABLERS = ['yorkie'];
5
+ const isEnabled = ({ dependencies }) => hasDependency(dependencies, ENABLERS);
6
+ const PACKAGE_JSON_PATH = 'gitHooks';
7
+ const CONFIG_FILE_PATTERNS = ['package.json'];
8
+ const findPluginDependencies = async (configFilePath, options) => {
9
+ const { manifest, isProduction } = options;
10
+ if (isProduction)
11
+ return [];
12
+ const localConfig = manifest[PACKAGE_JSON_PATH];
13
+ if (!localConfig)
14
+ return [];
15
+ const dependencies = new Set();
16
+ for (const script of Object.values(localConfig).flat()) {
17
+ const scripts = [script].flat();
18
+ getDependenciesFromScripts(scripts, options).forEach(identifier => dependencies.add(identifier));
19
+ }
20
+ return ['yorkie', ...dependencies];
21
+ };
22
+ const findDependencies = timerify(findPluginDependencies);
23
+ export default {
24
+ NAME,
25
+ ENABLERS,
26
+ isEnabled,
27
+ PACKAGE_JSON_PATH,
28
+ CONFIG_FILE_PATTERNS,
29
+ findDependencies,
30
+ };
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "4.2.3";
1
+ export declare const version = "4.3.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '4.2.3';
1
+ export const version = '4.3.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "4.2.3",
3
+ "version": "4.3.1",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {
package/schema.json CHANGED
@@ -477,6 +477,10 @@
477
477
  "wireit": {
478
478
  "title": "Wireit plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/wireit/README.md)",
479
479
  "$ref": "#/definitions/plugin"
480
+ },
481
+ "yorkie": {
482
+ "title": "yorkie plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/yorkie/README.md)",
483
+ "$ref": "#/definitions/plugin"
480
484
  }
481
485
  }
482
486
  },