knip 6.25.0 → 6.26.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.
Files changed (138) hide show
  1. package/dist/ConfigurationChief.d.ts +102 -0
  2. package/dist/compilers/index.d.ts +170 -0
  3. package/dist/constants.js +13 -0
  4. package/dist/graph/build.js +8 -3
  5. package/dist/plugins/_vue/auto-import.d.ts +12 -0
  6. package/dist/plugins/_vue/auto-import.js +272 -0
  7. package/dist/plugins/_vue/types.d.ts +38 -0
  8. package/dist/plugins/_vue/types.js +1 -0
  9. package/dist/plugins/astro/index.js +2 -37
  10. package/dist/plugins/astro/resolveFromAST.d.ts +4 -4
  11. package/dist/plugins/astro/resolveFromAST.js +34 -7
  12. package/dist/plugins/electron-vite/index.d.ts +3 -0
  13. package/dist/plugins/electron-vite/index.js +51 -0
  14. package/dist/plugins/electron-vite/types.d.ts +23 -0
  15. package/dist/plugins/electron-vite/types.js +1 -0
  16. package/dist/plugins/esbuild/index.d.ts +3 -0
  17. package/dist/plugins/esbuild/index.js +17 -0
  18. package/dist/plugins/eslint/resolveFromAST.js +18 -21
  19. package/dist/plugins/index.d.ts +17 -0
  20. package/dist/plugins/index.js +34 -0
  21. package/dist/plugins/laravel-vite-plugin/index.d.ts +3 -0
  22. package/dist/plugins/laravel-vite-plugin/index.js +14 -0
  23. package/dist/plugins/laravel-vite-plugin/resolveFromAST.d.ts +2 -0
  24. package/dist/plugins/laravel-vite-plugin/resolveFromAST.js +27 -0
  25. package/dist/plugins/next/index.js +2 -2
  26. package/dist/plugins/next-mdx/index.js +2 -8
  27. package/dist/plugins/next-mdx/resolveFromAST.d.ts +3 -2
  28. package/dist/plugins/next-mdx/resolveFromAST.js +17 -21
  29. package/dist/plugins/nuxt/index.js +5 -68
  30. package/dist/plugins/nuxt/types.d.ts +0 -34
  31. package/dist/plugins/nuxtjs-i18n/index.d.ts +3 -0
  32. package/dist/plugins/nuxtjs-i18n/index.js +12 -0
  33. package/dist/plugins/oclif/index.js +10 -5
  34. package/dist/plugins/orval/index.js +1 -3
  35. package/dist/plugins/orval/resolveFromAST.d.ts +2 -2
  36. package/dist/plugins/orval/resolveFromAST.js +4 -7
  37. package/dist/plugins/oxlint/index.js +23 -2
  38. package/dist/plugins/pnpm/index.js +2 -1
  39. package/dist/plugins/pnpm/types.d.ts +2 -4
  40. package/dist/plugins/quasar/index.d.ts +3 -0
  41. package/dist/plugins/quasar/index.js +15 -0
  42. package/dist/plugins/quasar/resolveFromAST.d.ts +3 -0
  43. package/dist/plugins/quasar/resolveFromAST.js +63 -0
  44. package/dist/plugins/qwik/index.js +1 -25
  45. package/dist/plugins/qwik/resolveFromAST.d.ts +5 -3
  46. package/dist/plugins/qwik/resolveFromAST.js +28 -9
  47. package/dist/plugins/rolldown/index.js +2 -5
  48. package/dist/plugins/rollup/index.js +2 -5
  49. package/dist/plugins/rslib/index.js +2 -5
  50. package/dist/plugins/sst/index.js +1 -5
  51. package/dist/plugins/sst/resolveFromAST.d.ts +1 -1
  52. package/dist/plugins/sst/resolveFromAST.js +1 -1
  53. package/dist/plugins/starlight/index.js +1 -19
  54. package/dist/plugins/starlight/resolveFromAST.d.ts +2 -2
  55. package/dist/plugins/starlight/resolveFromAST.js +12 -8
  56. package/dist/plugins/stencil/index.js +2 -37
  57. package/dist/plugins/stencil/resolveFromAST.d.ts +3 -0
  58. package/dist/plugins/stencil/resolveFromAST.js +36 -0
  59. package/dist/plugins/storybook/index.js +3 -0
  60. package/dist/plugins/sveltekit/index.js +1 -48
  61. package/dist/plugins/sveltekit/resolveFromAST.d.ts +2 -0
  62. package/dist/plugins/sveltekit/resolveFromAST.js +45 -0
  63. package/dist/plugins/tauri/index.d.ts +3 -0
  64. package/dist/plugins/tauri/index.js +42 -0
  65. package/dist/plugins/tauri/types.d.ts +16 -0
  66. package/dist/plugins/tauri/types.js +1 -0
  67. package/dist/plugins/tsdown/index.js +2 -5
  68. package/dist/plugins/tsup/index.js +2 -5
  69. package/dist/plugins/unplugin-auto-import/index.d.ts +3 -0
  70. package/dist/plugins/unplugin-auto-import/index.js +18 -0
  71. package/dist/plugins/unplugin-icons/index.d.ts +3 -0
  72. package/dist/plugins/unplugin-icons/index.js +17 -0
  73. package/dist/plugins/unplugin-vue-components/index.d.ts +3 -0
  74. package/dist/plugins/unplugin-vue-components/index.js +16 -0
  75. package/dist/plugins/unplugin-vue-i18n/index.d.ts +3 -0
  76. package/dist/plugins/unplugin-vue-i18n/index.js +10 -0
  77. package/dist/plugins/unplugin-vue-markdown/index.d.ts +3 -0
  78. package/dist/plugins/unplugin-vue-markdown/index.js +16 -0
  79. package/dist/plugins/unplugin-vue-router/index.d.ts +3 -0
  80. package/dist/plugins/unplugin-vue-router/index.js +14 -0
  81. package/dist/plugins/vite/helpers.d.ts +2 -0
  82. package/dist/plugins/vite/helpers.js +46 -31
  83. package/dist/plugins/vite/index.js +1 -1
  84. package/dist/plugins/vite-plugin-pages/index.d.ts +3 -0
  85. package/dist/plugins/vite-plugin-pages/index.js +26 -0
  86. package/dist/plugins/vite-plugin-pwa/index.d.ts +3 -0
  87. package/dist/plugins/vite-plugin-pwa/index.js +17 -0
  88. package/dist/plugins/vite-plugin-pwa/resolveFromAST.d.ts +4 -0
  89. package/dist/plugins/vite-plugin-pwa/resolveFromAST.js +37 -0
  90. package/dist/plugins/vite-plugin-vue-layouts-next/index.d.ts +3 -0
  91. package/dist/plugins/vite-plugin-vue-layouts-next/index.js +23 -0
  92. package/dist/plugins/vite-plus/index.d.ts +3 -0
  93. package/dist/plugins/vite-plus/index.js +14 -0
  94. package/dist/plugins/vite-plus/resolveFromAST.d.ts +2 -0
  95. package/dist/plugins/vite-plus/resolveFromAST.js +37 -0
  96. package/dist/plugins/vite-pwa-assets-generator/index.d.ts +3 -0
  97. package/dist/plugins/vite-pwa-assets-generator/index.js +12 -0
  98. package/dist/plugins/vitepress/index.js +5 -1
  99. package/dist/plugins/vitest/index.js +4 -0
  100. package/dist/plugins/vitest/types.d.ts +3 -0
  101. package/dist/plugins/vue/index.js +5 -3
  102. package/dist/plugins/yarn/index.js +2 -1
  103. package/dist/plugins/yarn/types.d.ts +2 -4
  104. package/dist/schema/configuration.d.ts +255 -0
  105. package/dist/schema/plugins.d.ts +85 -0
  106. package/dist/schema/plugins.js +17 -0
  107. package/dist/types/PluginNames.d.ts +2 -2
  108. package/dist/types/PluginNames.js +17 -0
  109. package/dist/types/package-json.d.ts +8 -4
  110. package/dist/typescript/ast-helpers.d.ts +7 -2
  111. package/dist/typescript/ast-helpers.js +36 -8
  112. package/dist/typescript/ast-nodes.d.ts +1 -0
  113. package/dist/typescript/ast-nodes.js +8 -0
  114. package/dist/util/cli-arguments.d.ts +1 -1
  115. package/dist/util/cli-arguments.js +1 -1
  116. package/dist/util/create-options.d.ts +170 -0
  117. package/dist/util/resolve.js +4 -1
  118. package/dist/util/to-source-path.js +1 -1
  119. package/dist/version.d.ts +1 -1
  120. package/dist/version.js +1 -1
  121. package/package.json +1 -1
  122. package/schema.json +68 -0
  123. package/dist/plugins/next/resolveFromAST.d.ts +0 -2
  124. package/dist/plugins/next/resolveFromAST.js +0 -2
  125. package/dist/plugins/nuxt/helpers.d.ts +0 -15
  126. package/dist/plugins/nuxt/helpers.js +0 -133
  127. package/dist/plugins/rolldown/resolveFromAST.d.ts +0 -2
  128. package/dist/plugins/rolldown/resolveFromAST.js +0 -4
  129. package/dist/plugins/rollup/resolveFromAST.d.ts +0 -2
  130. package/dist/plugins/rollup/resolveFromAST.js +0 -4
  131. package/dist/plugins/rslib/resolveFromAST.d.ts +0 -2
  132. package/dist/plugins/rslib/resolveFromAST.js +0 -4
  133. package/dist/plugins/tsdown/resolveFromAST.d.ts +0 -2
  134. package/dist/plugins/tsdown/resolveFromAST.js +0 -4
  135. package/dist/plugins/tsup/resolveFromAST.d.ts +0 -2
  136. package/dist/plugins/tsup/resolveFromAST.js +0 -4
  137. package/dist/plugins/vue/compiler.d.ts +0 -3
  138. package/dist/plugins/vue/compiler.js +0 -10
@@ -146,11 +146,21 @@ export declare const pluginsSchema: z.ZodMiniObject<{
146
146
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
147
147
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
148
148
  }, z.core.$strip>]>;
149
+ 'electron-vite': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
150
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
151
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
152
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
153
+ }, z.core.$strip>]>;
149
154
  eleventy: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
150
155
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
151
156
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
152
157
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
153
158
  }, z.core.$strip>]>;
159
+ esbuild: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
160
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
161
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
162
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
163
+ }, z.core.$strip>]>;
154
164
  eslint: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
155
165
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
156
166
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -246,6 +256,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
246
256
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
247
257
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
248
258
  }, z.core.$strip>]>;
259
+ 'laravel-vite-plugin': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
260
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
261
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
262
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
263
+ }, z.core.$strip>]>;
249
264
  lefthook: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
250
265
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
251
266
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -381,6 +396,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
381
396
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
382
397
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
383
398
  }, z.core.$strip>]>;
399
+ 'nuxtjs-i18n': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
400
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
401
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
402
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
403
+ }, z.core.$strip>]>;
384
404
  nx: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
385
405
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
386
406
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -486,6 +506,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
486
506
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
487
507
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
488
508
  }, z.core.$strip>]>;
509
+ quasar: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
510
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
511
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
512
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
513
+ }, z.core.$strip>]>;
489
514
  qwik: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
490
515
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
491
516
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -676,6 +701,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
676
701
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
677
702
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
678
703
  }, z.core.$strip>]>;
704
+ tauri: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
705
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
706
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
707
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
708
+ }, z.core.$strip>]>;
679
709
  travis: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
680
710
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
681
711
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -721,6 +751,36 @@ export declare const pluginsSchema: z.ZodMiniObject<{
721
751
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
722
752
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
723
753
  }, z.core.$strip>]>;
754
+ 'unplugin-auto-import': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
755
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
756
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
757
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
758
+ }, z.core.$strip>]>;
759
+ 'unplugin-icons': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
760
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
761
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
762
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
763
+ }, z.core.$strip>]>;
764
+ 'unplugin-vue-components': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
765
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
766
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
767
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
768
+ }, z.core.$strip>]>;
769
+ 'unplugin-vue-i18n': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
770
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
771
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
772
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
773
+ }, z.core.$strip>]>;
774
+ 'unplugin-vue-markdown': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
775
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
776
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
777
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
778
+ }, z.core.$strip>]>;
779
+ 'unplugin-vue-router': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
780
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
781
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
782
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
783
+ }, z.core.$strip>]>;
724
784
  vercel: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
725
785
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
726
786
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -741,6 +801,31 @@ export declare const pluginsSchema: z.ZodMiniObject<{
741
801
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
742
802
  project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
743
803
  }, z.core.$strip>]>;
804
+ 'vite-plugin-pages': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
805
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
806
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
807
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
808
+ }, z.core.$strip>]>;
809
+ 'vite-plugin-pwa': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
810
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
811
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
812
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
813
+ }, z.core.$strip>]>;
814
+ 'vite-plugin-vue-layouts-next': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
815
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
816
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
817
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
818
+ }, z.core.$strip>]>;
819
+ 'vite-plus': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
820
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
821
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
822
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
823
+ }, z.core.$strip>]>;
824
+ 'vite-pwa-assets-generator': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
825
+ config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
826
+ entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
827
+ project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
828
+ }, z.core.$strip>]>;
744
829
  vitepress: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
745
830
  config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
746
831
  entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
@@ -38,7 +38,9 @@ export const pluginsSchema = z.object({
38
38
  docusaurus: pluginSchema,
39
39
  dotenv: pluginSchema,
40
40
  drizzle: pluginSchema,
41
+ 'electron-vite': pluginSchema,
41
42
  eleventy: pluginSchema,
43
+ esbuild: pluginSchema,
42
44
  eslint: pluginSchema,
43
45
  eve: pluginSchema,
44
46
  execa: pluginSchema,
@@ -58,6 +60,7 @@ export const pluginsSchema = z.object({
58
60
  karma: pluginSchema,
59
61
  knex: pluginSchema,
60
62
  ladle: pluginSchema,
63
+ 'laravel-vite-plugin': pluginSchema,
61
64
  lefthook: pluginSchema,
62
65
  'lint-staged': pluginSchema,
63
66
  linthtml: pluginSchema,
@@ -85,6 +88,7 @@ export const pluginsSchema = z.object({
85
88
  nodemon: pluginSchema,
86
89
  'npm-package-json-lint': pluginSchema,
87
90
  nuxt: pluginSchema,
91
+ 'nuxtjs-i18n': pluginSchema,
88
92
  nx: pluginSchema,
89
93
  nyc: pluginSchema,
90
94
  oclif: pluginSchema,
@@ -106,6 +110,7 @@ export const pluginsSchema = z.object({
106
110
  preconstruct: pluginSchema,
107
111
  prettier: pluginSchema,
108
112
  prisma: pluginSchema,
113
+ quasar: pluginSchema,
109
114
  qwik: pluginSchema,
110
115
  raycast: pluginSchema,
111
116
  'react-cosmos': pluginSchema,
@@ -144,6 +149,7 @@ export const pluginsSchema = z.object({
144
149
  tailwind: pluginSchema,
145
150
  'tanstack-router': pluginSchema,
146
151
  taskfile: pluginSchema,
152
+ tauri: pluginSchema,
147
153
  travis: pluginSchema,
148
154
  'ts-node': pluginSchema,
149
155
  tsdown: pluginSchema,
@@ -153,10 +159,21 @@ export const pluginsSchema = z.object({
153
159
  typescript: pluginSchema,
154
160
  unbuild: pluginSchema,
155
161
  unocss: pluginSchema,
162
+ 'unplugin-auto-import': pluginSchema,
163
+ 'unplugin-icons': pluginSchema,
164
+ 'unplugin-vue-components': pluginSchema,
165
+ 'unplugin-vue-i18n': pluginSchema,
166
+ 'unplugin-vue-markdown': pluginSchema,
167
+ 'unplugin-vue-router': pluginSchema,
156
168
  vercel: pluginSchema,
157
169
  'vercel-og': pluginSchema,
158
170
  vike: pluginSchema,
159
171
  vite: pluginSchema,
172
+ 'vite-plugin-pages': pluginSchema,
173
+ 'vite-plugin-pwa': pluginSchema,
174
+ 'vite-plugin-vue-layouts-next': pluginSchema,
175
+ 'vite-plus': pluginSchema,
176
+ 'vite-pwa-assets-generator': pluginSchema,
160
177
  vitepress: pluginSchema,
161
178
  vitest: pluginSchema,
162
179
  vue: pluginSchema,
@@ -1,2 +1,2 @@
1
- export type PluginName = 'angular' | 'astro' | 'astro-db' | 'astro-markdoc' | 'astro-og-canvas' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'catalyst' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'eve' | 'execa' | 'expo' | 'expressive-code' | 'fast' | 'fumadocs' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'hardhat' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'knex' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lit' | 'lockfile-lint' | 'lost-pixel' | 'lunaria' | 'markdownlint' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-spawn' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'next-intl' | 'next-mdx' | 'nitro' | 'node' | 'node-modules-inspector' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'openapi-ts' | 'orval' | 'oxfmt' | 'oxlint' | 'panda-css' | 'parcel' | 'payload' | 'pino' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'pm2' | 'pnpm' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'qwik' | 'raycast' | 'react-cosmos' | 'react-email' | 'react-native' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rolldown' | 'rollup' | 'rsbuild' | 'rslib' | 'rspack' | 'rstest' | 'sanity' | 'semantic-release' | 'sentry' | 'serverless-framework' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'stencil' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'sveltejs-package' | 'sveltekit' | 'svgo' | 'svgr' | 'swc' | 'syncpack' | 'tailwind' | 'tanstack-router' | 'taskfile' | 'travis' | 'ts-node' | 'tsdown' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'vercel' | 'vercel-og' | 'vike' | 'vite' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'wxt' | 'xo' | 'yarn' | 'yorkie' | 'zx';
2
- export declare const pluginNames: readonly ['angular', 'astro', 'astro-db', 'astro-markdoc', 'astro-og-canvas', 'ava', 'babel', 'biome', 'bumpp', 'bun', 'c8', 'capacitor', 'catalyst', 'changelogen', 'changelogithub', 'changesets', 'commitizen', 'commitlint', 'convex', 'create-typescript-app', 'cspell', 'cucumber', 'cypress', 'danger', 'dependency-cruiser', 'docusaurus', 'dotenv', 'drizzle', 'eleventy', 'eslint', 'eve', 'execa', 'expo', 'expressive-code', 'fast', 'fumadocs', 'gatsby', 'github-action', 'github-actions', 'glob', 'graphql-codegen', 'hardhat', 'husky', 'i18next-parser', 'jest', 'karma', 'knex', 'ladle', 'lefthook', 'lint-staged', 'linthtml', 'lit', 'lockfile-lint', 'lost-pixel', 'lunaria', 'markdownlint', 'mdx', 'mdxlint', 'metro', 'mocha', 'moonrepo', 'msw', 'nano-spawn', 'nano-staged', 'nest', 'netlify', 'next', 'next-intl', 'next-mdx', 'nitro', 'node', 'node-modules-inspector', 'nodemon', 'npm-package-json-lint', 'nuxt', 'nx', 'nyc', 'oclif', 'openapi-ts', 'orval', 'oxfmt', 'oxlint', 'panda-css', 'parcel', 'payload', 'pino', 'playwright', 'playwright-ct', 'playwright-test', 'plop', 'pm2', 'pnpm', 'postcss', 'preconstruct', 'prettier', 'prisma', 'qwik', 'raycast', 'react-cosmos', 'react-email', 'react-native', 'react-router', 'relay', 'release-it', 'remark', 'remix', 'rolldown', 'rollup', 'rsbuild', 'rslib', 'rspack', 'rstest', 'sanity', 'semantic-release', 'sentry', 'serverless-framework', 'simple-git-hooks', 'size-limit', 'sst', 'starlight', 'stencil', 'storybook', 'stryker', 'stylelint', 'svelte', 'sveltejs-package', 'sveltekit', 'svgo', 'svgr', 'swc', 'syncpack', 'tailwind', 'tanstack-router', 'taskfile', 'travis', 'ts-node', 'tsdown', 'tsup', 'tsx', 'typedoc', 'typescript', 'unbuild', 'unocss', 'vercel', 'vercel-og', 'vike', 'vite', 'vitepress', 'vitest', 'vue', 'webdriver-io', 'webpack', 'wireit', 'wrangler', 'wxt', 'xo', 'yarn', 'yorkie', 'zx'];
1
+ export type PluginName = 'angular' | 'astro' | 'astro-db' | 'astro-markdoc' | 'astro-og-canvas' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'catalyst' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'electron-vite' | 'eleventy' | 'esbuild' | 'eslint' | 'eve' | 'execa' | 'expo' | 'expressive-code' | 'fast' | 'fumadocs' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'hardhat' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'knex' | 'ladle' | 'laravel-vite-plugin' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lit' | 'lockfile-lint' | 'lost-pixel' | 'lunaria' | 'markdownlint' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-spawn' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'next-intl' | 'next-mdx' | 'nitro' | 'node' | 'node-modules-inspector' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nuxtjs-i18n' | 'nx' | 'nyc' | 'oclif' | 'openapi-ts' | 'orval' | 'oxfmt' | 'oxlint' | 'panda-css' | 'parcel' | 'payload' | 'pino' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'pm2' | 'pnpm' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'quasar' | 'qwik' | 'raycast' | 'react-cosmos' | 'react-email' | 'react-native' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rolldown' | 'rollup' | 'rsbuild' | 'rslib' | 'rspack' | 'rstest' | 'sanity' | 'semantic-release' | 'sentry' | 'serverless-framework' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'stencil' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'sveltejs-package' | 'sveltekit' | 'svgo' | 'svgr' | 'swc' | 'syncpack' | 'tailwind' | 'tanstack-router' | 'taskfile' | 'tauri' | 'travis' | 'ts-node' | 'tsdown' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'unplugin-auto-import' | 'unplugin-icons' | 'unplugin-vue-components' | 'unplugin-vue-i18n' | 'unplugin-vue-markdown' | 'unplugin-vue-router' | 'vercel' | 'vercel-og' | 'vike' | 'vite' | 'vite-plugin-pages' | 'vite-plugin-pwa' | 'vite-plugin-vue-layouts-next' | 'vite-plus' | 'vite-pwa-assets-generator' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'wxt' | 'xo' | 'yarn' | 'yorkie' | 'zx';
2
+ export declare const pluginNames: readonly ['angular', 'astro', 'astro-db', 'astro-markdoc', 'astro-og-canvas', 'ava', 'babel', 'biome', 'bumpp', 'bun', 'c8', 'capacitor', 'catalyst', 'changelogen', 'changelogithub', 'changesets', 'commitizen', 'commitlint', 'convex', 'create-typescript-app', 'cspell', 'cucumber', 'cypress', 'danger', 'dependency-cruiser', 'docusaurus', 'dotenv', 'drizzle', 'electron-vite', 'eleventy', 'esbuild', 'eslint', 'eve', 'execa', 'expo', 'expressive-code', 'fast', 'fumadocs', 'gatsby', 'github-action', 'github-actions', 'glob', 'graphql-codegen', 'hardhat', 'husky', 'i18next-parser', 'jest', 'karma', 'knex', 'ladle', 'laravel-vite-plugin', 'lefthook', 'lint-staged', 'linthtml', 'lit', 'lockfile-lint', 'lost-pixel', 'lunaria', 'markdownlint', 'mdx', 'mdxlint', 'metro', 'mocha', 'moonrepo', 'msw', 'nano-spawn', 'nano-staged', 'nest', 'netlify', 'next', 'next-intl', 'next-mdx', 'nitro', 'node', 'node-modules-inspector', 'nodemon', 'npm-package-json-lint', 'nuxt', 'nuxtjs-i18n', 'nx', 'nyc', 'oclif', 'openapi-ts', 'orval', 'oxfmt', 'oxlint', 'panda-css', 'parcel', 'payload', 'pino', 'playwright', 'playwright-ct', 'playwright-test', 'plop', 'pm2', 'pnpm', 'postcss', 'preconstruct', 'prettier', 'prisma', 'quasar', 'qwik', 'raycast', 'react-cosmos', 'react-email', 'react-native', 'react-router', 'relay', 'release-it', 'remark', 'remix', 'rolldown', 'rollup', 'rsbuild', 'rslib', 'rspack', 'rstest', 'sanity', 'semantic-release', 'sentry', 'serverless-framework', 'simple-git-hooks', 'size-limit', 'sst', 'starlight', 'stencil', 'storybook', 'stryker', 'stylelint', 'svelte', 'sveltejs-package', 'sveltekit', 'svgo', 'svgr', 'swc', 'syncpack', 'tailwind', 'tanstack-router', 'taskfile', 'tauri', 'travis', 'ts-node', 'tsdown', 'tsup', 'tsx', 'typedoc', 'typescript', 'unbuild', 'unocss', 'unplugin-auto-import', 'unplugin-icons', 'unplugin-vue-components', 'unplugin-vue-i18n', 'unplugin-vue-markdown', 'unplugin-vue-router', 'vercel', 'vercel-og', 'vike', 'vite', 'vite-plugin-pages', 'vite-plugin-pwa', 'vite-plugin-vue-layouts-next', 'vite-plus', 'vite-pwa-assets-generator', 'vitepress', 'vitest', 'vue', 'webdriver-io', 'webpack', 'wireit', 'wrangler', 'wxt', 'xo', 'yarn', 'yorkie', 'zx'];
@@ -27,7 +27,9 @@ export const pluginNames = [
27
27
  'docusaurus',
28
28
  'dotenv',
29
29
  'drizzle',
30
+ 'electron-vite',
30
31
  'eleventy',
32
+ 'esbuild',
31
33
  'eslint',
32
34
  'eve',
33
35
  'execa',
@@ -47,6 +49,7 @@ export const pluginNames = [
47
49
  'karma',
48
50
  'knex',
49
51
  'ladle',
52
+ 'laravel-vite-plugin',
50
53
  'lefthook',
51
54
  'lint-staged',
52
55
  'linthtml',
@@ -74,6 +77,7 @@ export const pluginNames = [
74
77
  'nodemon',
75
78
  'npm-package-json-lint',
76
79
  'nuxt',
80
+ 'nuxtjs-i18n',
77
81
  'nx',
78
82
  'nyc',
79
83
  'oclif',
@@ -95,6 +99,7 @@ export const pluginNames = [
95
99
  'preconstruct',
96
100
  'prettier',
97
101
  'prisma',
102
+ 'quasar',
98
103
  'qwik',
99
104
  'raycast',
100
105
  'react-cosmos',
@@ -133,6 +138,7 @@ export const pluginNames = [
133
138
  'tailwind',
134
139
  'tanstack-router',
135
140
  'taskfile',
141
+ 'tauri',
136
142
  'travis',
137
143
  'ts-node',
138
144
  'tsdown',
@@ -142,10 +148,21 @@ export const pluginNames = [
142
148
  'typescript',
143
149
  'unbuild',
144
150
  'unocss',
151
+ 'unplugin-auto-import',
152
+ 'unplugin-icons',
153
+ 'unplugin-vue-components',
154
+ 'unplugin-vue-i18n',
155
+ 'unplugin-vue-markdown',
156
+ 'unplugin-vue-router',
145
157
  'vercel',
146
158
  'vercel-og',
147
159
  'vike',
148
160
  'vite',
161
+ 'vite-plugin-pages',
162
+ 'vite-plugin-pwa',
163
+ 'vite-plugin-vue-layouts-next',
164
+ 'vite-plus',
165
+ 'vite-pwa-assets-generator',
149
166
  'vitepress',
150
167
  'vitest',
151
168
  'vue',
@@ -24,7 +24,13 @@ type Plugins = PluginConfig<PluginMap>;
24
24
  export type Scripts = Record<string, string>;
25
25
  export type Catalog = Record<string, string>;
26
26
  export type Catalogs = Record<string, Catalog>;
27
- export type Dependencies = Record<string, string>;
27
+ type Dependencies = Record<string, string>;
28
+ export type PackageExtensions = Record<string, {
29
+ peerDependencies?: Dependencies;
30
+ peerDependenciesMeta?: Record<string, {
31
+ optional?: boolean;
32
+ }>;
33
+ }>;
28
34
  export type PackageJson = {
29
35
  name?: string;
30
36
  main?: string;
@@ -57,9 +63,7 @@ export type PackageJson = {
57
63
  engines?: Record<string, string>;
58
64
  pnpm?: {
59
65
  overrides?: Dependencies;
60
- packageExtensions?: Record<string, {
61
- peerDependencies?: Dependencies;
62
- }>;
66
+ packageExtensions?: PackageExtensions;
63
67
  };
64
68
  knip?: WorkspaceConfiguration;
65
69
  } & Plugins;
@@ -1,13 +1,18 @@
1
- import type { ParseResult, Program } from 'oxc-parser';
1
+ import type { CallExpression, ParseResult, Program } from 'oxc-parser';
2
2
  export declare const getPropertyKey: (prop: any) => string | undefined;
3
3
  export declare const getImportMap: (program: Program) => Map<string, string>;
4
- export declare const getDefaultImportName: (importMap: Map<string, string>, specifier: string) => string | undefined;
5
4
  export declare const getPropertyValues: (node: any, propertyName: string) => Set<string>;
6
5
  export declare const collectPropertyValues: (program: Program, propertyName: string) => Set<string>;
6
+ export declare const getFirstPropertyValue: (node: any, propertyName: string) => string | undefined;
7
+ export declare const collectFirstPropertyValue: (program: Program, propertyName: string) => string | undefined;
7
8
  export declare const resolveObjectArg: (arg: any) => any | undefined;
9
+ type ModuleMatch = string | string[] | ((path: string) => boolean);
10
+ export declare const findImportedCalls: (program: Program, module: ModuleMatch) => CallExpression[];
11
+ export declare const findImportedCallArg: (program: Program, module: ModuleMatch) => any | undefined;
8
12
  export declare const findCallArg: (program: Program, fnName: string) => any | undefined;
9
13
  export declare const findProperty: (node: any, name: string) => any | undefined;
10
14
  export declare const getStringValues: (node: any) => Set<string>;
11
15
  export declare const isExternalReExportsOnly: (result: ParseResult) => boolean;
12
16
  export declare const hasImportSpecifier: (program: Program, modulePath: string, specifierName: string) => boolean;
13
17
  export declare const collectStringLiterals: (sourceText: string, filePath: string) => Set<string>;
18
+ export {};
@@ -34,12 +34,6 @@ export const getImportMap = (program) => {
34
34
  }
35
35
  return importMap;
36
36
  };
37
- export const getDefaultImportName = (importMap, specifier) => {
38
- for (const [name, path] of importMap) {
39
- if (path === specifier)
40
- return name;
41
- }
42
- };
43
37
  const addStringValue = (values, node) => {
44
38
  const value = getStringValue(node);
45
39
  if (value != null)
@@ -52,8 +46,7 @@ export const getPropertyValues = (node, propertyName) => {
52
46
  for (const prop of node.properties ?? []) {
53
47
  if (prop.type !== 'Property')
54
48
  continue;
55
- const name = prop.key?.name ?? prop.key?.value;
56
- if (name !== propertyName)
49
+ if (getPropertyKey(prop) !== propertyName)
57
50
  continue;
58
51
  const init = prop.value;
59
52
  if (init?.type === 'ArrayExpression') {
@@ -83,6 +76,12 @@ export const collectPropertyValues = (program, propertyName) => {
83
76
  visitor.visit(program);
84
77
  return values;
85
78
  };
79
+ const firstValue = (values) => {
80
+ for (const value of values)
81
+ return value;
82
+ };
83
+ export const getFirstPropertyValue = (node, propertyName) => firstValue(getPropertyValues(node, propertyName));
84
+ export const collectFirstPropertyValue = (program, propertyName) => firstValue(collectPropertyValues(program, propertyName));
86
85
  const unwrapParens = (node) => node?.type === 'ParenthesizedExpression' ? unwrapParens(node.expression) : node;
87
86
  export const resolveObjectArg = (arg) => {
88
87
  const node = unwrapParens(arg);
@@ -105,6 +104,35 @@ export const resolveObjectArg = (arg) => {
105
104
  }
106
105
  }
107
106
  };
107
+ export const findImportedCalls = (program, module) => {
108
+ const isMatch = typeof module === 'function'
109
+ ? module
110
+ : Array.isArray(module)
111
+ ? (path) => module.includes(path)
112
+ : (path) => path === module;
113
+ const names = new Set();
114
+ for (const [name, path] of getImportMap(program))
115
+ if (isMatch(path))
116
+ names.add(name);
117
+ const calls = [];
118
+ if (names.size === 0)
119
+ return calls;
120
+ const visitor = new Visitor({
121
+ CallExpression(node) {
122
+ if (node.callee?.type === 'Identifier' && names.has(node.callee.name))
123
+ calls.push(node);
124
+ },
125
+ });
126
+ visitor.visit(program);
127
+ return calls;
128
+ };
129
+ export const findImportedCallArg = (program, module) => {
130
+ for (const call of findImportedCalls(program, module)) {
131
+ const arg = resolveObjectArg(call.arguments?.[0]);
132
+ if (arg)
133
+ return arg;
134
+ }
135
+ };
108
136
  export const findCallArg = (program, fnName) => {
109
137
  let result;
110
138
  const visitor = new Visitor({
@@ -3,6 +3,7 @@ import type { GetImportsAndExportsOptions, IgnoreExportsUsedInFile } from '../ty
3
3
  import type { SymbolType } from '../types/issues.ts';
4
4
  import type { ExportMember } from '../types/module-graph.ts';
5
5
  export declare const _parseFile: (filePath: string, sourceText: string) => import("oxc-parser").ParseResult;
6
+ export declare const isAmbientDeclarationFile: (filePath: string, sourceText: string) => boolean;
6
7
  export type ResolveModule = (specifier: string, containingFile: string) => ResolvedModule | undefined;
7
8
  export interface ResolvedModule {
8
9
  resolvedFileName: string;
@@ -13,6 +13,14 @@ const parseFile = (filePath, sourceText) => {
13
13
  return parseSync(parseFileName, sourceText, defaultParseOptions);
14
14
  };
15
15
  export const _parseFile = timerify(parseFile);
16
+ export const isAmbientDeclarationFile = (filePath, sourceText) => {
17
+ try {
18
+ return _parseFile(filePath, sourceText).module.staticExports.length === 0;
19
+ }
20
+ catch {
21
+ return false;
22
+ }
23
+ };
16
24
  export const buildLineStarts = (sourceText) => {
17
25
  const starts = [0];
18
26
  let index = sourceText.indexOf('\n');
@@ -1,4 +1,4 @@
1
- export declare const helpText = "\u2702\uFE0F Find unused dependencies, exports and files in your JavaScript and TypeScript projects\n\nUsage: knip [options]\n\nOptions:\n -h, --help Print this help text\n -V, --version Print version\n -n, --no-progress Don't show dynamic progress updates (automatically enabled in CI environments)\n -c, --config [file] Configuration file path\n (default: [.]knip.json[c], knip.(js|ts), knip.config.(js|ts) or package.json#knip)\n --use-tsconfig-files Use tsconfig.json to define project files (override `project` patterns)\n -t, --tsConfig [file] TypeScript configuration path (default: tsconfig.json)\n\nMode\n --cache Enable caching\n --cache-location Change cache location (default: node_modules/.cache/knip)\n --include-entry-exports Include entry files when reporting unused exports\n --no-gitignore Don't respect .gitignore\n -p, --production Analyze only production source files (e.g. no test files, devDependencies)\n -s, --strict Consider only direct dependencies of workspace (not devDependencies, not other workspaces)\n -w, --watch Watch mode\n\nScope\n -W, --workspace [filter] Filter workspaces by name, directory, or glob (can be repeated)\n -D, --directory [dir] Run process from a different directory (default: cwd)\n --include Report only provided issue type(s), can be comma-separated or repeated (1)\n --exclude Exclude provided issue type(s) from report, can be comma-separated or repeated (1)\n --dependencies Shortcut for --include dependencies,unlisted,binaries,unresolved,catalog\n --exports Shortcut for --include exports,nsExports,types,nsTypes,enumMembers,namespaceMembers,duplicates\n --files Shortcut for --include files\n --cycles Shortcut for --include cycles (circular dependencies)\n --tags Include or exclude tagged exports\n\nFix\n -f, --fix Fix issues (modifies files in your repo)\n --fix-type Fix only issues of type, can be comma-separated or repeated (2)\n --allow-remove-files Allow Knip to remove files (with --fix)\n -F, --format Format modified files after --fix using the local formatter\n\nOutput\n --preprocessor Preprocess the results before providing it to the reporter(s), can be repeated\n --preprocessor-options Pass extra options to the preprocessor (as JSON string, see --reporter-options example)\n --reporter Select reporter (default: symbols), can be repeated (3)\n --reporter-options Pass extra options to the reporter (as JSON string, see example)\n --no-config-hints Suppress configuration hints\n --no-tag-hints Suppress tag hints\n --treat-config-hints-as-errors Exit with non-zero code (1) if there are any configuration hints\n --treat-tag-hints-as-errors Exit with non-zero code (1) if there are any tag hints\n --max-issues Maximum number of total issues before non-zero exit code (default: 0)\n --max-show-issues Maximum number of issues to display per type\n --no-exit-code Always exit with code zero (0)\n\nTroubleshooting\n -d, --debug Show debug output\n --memory Measure memory usage and display data table\n --memory-realtime Log memory usage in realtime\n --performance Measure count and running time of key functions and display stats table\n --performance-fn [name] Measure only function [name]\n -u, --duration Print total running time (zero overhead, no instrumentation)\n --trace Show trace output\n --trace-dependency [name] Show files that import the named dependency\n --trace-export [name] Show trace output for named export(s)\n --trace-file [file] Show trace output for exports in file\n\n(1) Issue types: files, dependencies, unlisted, unresolved, exports, nsExports, types, nsTypes, enumMembers, namespaceMembers, duplicates, catalog, cycles\n(2) Fixable issue types: dependencies, exports, types, files, catalog\n(3) Built-in reporters: symbols (default), compact, codeowners, cycles, json, codeclimate, markdown, disclosure, github-actions\n\nExamples:\n\n$ knip\n$ knip --production\n$ knip --workspace packages/client --include files,dependencies\n$ knip --workspace @myorg/* --workspace '!@myorg/legacy'\n$ knip --workspace './apps/*' --workspace '@shared/utils'\n$ knip -c ./config/knip.json --reporter compact\n$ knip --reporter codeowners --reporter-options '{\"path\":\".github/CODEOWNERS\"}'\n$ knip --tags=-lintignore\n\nWebsite: https://knip.dev";
1
+ export declare const helpText = "\u2702\uFE0F Find unused dependencies, exports and files in your JavaScript and TypeScript projects\n\nUsage: knip [options]\n\nOptions:\n -h, --help Print this help text\n -V, --version Print version\n -n, --no-progress Don't show dynamic progress updates (automatically enabled in CI environments)\n -c, --config [file] Configuration file path\n (default: [.]knip.json[c], knip.(js|ts), knip.config.(js|ts) or package.json#knip)\n --use-tsconfig-files Use tsconfig.json to define project files (override `project` patterns)\n -t, --tsConfig [file] TypeScript configuration path (default: tsconfig.json)\n\nMode\n --cache Enable caching\n --cache-location Change cache location (default: node_modules/.cache/knip)\n --include-entry-exports Include entry files when reporting unused exports\n --no-gitignore Don't respect .gitignore\n -p, --production Analyze only production source files (e.g. no test files, devDependencies)\n -s, --strict Consider only direct dependencies of workspace (not devDependencies, not other workspaces)\n -w, --watch Watch mode\n\nScope\n -W, --workspace [filter] Filter workspaces by name, directory, or glob (can be repeated)\n -D, --directory [dir] Run process from a different directory (default: cwd)\n --include Include provided issue type(s), can be comma-separated or repeated (1)\n --exclude Exclude provided issue type(s) from report, can be comma-separated or repeated (1)\n --dependencies Shortcut for --include dependencies,unlisted,binaries,unresolved,catalog\n --exports Shortcut for --include exports,nsExports,types,nsTypes,enumMembers,namespaceMembers,duplicates\n --files Shortcut for --include files\n --cycles Shortcut for --include cycles (circular dependencies)\n --tags Include or exclude tagged exports\n\nFix\n -f, --fix Fix issues (modifies files in your repo)\n --fix-type Fix only issues of type, can be comma-separated or repeated (2)\n --allow-remove-files Allow Knip to remove files (with --fix)\n -F, --format Format modified files after --fix using the local formatter\n\nOutput\n --preprocessor Preprocess the results before providing it to the reporter(s), can be repeated\n --preprocessor-options Pass extra options to the preprocessor (as JSON string, see --reporter-options example)\n --reporter Select reporter (default: symbols), can be repeated (3)\n --reporter-options Pass extra options to the reporter (as JSON string, see example)\n --no-config-hints Suppress configuration hints\n --no-tag-hints Suppress tag hints\n --treat-config-hints-as-errors Exit with non-zero code (1) if there are any configuration hints\n --treat-tag-hints-as-errors Exit with non-zero code (1) if there are any tag hints\n --max-issues Maximum number of total issues before non-zero exit code (default: 0)\n --max-show-issues Maximum number of issues to display per type\n --no-exit-code Always exit with code zero (0)\n\nTroubleshooting\n -d, --debug Show debug output\n --memory Measure memory usage and display data table\n --memory-realtime Log memory usage in realtime\n --performance Measure count and running time of key functions and display stats table\n --performance-fn [name] Measure only function [name]\n -u, --duration Print total running time (zero overhead, no instrumentation)\n --trace Show trace output\n --trace-dependency [name] Show files that import the named dependency\n --trace-export [name] Show trace output for named export(s)\n --trace-file [file] Show trace output for exports in file\n\n(1) Issue types: files, dependencies, unlisted, unresolved, exports, nsExports, types, nsTypes, enumMembers, namespaceMembers, duplicates, catalog, cycles\n(2) Fixable issue types: dependencies, exports, types, files, catalog\n(3) Built-in reporters: symbols (default), compact, codeowners, cycles, json, codeclimate, markdown, disclosure, github-actions\n\nExamples:\n\n$ knip\n$ knip --production\n$ knip --workspace packages/client --include files,dependencies\n$ knip --workspace @myorg/* --workspace '!@myorg/legacy'\n$ knip --workspace './apps/*' --workspace '@shared/utils'\n$ knip -c ./config/knip.json --reporter compact\n$ knip --reporter codeowners --reporter-options '{\"path\":\".github/CODEOWNERS\"}'\n$ knip --tags=-lintignore\n\nWebsite: https://knip.dev";
2
2
  export type ParsedCLIArgs = ReturnType<typeof parseCLIArgs>;
3
3
  export default function parseCLIArgs(): {
4
4
  cache?: boolean | undefined;
@@ -24,7 +24,7 @@ Mode
24
24
  Scope
25
25
  -W, --workspace [filter] Filter workspaces by name, directory, or glob (can be repeated)
26
26
  -D, --directory [dir] Run process from a different directory (default: cwd)
27
- --include Report only provided issue type(s), can be comma-separated or repeated (1)
27
+ --include Include provided issue type(s), can be comma-separated or repeated (1)
28
28
  --exclude Exclude provided issue type(s) from report, can be comma-separated or repeated (1)
29
29
  --dependencies Shortcut for --include dependencies,unlisted,binaries,unresolved,catalog
30
30
  --exports Shortcut for --include exports,nsExports,types,nsTypes,enumMembers,namespaceMembers,duplicates