knip 6.25.0 → 6.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ConfigurationChief.d.ts +108 -0
- package/dist/DependencyDeputy.d.ts +1 -1
- package/dist/DependencyDeputy.js +2 -2
- package/dist/ProjectPrincipal.d.ts +3 -3
- package/dist/ProjectPrincipal.js +4 -4
- package/dist/binaries/fallback.js +5 -1
- package/dist/binaries/resolvers/bun.js +13 -5
- package/dist/binaries/resolvers/npm.js +4 -2
- package/dist/binaries/resolvers/pnpm.js +11 -1
- package/dist/binaries/resolvers/yarn.js +10 -4
- package/dist/binaries/util.d.ts +4 -0
- package/dist/binaries/util.js +14 -0
- package/dist/compilers/index.d.ts +180 -0
- package/dist/compilers/less.js +1 -1
- package/dist/compilers/scss.js +1 -1
- package/dist/compilers/stylus.js +1 -1
- package/dist/constants.js +19 -0
- package/dist/graph/analyze.js +1 -1
- package/dist/graph/build.js +24 -7
- package/dist/plugins/_vue/auto-import.d.ts +12 -0
- package/dist/plugins/_vue/auto-import.js +332 -0
- package/dist/plugins/_vue/types.d.ts +45 -0
- package/dist/plugins/_vue/types.js +1 -0
- package/dist/plugins/astro/index.js +2 -37
- package/dist/plugins/astro/resolveFromAST.d.ts +4 -4
- package/dist/plugins/astro/resolveFromAST.js +34 -7
- package/dist/plugins/electron-vite/index.d.ts +3 -0
- package/dist/plugins/electron-vite/index.js +51 -0
- package/dist/plugins/electron-vite/types.d.ts +23 -0
- package/dist/plugins/electron-vite/types.js +1 -0
- package/dist/plugins/esbuild/index.d.ts +3 -0
- package/dist/plugins/esbuild/index.js +17 -0
- package/dist/plugins/eslint/resolveFromAST.js +18 -21
- package/dist/plugins/index.d.ts +18 -0
- package/dist/plugins/index.js +36 -0
- package/dist/plugins/laravel-vite-plugin/index.d.ts +3 -0
- package/dist/plugins/laravel-vite-plugin/index.js +14 -0
- package/dist/plugins/laravel-vite-plugin/resolveFromAST.d.ts +2 -0
- package/dist/plugins/laravel-vite-plugin/resolveFromAST.js +27 -0
- package/dist/plugins/next/index.js +2 -2
- package/dist/plugins/next-mdx/index.js +2 -8
- package/dist/plugins/next-mdx/resolveFromAST.d.ts +3 -2
- package/dist/plugins/next-mdx/resolveFromAST.js +17 -21
- package/dist/plugins/nuxt/index.js +5 -68
- package/dist/plugins/nuxt/types.d.ts +0 -34
- package/dist/plugins/nuxtjs-i18n/index.d.ts +3 -0
- package/dist/plugins/nuxtjs-i18n/index.js +12 -0
- package/dist/plugins/oclif/index.js +10 -5
- package/dist/plugins/orval/index.js +1 -3
- package/dist/plugins/orval/resolveFromAST.d.ts +2 -2
- package/dist/plugins/orval/resolveFromAST.js +4 -7
- package/dist/plugins/oxlint/index.js +23 -2
- package/dist/plugins/pnpm/index.js +2 -1
- package/dist/plugins/pnpm/types.d.ts +2 -4
- package/dist/plugins/quasar/index.d.ts +3 -0
- package/dist/plugins/quasar/index.js +15 -0
- package/dist/plugins/quasar/resolveFromAST.d.ts +3 -0
- package/dist/plugins/quasar/resolveFromAST.js +63 -0
- package/dist/plugins/qwik/index.js +1 -25
- package/dist/plugins/qwik/resolveFromAST.d.ts +5 -3
- package/dist/plugins/qwik/resolveFromAST.js +28 -9
- package/dist/plugins/react-email/index.js +1 -0
- package/dist/plugins/rolldown/index.js +2 -5
- package/dist/plugins/rollup/index.js +2 -5
- package/dist/plugins/rslib/index.js +2 -5
- package/dist/plugins/sst/index.js +1 -5
- package/dist/plugins/sst/resolveFromAST.d.ts +1 -1
- package/dist/plugins/sst/resolveFromAST.js +1 -1
- package/dist/plugins/starlight/index.js +1 -19
- package/dist/plugins/starlight/resolveFromAST.d.ts +2 -2
- package/dist/plugins/starlight/resolveFromAST.js +12 -8
- package/dist/plugins/stencil/index.js +2 -37
- package/dist/plugins/stencil/resolveFromAST.d.ts +3 -0
- package/dist/plugins/stencil/resolveFromAST.js +36 -0
- package/dist/plugins/storybook/index.js +3 -0
- package/dist/plugins/sveltekit/index.js +1 -48
- package/dist/plugins/sveltekit/resolveFromAST.d.ts +2 -0
- package/dist/plugins/sveltekit/resolveFromAST.js +45 -0
- package/dist/plugins/tailwind/compiler.js +9 -4
- package/dist/plugins/tanstack-router/index.js +3 -1
- package/dist/plugins/tauri/index.d.ts +3 -0
- package/dist/plugins/tauri/index.js +42 -0
- package/dist/plugins/tauri/types.d.ts +16 -0
- package/dist/plugins/tauri/types.js +1 -0
- package/dist/plugins/temporal/index.d.ts +3 -0
- package/dist/plugins/temporal/index.js +12 -0
- package/dist/plugins/tsdown/index.js +16 -7
- package/dist/plugins/tsdown/types.d.ts +4 -1
- package/dist/plugins/tsup/index.js +2 -5
- package/dist/plugins/unplugin-auto-import/index.d.ts +3 -0
- package/dist/plugins/unplugin-auto-import/index.js +18 -0
- package/dist/plugins/unplugin-icons/index.d.ts +3 -0
- package/dist/plugins/unplugin-icons/index.js +17 -0
- package/dist/plugins/unplugin-vue-components/index.d.ts +3 -0
- package/dist/plugins/unplugin-vue-components/index.js +16 -0
- package/dist/plugins/unplugin-vue-i18n/index.d.ts +3 -0
- package/dist/plugins/unplugin-vue-i18n/index.js +10 -0
- package/dist/plugins/unplugin-vue-markdown/index.d.ts +3 -0
- package/dist/plugins/unplugin-vue-markdown/index.js +16 -0
- package/dist/plugins/unplugin-vue-router/index.d.ts +3 -0
- package/dist/plugins/unplugin-vue-router/index.js +14 -0
- package/dist/plugins/vite/helpers.d.ts +2 -0
- package/dist/plugins/vite/helpers.js +46 -31
- package/dist/plugins/vite/index.js +1 -1
- package/dist/plugins/vite-plugin-pages/index.d.ts +3 -0
- package/dist/plugins/vite-plugin-pages/index.js +26 -0
- package/dist/plugins/vite-plugin-pwa/index.d.ts +3 -0
- package/dist/plugins/vite-plugin-pwa/index.js +17 -0
- package/dist/plugins/vite-plugin-pwa/resolveFromAST.d.ts +4 -0
- package/dist/plugins/vite-plugin-pwa/resolveFromAST.js +37 -0
- package/dist/plugins/vite-plugin-vue-layouts-next/index.d.ts +3 -0
- package/dist/plugins/vite-plugin-vue-layouts-next/index.js +23 -0
- package/dist/plugins/vite-plus/index.d.ts +3 -0
- package/dist/plugins/vite-plus/index.js +14 -0
- package/dist/plugins/vite-plus/resolveFromAST.d.ts +2 -0
- package/dist/plugins/vite-plus/resolveFromAST.js +37 -0
- package/dist/plugins/vite-pwa-assets-generator/index.d.ts +3 -0
- package/dist/plugins/vite-pwa-assets-generator/index.js +12 -0
- package/dist/plugins/vitepress/index.js +5 -1
- package/dist/plugins/vitest/index.js +19 -0
- package/dist/plugins/vitest/types.d.ts +8 -0
- package/dist/plugins/vue/index.js +5 -3
- package/dist/plugins/yarn/index.js +2 -1
- package/dist/plugins/yarn/types.d.ts +2 -4
- package/dist/run.js +3 -3
- package/dist/schema/configuration.d.ts +270 -0
- package/dist/schema/plugins.d.ts +90 -0
- package/dist/schema/plugins.js +18 -0
- package/dist/types/PluginNames.d.ts +2 -2
- package/dist/types/PluginNames.js +18 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/package-json.d.ts +8 -4
- package/dist/typescript/ast-helpers.d.ts +7 -2
- package/dist/typescript/ast-helpers.js +36 -8
- package/dist/typescript/ast-nodes.d.ts +2 -0
- package/dist/typescript/ast-nodes.js +8 -0
- package/dist/typescript/get-imports-and-exports.js +8 -5
- package/dist/typescript/resolve-module-names.d.ts +2 -2
- package/dist/typescript/resolve-module-names.js +97 -18
- package/dist/typescript/visitors/walk.d.ts +2 -1
- package/dist/typescript/visitors/walk.js +13 -2
- package/dist/util/cli-arguments.d.ts +1 -1
- package/dist/util/cli-arguments.js +1 -1
- package/dist/util/create-input-handler.js +8 -1
- package/dist/util/create-options.d.ts +180 -0
- package/dist/util/package-json.d.ts +7 -0
- package/dist/util/package-json.js +37 -0
- package/dist/util/resolve.d.ts +1 -0
- package/dist/util/resolve.js +5 -2
- package/dist/util/to-source-path.d.ts +4 -3
- package/dist/util/to-source-path.js +23 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schema.json +72 -0
- package/dist/plugins/next/resolveFromAST.d.ts +0 -2
- package/dist/plugins/next/resolveFromAST.js +0 -2
- package/dist/plugins/nuxt/helpers.d.ts +0 -15
- package/dist/plugins/nuxt/helpers.js +0 -133
- package/dist/plugins/rolldown/resolveFromAST.d.ts +0 -2
- package/dist/plugins/rolldown/resolveFromAST.js +0 -4
- package/dist/plugins/rollup/resolveFromAST.d.ts +0 -2
- package/dist/plugins/rollup/resolveFromAST.js +0 -4
- package/dist/plugins/rslib/resolveFromAST.d.ts +0 -2
- package/dist/plugins/rslib/resolveFromAST.js +0 -4
- package/dist/plugins/tsdown/resolveFromAST.d.ts +0 -2
- package/dist/plugins/tsdown/resolveFromAST.js +0 -4
- package/dist/plugins/tsup/resolveFromAST.d.ts +0 -2
- package/dist/plugins/tsup/resolveFromAST.js +0 -4
- package/dist/plugins/vue/compiler.d.ts +0 -3
- package/dist/plugins/vue/compiler.js +0 -10
package/dist/schema/plugins.d.ts
CHANGED
|
@@ -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,16 @@ 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>]>;
|
|
709
|
+
temporal: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
710
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
711
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
712
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
713
|
+
}, z.core.$strip>]>;
|
|
679
714
|
travis: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
680
715
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
681
716
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -721,6 +756,36 @@ export declare const pluginsSchema: z.ZodMiniObject<{
|
|
|
721
756
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
722
757
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
723
758
|
}, z.core.$strip>]>;
|
|
759
|
+
'unplugin-auto-import': 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-icons': 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-components': 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-i18n': 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-markdown': 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>]>;
|
|
784
|
+
'unplugin-vue-router': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
785
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
786
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
787
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
788
|
+
}, z.core.$strip>]>;
|
|
724
789
|
vercel: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
725
790
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
726
791
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -741,6 +806,31 @@ export declare const pluginsSchema: z.ZodMiniObject<{
|
|
|
741
806
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
742
807
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
743
808
|
}, z.core.$strip>]>;
|
|
809
|
+
'vite-plugin-pages': 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-pwa': 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-plugin-vue-layouts-next': 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-plus': 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>]>;
|
|
829
|
+
'vite-pwa-assets-generator': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
830
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
831
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
832
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
833
|
+
}, z.core.$strip>]>;
|
|
744
834
|
vitepress: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
745
835
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
746
836
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
package/dist/schema/plugins.js
CHANGED
|
@@ -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,8 @@ export const pluginsSchema = z.object({
|
|
|
144
149
|
tailwind: pluginSchema,
|
|
145
150
|
'tanstack-router': pluginSchema,
|
|
146
151
|
taskfile: pluginSchema,
|
|
152
|
+
tauri: pluginSchema,
|
|
153
|
+
temporal: pluginSchema,
|
|
147
154
|
travis: pluginSchema,
|
|
148
155
|
'ts-node': pluginSchema,
|
|
149
156
|
tsdown: pluginSchema,
|
|
@@ -153,10 +160,21 @@ export const pluginsSchema = z.object({
|
|
|
153
160
|
typescript: pluginSchema,
|
|
154
161
|
unbuild: pluginSchema,
|
|
155
162
|
unocss: pluginSchema,
|
|
163
|
+
'unplugin-auto-import': pluginSchema,
|
|
164
|
+
'unplugin-icons': pluginSchema,
|
|
165
|
+
'unplugin-vue-components': pluginSchema,
|
|
166
|
+
'unplugin-vue-i18n': pluginSchema,
|
|
167
|
+
'unplugin-vue-markdown': pluginSchema,
|
|
168
|
+
'unplugin-vue-router': pluginSchema,
|
|
156
169
|
vercel: pluginSchema,
|
|
157
170
|
'vercel-og': pluginSchema,
|
|
158
171
|
vike: pluginSchema,
|
|
159
172
|
vite: pluginSchema,
|
|
173
|
+
'vite-plugin-pages': pluginSchema,
|
|
174
|
+
'vite-plugin-pwa': pluginSchema,
|
|
175
|
+
'vite-plugin-vue-layouts-next': pluginSchema,
|
|
176
|
+
'vite-plus': pluginSchema,
|
|
177
|
+
'vite-pwa-assets-generator': pluginSchema,
|
|
160
178
|
vitepress: pluginSchema,
|
|
161
179
|
vitest: pluginSchema,
|
|
162
180
|
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' | 'temporal' | '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', 'temporal', '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,8 @@ export const pluginNames = [
|
|
|
133
138
|
'tailwind',
|
|
134
139
|
'tanstack-router',
|
|
135
140
|
'taskfile',
|
|
141
|
+
'tauri',
|
|
142
|
+
'temporal',
|
|
136
143
|
'travis',
|
|
137
144
|
'ts-node',
|
|
138
145
|
'tsdown',
|
|
@@ -142,10 +149,21 @@ export const pluginNames = [
|
|
|
142
149
|
'typescript',
|
|
143
150
|
'unbuild',
|
|
144
151
|
'unocss',
|
|
152
|
+
'unplugin-auto-import',
|
|
153
|
+
'unplugin-icons',
|
|
154
|
+
'unplugin-vue-components',
|
|
155
|
+
'unplugin-vue-i18n',
|
|
156
|
+
'unplugin-vue-markdown',
|
|
157
|
+
'unplugin-vue-router',
|
|
145
158
|
'vercel',
|
|
146
159
|
'vercel-og',
|
|
147
160
|
'vike',
|
|
148
161
|
'vite',
|
|
162
|
+
'vite-plugin-pages',
|
|
163
|
+
'vite-plugin-pwa',
|
|
164
|
+
'vite-plugin-vue-layouts-next',
|
|
165
|
+
'vite-plus',
|
|
166
|
+
'vite-pwa-assets-generator',
|
|
149
167
|
'vitepress',
|
|
150
168
|
'vitest',
|
|
151
169
|
'vue',
|
package/dist/types/config.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type { PackageJson } from './package-json.ts';
|
|
|
14
14
|
export interface GetInputsFromScriptsOptions extends BaseOptions {
|
|
15
15
|
knownBinsOnly?: boolean;
|
|
16
16
|
containingFilePath: string;
|
|
17
|
+
expandedScripts?: Set<string>;
|
|
17
18
|
}
|
|
18
19
|
export type GetInputsFromScripts<T = GetInputsFromScriptsOptions> = (npmScripts: string | string[] | Set<string>, options: T) => Input[];
|
|
19
20
|
export type GetInputsFromScriptsPartial = (npmScripts: string | string[] | Set<string>, options?: Partial<GetInputsFromScriptsOptions>) => Input[];
|
|
@@ -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
|
-
|
|
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?:
|
|
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
|
-
|
|
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,10 +3,12 @@ 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;
|
|
9
10
|
isExternalLibraryImport: boolean;
|
|
11
|
+
packageName?: string;
|
|
10
12
|
}
|
|
11
13
|
export declare const buildLineStarts: (sourceText: string) => number[];
|
|
12
14
|
export declare const getLineAndCol: (lineStarts: number[], pos: number) => {
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { isBuiltin } from 'node:module';
|
|
2
2
|
import { IMPORT_FLAGS, IMPORT_STAR, OPAQUE, PROTOCOL_VIRTUAL, SIDE_EFFECTS } from '../constants.js';
|
|
3
3
|
import { addNsValue, addValue, createImports } from '../util/module-graph.js';
|
|
4
|
-
import { getPackageNameFromFilePath, isStartsLikePackageName, sanitizeSpecifier } from '../util/modules.js';
|
|
4
|
+
import { getPackageNameFromFilePath, getPackageNameFromModuleSpecifier, isStartsLikePackageName, sanitizeSpecifier, } from '../util/modules.js';
|
|
5
5
|
import { timerify } from '../util/Performance.js';
|
|
6
6
|
import { dirname, isInNodeModules, resolve } from '../util/path.js';
|
|
7
7
|
import { shouldIgnore } from '../util/tag.js';
|
|
@@ -125,9 +125,12 @@ const getImportsAndExports = (filePath, sourceText, resolveModule, options, igno
|
|
|
125
125
|
if (module.isExternalLibraryImport) {
|
|
126
126
|
if (options.skipTypeOnly && modifiers & IMPORT_FLAGS.TYPE_ONLY)
|
|
127
127
|
return;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
let sanitizedSpecifier = sanitizeSpecifier(isInNodeModules(specifier) ? getPackageNameFromFilePath(specifier) : specifier);
|
|
129
|
+
if (module.packageName &&
|
|
130
|
+
isStartsLikePackageName(module.packageName) &&
|
|
131
|
+
getPackageNameFromModuleSpecifier(sanitizedSpecifier) !== module.packageName) {
|
|
132
|
+
sanitizedSpecifier = module.packageName;
|
|
133
|
+
}
|
|
131
134
|
if (!isStartsLikePackageName(sanitizedSpecifier))
|
|
132
135
|
return;
|
|
133
136
|
const ePos = specifierPos ?? pos;
|
|
@@ -277,7 +280,7 @@ const getImportsAndExports = (filePath, sourceText, resolveModule, options, igno
|
|
|
277
280
|
pluginCtx.addImportGlob = (patterns, opts) => importGlobs.push({ patterns, base: opts?.base, filter: opts?.filter });
|
|
278
281
|
pluginCtx.markExportRegistered = (name) => registeredCustomElements.add(name);
|
|
279
282
|
}
|
|
280
|
-
const localRefs = _walkAST(result.program, sourceText, filePath, {
|
|
283
|
+
const localRefs = _walkAST(result.program, sourceText, filePath, result.module.hasModuleSyntax, {
|
|
281
284
|
lineStarts,
|
|
282
285
|
skipExports,
|
|
283
286
|
options,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToSourceFilePath,
|
|
1
|
+
import type { ToSourceFilePath, WorkspacePackageTargetHandler } from '../util/to-source-path.ts';
|
|
2
2
|
import type { ResolveModule } from './ast-nodes.ts';
|
|
3
3
|
type ScopedPaths = Array<{
|
|
4
4
|
scope: string;
|
|
@@ -14,5 +14,5 @@ export declare function createGlobAliasResolver(scopedPaths: ScopedPaths | undef
|
|
|
14
14
|
export declare function createCustomModuleResolver(compilerOptions: {
|
|
15
15
|
scopedPaths?: ScopedPaths;
|
|
16
16
|
scopedRootDirs?: ScopedRootDirs;
|
|
17
|
-
}, customCompilerExtensions: string[], toSourceFilePath: ToSourceFilePath,
|
|
17
|
+
}, customCompilerExtensions: string[], toSourceFilePath: ToSourceFilePath, findWorkspacePackageTarget?: WorkspacePackageTargetHandler, tsConfigFile?: string): ResolveModule;
|
|
18
18
|
export {};
|