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
|
@@ -143,11 +143,21 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
143
143
|
entry?: string | string[] | undefined;
|
|
144
144
|
project?: string | string[] | undefined;
|
|
145
145
|
} | undefined;
|
|
146
|
+
'electron-vite'?: string | boolean | string[] | {
|
|
147
|
+
config?: string | string[] | undefined;
|
|
148
|
+
entry?: string | string[] | undefined;
|
|
149
|
+
project?: string | string[] | undefined;
|
|
150
|
+
} | undefined;
|
|
146
151
|
eleventy?: string | boolean | string[] | {
|
|
147
152
|
config?: string | string[] | undefined;
|
|
148
153
|
entry?: string | string[] | undefined;
|
|
149
154
|
project?: string | string[] | undefined;
|
|
150
155
|
} | undefined;
|
|
156
|
+
esbuild?: string | boolean | string[] | {
|
|
157
|
+
config?: string | string[] | undefined;
|
|
158
|
+
entry?: string | string[] | undefined;
|
|
159
|
+
project?: string | string[] | undefined;
|
|
160
|
+
} | undefined;
|
|
151
161
|
eslint?: string | boolean | string[] | {
|
|
152
162
|
config?: string | string[] | undefined;
|
|
153
163
|
entry?: string | string[] | undefined;
|
|
@@ -243,6 +253,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
243
253
|
entry?: string | string[] | undefined;
|
|
244
254
|
project?: string | string[] | undefined;
|
|
245
255
|
} | undefined;
|
|
256
|
+
'laravel-vite-plugin'?: string | boolean | string[] | {
|
|
257
|
+
config?: string | string[] | undefined;
|
|
258
|
+
entry?: string | string[] | undefined;
|
|
259
|
+
project?: string | string[] | undefined;
|
|
260
|
+
} | undefined;
|
|
246
261
|
lefthook?: string | boolean | string[] | {
|
|
247
262
|
config?: string | string[] | undefined;
|
|
248
263
|
entry?: string | string[] | undefined;
|
|
@@ -378,6 +393,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
378
393
|
entry?: string | string[] | undefined;
|
|
379
394
|
project?: string | string[] | undefined;
|
|
380
395
|
} | undefined;
|
|
396
|
+
'nuxtjs-i18n'?: string | boolean | string[] | {
|
|
397
|
+
config?: string | string[] | undefined;
|
|
398
|
+
entry?: string | string[] | undefined;
|
|
399
|
+
project?: string | string[] | undefined;
|
|
400
|
+
} | undefined;
|
|
381
401
|
nx?: string | boolean | string[] | {
|
|
382
402
|
config?: string | string[] | undefined;
|
|
383
403
|
entry?: string | string[] | undefined;
|
|
@@ -483,6 +503,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
483
503
|
entry?: string | string[] | undefined;
|
|
484
504
|
project?: string | string[] | undefined;
|
|
485
505
|
} | undefined;
|
|
506
|
+
quasar?: string | boolean | string[] | {
|
|
507
|
+
config?: string | string[] | undefined;
|
|
508
|
+
entry?: string | string[] | undefined;
|
|
509
|
+
project?: string | string[] | undefined;
|
|
510
|
+
} | undefined;
|
|
486
511
|
qwik?: string | boolean | string[] | {
|
|
487
512
|
config?: string | string[] | undefined;
|
|
488
513
|
entry?: string | string[] | undefined;
|
|
@@ -673,6 +698,16 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
673
698
|
entry?: string | string[] | undefined;
|
|
674
699
|
project?: string | string[] | undefined;
|
|
675
700
|
} | undefined;
|
|
701
|
+
tauri?: string | boolean | string[] | {
|
|
702
|
+
config?: string | string[] | undefined;
|
|
703
|
+
entry?: string | string[] | undefined;
|
|
704
|
+
project?: string | string[] | undefined;
|
|
705
|
+
} | undefined;
|
|
706
|
+
temporal?: string | boolean | string[] | {
|
|
707
|
+
config?: string | string[] | undefined;
|
|
708
|
+
entry?: string | string[] | undefined;
|
|
709
|
+
project?: string | string[] | undefined;
|
|
710
|
+
} | undefined;
|
|
676
711
|
travis?: string | boolean | string[] | {
|
|
677
712
|
config?: string | string[] | undefined;
|
|
678
713
|
entry?: string | string[] | undefined;
|
|
@@ -718,6 +753,36 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
718
753
|
entry?: string | string[] | undefined;
|
|
719
754
|
project?: string | string[] | undefined;
|
|
720
755
|
} | undefined;
|
|
756
|
+
'unplugin-auto-import'?: string | boolean | string[] | {
|
|
757
|
+
config?: string | string[] | undefined;
|
|
758
|
+
entry?: string | string[] | undefined;
|
|
759
|
+
project?: string | string[] | undefined;
|
|
760
|
+
} | undefined;
|
|
761
|
+
'unplugin-icons'?: string | boolean | string[] | {
|
|
762
|
+
config?: string | string[] | undefined;
|
|
763
|
+
entry?: string | string[] | undefined;
|
|
764
|
+
project?: string | string[] | undefined;
|
|
765
|
+
} | undefined;
|
|
766
|
+
'unplugin-vue-components'?: string | boolean | string[] | {
|
|
767
|
+
config?: string | string[] | undefined;
|
|
768
|
+
entry?: string | string[] | undefined;
|
|
769
|
+
project?: string | string[] | undefined;
|
|
770
|
+
} | undefined;
|
|
771
|
+
'unplugin-vue-i18n'?: string | boolean | string[] | {
|
|
772
|
+
config?: string | string[] | undefined;
|
|
773
|
+
entry?: string | string[] | undefined;
|
|
774
|
+
project?: string | string[] | undefined;
|
|
775
|
+
} | undefined;
|
|
776
|
+
'unplugin-vue-markdown'?: string | boolean | string[] | {
|
|
777
|
+
config?: string | string[] | undefined;
|
|
778
|
+
entry?: string | string[] | undefined;
|
|
779
|
+
project?: string | string[] | undefined;
|
|
780
|
+
} | undefined;
|
|
781
|
+
'unplugin-vue-router'?: string | boolean | string[] | {
|
|
782
|
+
config?: string | string[] | undefined;
|
|
783
|
+
entry?: string | string[] | undefined;
|
|
784
|
+
project?: string | string[] | undefined;
|
|
785
|
+
} | undefined;
|
|
721
786
|
vercel?: string | boolean | string[] | {
|
|
722
787
|
config?: string | string[] | undefined;
|
|
723
788
|
entry?: string | string[] | undefined;
|
|
@@ -738,6 +803,31 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
738
803
|
entry?: string | string[] | undefined;
|
|
739
804
|
project?: string | string[] | undefined;
|
|
740
805
|
} | undefined;
|
|
806
|
+
'vite-plugin-pages'?: string | boolean | string[] | {
|
|
807
|
+
config?: string | string[] | undefined;
|
|
808
|
+
entry?: string | string[] | undefined;
|
|
809
|
+
project?: string | string[] | undefined;
|
|
810
|
+
} | undefined;
|
|
811
|
+
'vite-plugin-pwa'?: string | boolean | string[] | {
|
|
812
|
+
config?: string | string[] | undefined;
|
|
813
|
+
entry?: string | string[] | undefined;
|
|
814
|
+
project?: string | string[] | undefined;
|
|
815
|
+
} | undefined;
|
|
816
|
+
'vite-plugin-vue-layouts-next'?: string | boolean | string[] | {
|
|
817
|
+
config?: string | string[] | undefined;
|
|
818
|
+
entry?: string | string[] | undefined;
|
|
819
|
+
project?: string | string[] | undefined;
|
|
820
|
+
} | undefined;
|
|
821
|
+
'vite-plus'?: string | boolean | string[] | {
|
|
822
|
+
config?: string | string[] | undefined;
|
|
823
|
+
entry?: string | string[] | undefined;
|
|
824
|
+
project?: string | string[] | undefined;
|
|
825
|
+
} | undefined;
|
|
826
|
+
'vite-pwa-assets-generator'?: string | boolean | string[] | {
|
|
827
|
+
config?: string | string[] | undefined;
|
|
828
|
+
entry?: string | string[] | undefined;
|
|
829
|
+
project?: string | string[] | undefined;
|
|
830
|
+
} | undefined;
|
|
741
831
|
vitepress?: string | boolean | string[] | {
|
|
742
832
|
config?: string | string[] | undefined;
|
|
743
833
|
entry?: string | string[] | undefined;
|
|
@@ -964,11 +1054,21 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
964
1054
|
entry?: string | string[] | undefined;
|
|
965
1055
|
project?: string | string[] | undefined;
|
|
966
1056
|
} | undefined;
|
|
1057
|
+
'electron-vite'?: string | boolean | string[] | {
|
|
1058
|
+
config?: string | string[] | undefined;
|
|
1059
|
+
entry?: string | string[] | undefined;
|
|
1060
|
+
project?: string | string[] | undefined;
|
|
1061
|
+
} | undefined;
|
|
967
1062
|
eleventy?: string | boolean | string[] | {
|
|
968
1063
|
config?: string | string[] | undefined;
|
|
969
1064
|
entry?: string | string[] | undefined;
|
|
970
1065
|
project?: string | string[] | undefined;
|
|
971
1066
|
} | undefined;
|
|
1067
|
+
esbuild?: string | boolean | string[] | {
|
|
1068
|
+
config?: string | string[] | undefined;
|
|
1069
|
+
entry?: string | string[] | undefined;
|
|
1070
|
+
project?: string | string[] | undefined;
|
|
1071
|
+
} | undefined;
|
|
972
1072
|
eslint?: string | boolean | string[] | {
|
|
973
1073
|
config?: string | string[] | undefined;
|
|
974
1074
|
entry?: string | string[] | undefined;
|
|
@@ -1064,6 +1164,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1064
1164
|
entry?: string | string[] | undefined;
|
|
1065
1165
|
project?: string | string[] | undefined;
|
|
1066
1166
|
} | undefined;
|
|
1167
|
+
'laravel-vite-plugin'?: string | boolean | string[] | {
|
|
1168
|
+
config?: string | string[] | undefined;
|
|
1169
|
+
entry?: string | string[] | undefined;
|
|
1170
|
+
project?: string | string[] | undefined;
|
|
1171
|
+
} | undefined;
|
|
1067
1172
|
lefthook?: string | boolean | string[] | {
|
|
1068
1173
|
config?: string | string[] | undefined;
|
|
1069
1174
|
entry?: string | string[] | undefined;
|
|
@@ -1199,6 +1304,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1199
1304
|
entry?: string | string[] | undefined;
|
|
1200
1305
|
project?: string | string[] | undefined;
|
|
1201
1306
|
} | undefined;
|
|
1307
|
+
'nuxtjs-i18n'?: string | boolean | string[] | {
|
|
1308
|
+
config?: string | string[] | undefined;
|
|
1309
|
+
entry?: string | string[] | undefined;
|
|
1310
|
+
project?: string | string[] | undefined;
|
|
1311
|
+
} | undefined;
|
|
1202
1312
|
nx?: string | boolean | string[] | {
|
|
1203
1313
|
config?: string | string[] | undefined;
|
|
1204
1314
|
entry?: string | string[] | undefined;
|
|
@@ -1304,6 +1414,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1304
1414
|
entry?: string | string[] | undefined;
|
|
1305
1415
|
project?: string | string[] | undefined;
|
|
1306
1416
|
} | undefined;
|
|
1417
|
+
quasar?: string | boolean | string[] | {
|
|
1418
|
+
config?: string | string[] | undefined;
|
|
1419
|
+
entry?: string | string[] | undefined;
|
|
1420
|
+
project?: string | string[] | undefined;
|
|
1421
|
+
} | undefined;
|
|
1307
1422
|
qwik?: string | boolean | string[] | {
|
|
1308
1423
|
config?: string | string[] | undefined;
|
|
1309
1424
|
entry?: string | string[] | undefined;
|
|
@@ -1494,6 +1609,16 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1494
1609
|
entry?: string | string[] | undefined;
|
|
1495
1610
|
project?: string | string[] | undefined;
|
|
1496
1611
|
} | undefined;
|
|
1612
|
+
tauri?: string | boolean | string[] | {
|
|
1613
|
+
config?: string | string[] | undefined;
|
|
1614
|
+
entry?: string | string[] | undefined;
|
|
1615
|
+
project?: string | string[] | undefined;
|
|
1616
|
+
} | undefined;
|
|
1617
|
+
temporal?: string | boolean | string[] | {
|
|
1618
|
+
config?: string | string[] | undefined;
|
|
1619
|
+
entry?: string | string[] | undefined;
|
|
1620
|
+
project?: string | string[] | undefined;
|
|
1621
|
+
} | undefined;
|
|
1497
1622
|
travis?: string | boolean | string[] | {
|
|
1498
1623
|
config?: string | string[] | undefined;
|
|
1499
1624
|
entry?: string | string[] | undefined;
|
|
@@ -1539,6 +1664,36 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1539
1664
|
entry?: string | string[] | undefined;
|
|
1540
1665
|
project?: string | string[] | undefined;
|
|
1541
1666
|
} | undefined;
|
|
1667
|
+
'unplugin-auto-import'?: string | boolean | string[] | {
|
|
1668
|
+
config?: string | string[] | undefined;
|
|
1669
|
+
entry?: string | string[] | undefined;
|
|
1670
|
+
project?: string | string[] | undefined;
|
|
1671
|
+
} | undefined;
|
|
1672
|
+
'unplugin-icons'?: string | boolean | string[] | {
|
|
1673
|
+
config?: string | string[] | undefined;
|
|
1674
|
+
entry?: string | string[] | undefined;
|
|
1675
|
+
project?: string | string[] | undefined;
|
|
1676
|
+
} | undefined;
|
|
1677
|
+
'unplugin-vue-components'?: string | boolean | string[] | {
|
|
1678
|
+
config?: string | string[] | undefined;
|
|
1679
|
+
entry?: string | string[] | undefined;
|
|
1680
|
+
project?: string | string[] | undefined;
|
|
1681
|
+
} | undefined;
|
|
1682
|
+
'unplugin-vue-i18n'?: string | boolean | string[] | {
|
|
1683
|
+
config?: string | string[] | undefined;
|
|
1684
|
+
entry?: string | string[] | undefined;
|
|
1685
|
+
project?: string | string[] | undefined;
|
|
1686
|
+
} | undefined;
|
|
1687
|
+
'unplugin-vue-markdown'?: string | boolean | string[] | {
|
|
1688
|
+
config?: string | string[] | undefined;
|
|
1689
|
+
entry?: string | string[] | undefined;
|
|
1690
|
+
project?: string | string[] | undefined;
|
|
1691
|
+
} | undefined;
|
|
1692
|
+
'unplugin-vue-router'?: string | boolean | string[] | {
|
|
1693
|
+
config?: string | string[] | undefined;
|
|
1694
|
+
entry?: string | string[] | undefined;
|
|
1695
|
+
project?: string | string[] | undefined;
|
|
1696
|
+
} | undefined;
|
|
1542
1697
|
vercel?: string | boolean | string[] | {
|
|
1543
1698
|
config?: string | string[] | undefined;
|
|
1544
1699
|
entry?: string | string[] | undefined;
|
|
@@ -1559,6 +1714,31 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1559
1714
|
entry?: string | string[] | undefined;
|
|
1560
1715
|
project?: string | string[] | undefined;
|
|
1561
1716
|
} | undefined;
|
|
1717
|
+
'vite-plugin-pages'?: string | boolean | string[] | {
|
|
1718
|
+
config?: string | string[] | undefined;
|
|
1719
|
+
entry?: string | string[] | undefined;
|
|
1720
|
+
project?: string | string[] | undefined;
|
|
1721
|
+
} | undefined;
|
|
1722
|
+
'vite-plugin-pwa'?: string | boolean | string[] | {
|
|
1723
|
+
config?: string | string[] | undefined;
|
|
1724
|
+
entry?: string | string[] | undefined;
|
|
1725
|
+
project?: string | string[] | undefined;
|
|
1726
|
+
} | undefined;
|
|
1727
|
+
'vite-plugin-vue-layouts-next'?: string | boolean | string[] | {
|
|
1728
|
+
config?: string | string[] | undefined;
|
|
1729
|
+
entry?: string | string[] | undefined;
|
|
1730
|
+
project?: string | string[] | undefined;
|
|
1731
|
+
} | undefined;
|
|
1732
|
+
'vite-plus'?: string | boolean | string[] | {
|
|
1733
|
+
config?: string | string[] | undefined;
|
|
1734
|
+
entry?: string | string[] | undefined;
|
|
1735
|
+
project?: string | string[] | undefined;
|
|
1736
|
+
} | undefined;
|
|
1737
|
+
'vite-pwa-assets-generator'?: string | boolean | string[] | {
|
|
1738
|
+
config?: string | string[] | undefined;
|
|
1739
|
+
entry?: string | string[] | undefined;
|
|
1740
|
+
project?: string | string[] | undefined;
|
|
1741
|
+
} | undefined;
|
|
1562
1742
|
vitepress?: string | boolean | string[] | {
|
|
1563
1743
|
config?: string | string[] | undefined;
|
|
1564
1744
|
entry?: string | string[] | undefined;
|
package/dist/compilers/less.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isScopedPackage, isTildePackage, splitSpec } from './shared.js';
|
|
2
2
|
const dependencies = ['less'];
|
|
3
|
-
const importMatcher =
|
|
3
|
+
const importMatcher = /"(?:\\(?:\r\n|[\s\S]|$)|[^"\\\r\n\f])*(?:"|[\r\n\f]|$)|'(?:\\(?:\r\n|[\s\S]|$)|[^'\\\r\n\f])*(?:'|[\r\n\f]|$)|\/\*[\s\S]*?(?:\*\/|$)|@import\s+(?:\([^)]*\)\s+)?(?:url\(\s*['"]?([^'")\s]+)['"]?\s*\)|['"]([^'"]+)['"])/g;
|
|
4
4
|
const isExternalUrl = (s) => s.startsWith('//') || s.startsWith('http://') || s.startsWith('https://');
|
|
5
5
|
const candidates = (specifier) => {
|
|
6
6
|
const { dir, name } = splitSpec(specifier);
|
package/dist/compilers/scss.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isScopedPackage, isTildePackage, splitSpec } from './shared.js';
|
|
2
2
|
const dependencies = ['sass', 'sass-embedded', 'node-sass'];
|
|
3
|
-
const importMatcher =
|
|
3
|
+
const importMatcher = /"(?:\\(?:\r\n|[\s\S]|$)|[^"\\\r\n\f])*(?:"|[\r\n\f]|$)|'(?:\\(?:\r\n|[\s\S]|$)|[^'\\\r\n\f])*(?:'|[\r\n\f]|$)|\/\*[\s\S]*?(?:\*\/|$)|@(?:use|import|forward)\s+['"](pkg:)?([^'"]+)['"]/g;
|
|
4
4
|
const candidates = (specifier) => {
|
|
5
5
|
const { dir, name } = splitSpec(specifier);
|
|
6
6
|
const hasExt = name.endsWith('.scss') || name.endsWith('.sass');
|
package/dist/compilers/stylus.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isScopedPackage, isTildePackage, splitSpec } from './shared.js';
|
|
2
2
|
const dependencies = ['stylus'];
|
|
3
|
-
const importMatcher =
|
|
3
|
+
const importMatcher = /"(?:\\(?:\r\n|[\s\S]|$)|[^"\\\r\n\f])*(?:"|[\r\n\f]|$)|'(?:\\(?:\r\n|[\s\S]|$)|[^'\\\r\n\f])*(?:'|[\r\n\f]|$)|\/\*[\s\S]*?(?:\*\/|$)|@(?:import|require)\s+['"]([^'"]+)['"]/g;
|
|
4
4
|
const candidates = (specifier) => {
|
|
5
5
|
const { dir, name } = splitSpec(specifier);
|
|
6
6
|
if (name.endsWith('.styl') || name.endsWith('.stylus') || name.endsWith('.css'))
|
package/dist/constants.js
CHANGED
|
@@ -23,6 +23,7 @@ export const PROTOCOL_VIRTUAL = 'virtual:';
|
|
|
23
23
|
export const IGNORED_GLOBAL_BINARIES = new Set([
|
|
24
24
|
'amplify',
|
|
25
25
|
'aws',
|
|
26
|
+
'az',
|
|
26
27
|
'base64',
|
|
27
28
|
'basename',
|
|
28
29
|
'bash',
|
|
@@ -35,8 +36,13 @@ export const IGNORED_GLOBAL_BINARIES = new Set([
|
|
|
35
36
|
'chmod',
|
|
36
37
|
'chown',
|
|
37
38
|
'cksum',
|
|
39
|
+
'claude',
|
|
38
40
|
'clear',
|
|
39
41
|
'cmd',
|
|
42
|
+
'cmd.exe',
|
|
43
|
+
'code',
|
|
44
|
+
'code-insiders',
|
|
45
|
+
'codesign',
|
|
40
46
|
'comm',
|
|
41
47
|
'command',
|
|
42
48
|
'corepack',
|
|
@@ -45,10 +51,12 @@ export const IGNORED_GLOBAL_BINARIES = new Set([
|
|
|
45
51
|
'cut',
|
|
46
52
|
'date',
|
|
47
53
|
'deno',
|
|
54
|
+
'devtunnel',
|
|
48
55
|
'df',
|
|
49
56
|
'dir',
|
|
50
57
|
'dirname',
|
|
51
58
|
'docker',
|
|
59
|
+
'dotnet',
|
|
52
60
|
'echo',
|
|
53
61
|
'env',
|
|
54
62
|
'exec',
|
|
@@ -60,6 +68,7 @@ export const IGNORED_GLOBAL_BINARIES = new Set([
|
|
|
60
68
|
'false',
|
|
61
69
|
'find',
|
|
62
70
|
'gem',
|
|
71
|
+
'gh',
|
|
63
72
|
'git',
|
|
64
73
|
'grep',
|
|
65
74
|
'groups',
|
|
@@ -69,6 +78,7 @@ export const IGNORED_GLOBAL_BINARIES = new Set([
|
|
|
69
78
|
'id',
|
|
70
79
|
'join',
|
|
71
80
|
'kill',
|
|
81
|
+
'launchctl',
|
|
72
82
|
'ln',
|
|
73
83
|
'logname',
|
|
74
84
|
'ls',
|
|
@@ -86,12 +96,18 @@ export const IGNORED_GLOBAL_BINARIES = new Set([
|
|
|
86
96
|
'npx',
|
|
87
97
|
'nub',
|
|
88
98
|
'nubx',
|
|
99
|
+
'open',
|
|
89
100
|
'paste',
|
|
90
101
|
'pnpm',
|
|
91
102
|
'pnpx',
|
|
103
|
+
'powershell',
|
|
104
|
+
'powershell.exe',
|
|
92
105
|
'pr',
|
|
93
106
|
'printenv',
|
|
107
|
+
'pulumi',
|
|
94
108
|
'pwd',
|
|
109
|
+
'python',
|
|
110
|
+
'python3',
|
|
95
111
|
'rm',
|
|
96
112
|
'rmdir',
|
|
97
113
|
'rsync',
|
|
@@ -112,12 +128,15 @@ export const IGNORED_GLOBAL_BINARIES = new Set([
|
|
|
112
128
|
'stty',
|
|
113
129
|
'sudo',
|
|
114
130
|
'sync',
|
|
131
|
+
'systemctl',
|
|
115
132
|
'tac',
|
|
116
133
|
'tar',
|
|
117
134
|
'tee',
|
|
118
135
|
'test',
|
|
119
136
|
'time',
|
|
120
137
|
'timeout',
|
|
138
|
+
'tmux',
|
|
139
|
+
'tmuxinator',
|
|
121
140
|
'touch',
|
|
122
141
|
'trap',
|
|
123
142
|
'tr',
|
package/dist/graph/analyze.js
CHANGED
|
@@ -193,7 +193,7 @@ export const analyze = async ({ analyzedFiles, counselor, chief, collector, depu
|
|
|
193
193
|
for (const extImport of file.imports.external) {
|
|
194
194
|
const packageName = getPackageNameFromModuleSpecifier(extImport.specifier);
|
|
195
195
|
const isHandled = packageName &&
|
|
196
|
-
deputy.maybeAddReferencedExternalDependency(ws, packageName, undefined, extImport.isTypeOnly);
|
|
196
|
+
deputy.maybeAddReferencedExternalDependency(ws, packageName, undefined, extImport.isTypeOnly, extImport.filePath !== undefined);
|
|
197
197
|
if (!isHandled)
|
|
198
198
|
collector.addIssue({
|
|
199
199
|
type: 'unlisted',
|
package/dist/graph/build.js
CHANGED
|
@@ -10,6 +10,7 @@ import { tryRealpath } from '../util/fs.js';
|
|
|
10
10
|
import { createManifest } from '../util/package-json.js';
|
|
11
11
|
import { _glob, _syncGlob, negate, prependDirToPattern as prependDir } from '../util/glob.js';
|
|
12
12
|
import { isAlias, isConfig, isDeferResolveEntry, isDeferResolveProductionEntry, isEntry, isIgnore, isProductionEntry, isProject, toProductionEntry, } from '../util/input.js';
|
|
13
|
+
import { isAmbientDeclarationFile } from '../typescript/ast-nodes.js';
|
|
13
14
|
import { resolveImportGlobs } from '../typescript/glob-imports.js';
|
|
14
15
|
import { loadTSConfig } from '../util/load-tsconfig.js';
|
|
15
16
|
import { createFileNode, updateImportMap } from '../util/module-graph.js';
|
|
@@ -17,6 +18,7 @@ import { getPackageNameFromModuleSpecifier, isStartsLikePackageName, sanitizeSpe
|
|
|
17
18
|
import { perfObserver } from '../util/Performance.js';
|
|
18
19
|
import { getEntrySpecifiersFromManifest, getManifestImportDependencies } from '../util/package-json.js';
|
|
19
20
|
import { dirname, extname, isAbsolute, isInNodeModules, join, relative } from '../util/path.js';
|
|
21
|
+
import { extensionAlias } from '../util/resolve.js';
|
|
20
22
|
import { augmentWorkspace, getToSourcePathsHandler, toSourceMappedSpecifiers } from '../util/to-source-path.js';
|
|
21
23
|
import { WorkspaceWorker } from '../WorkspaceWorker.js';
|
|
22
24
|
export async function build({ chief, collector, counselor, deputy, principal, isGitIgnored, streamer, workspaces, options, }) {
|
|
@@ -91,7 +93,7 @@ export async function build({ chief, collector, counselor, deputy, principal, is
|
|
|
91
93
|
options,
|
|
92
94
|
});
|
|
93
95
|
await worker.init();
|
|
94
|
-
const compilers = getIncludedCompilers(chief.config.syncCompilers, chief.config.asyncCompilers, dependencies, dep => deputy.addReferencedDependency(name, dep));
|
|
96
|
+
const compilers = getIncludedCompilers(new Map(chief.config.syncCompilers), new Map(chief.config.asyncCompilers), dependencies, dep => deputy.addReferencedDependency(name, dep));
|
|
95
97
|
const registerCompiler = async ({ extension, compiler }) => {
|
|
96
98
|
const ext = normalizeCompilerExtension(extension);
|
|
97
99
|
if (compilers[0].has(ext))
|
|
@@ -119,7 +121,8 @@ export async function build({ chief, collector, counselor, deputy, principal, is
|
|
|
119
121
|
const entrySpecifiersFromManifest = getEntrySpecifiersFromManifest(manifest);
|
|
120
122
|
const label = 'entry paths from package.json';
|
|
121
123
|
for (const filePath of await toSourceFilePaths(entrySpecifiersFromManifest, dir, extensionGlobStr, label)) {
|
|
122
|
-
|
|
124
|
+
if (!isGitIgnored(filePath))
|
|
125
|
+
inputs.add(toProductionEntry(filePath));
|
|
123
126
|
}
|
|
124
127
|
for (const identifier of entrySpecifiersFromManifest) {
|
|
125
128
|
if (identifier.startsWith('!') || isGitIgnored(join(dir, identifier)))
|
|
@@ -329,10 +332,21 @@ export async function build({ chief, collector, counselor, deputy, principal, is
|
|
|
329
332
|
file.imports.external.add({ ...unresolvedImport, specifier: sanitizedSpecifier });
|
|
330
333
|
}
|
|
331
334
|
else {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
335
|
+
const candidate = join(dirname(filePath), sanitizedSpecifier);
|
|
336
|
+
const ext = extname(sanitizedSpecifier);
|
|
337
|
+
const aliases = extensionAlias[ext];
|
|
338
|
+
let isIgnored = isGitIgnored(candidate);
|
|
339
|
+
if (!isIgnored && aliases) {
|
|
340
|
+
const basePath = candidate.slice(0, -ext.length);
|
|
341
|
+
for (const alias of aliases) {
|
|
342
|
+
if (alias !== ext && isGitIgnored(basePath + alias)) {
|
|
343
|
+
isIgnored = true;
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if (!isIgnored && (!ext || (ext !== '.json' && !FOREIGN_FILE_EXTENSIONS.has(ext)))) {
|
|
349
|
+
unresolvedImports.add(unresolvedImport);
|
|
336
350
|
}
|
|
337
351
|
}
|
|
338
352
|
}
|
|
@@ -430,8 +444,11 @@ export async function build({ chief, collector, counselor, deputy, principal, is
|
|
|
430
444
|
}
|
|
431
445
|
return paths;
|
|
432
446
|
});
|
|
433
|
-
for (const filePath of principal.getUnreferencedFiles())
|
|
447
|
+
for (const filePath of principal.getUnreferencedFiles()) {
|
|
448
|
+
if (IS_DTS.test(filePath) && isAmbientDeclarationFile(filePath, principal.readFile(filePath)))
|
|
449
|
+
continue;
|
|
434
450
|
unreferencedFiles.add(filePath);
|
|
451
|
+
}
|
|
435
452
|
for (const filePath of principal.entryPaths)
|
|
436
453
|
entryPaths.add(filePath);
|
|
437
454
|
principal.reconcileCache(graph);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ParseResult } from 'oxc-parser';
|
|
2
|
+
import type { AutoImportMaps } from './types.ts';
|
|
3
|
+
export declare const readAndParseFile: (filePath: string) => ParseResult;
|
|
4
|
+
export declare const collectLocalImportPaths: (filePath: string, result: ParseResult) => Set<string>;
|
|
5
|
+
export declare function buildAutoImportMap(filePath: string, result: ParseResult, maps: AutoImportMaps, isComponents: boolean): void;
|
|
6
|
+
export declare const createAutoImportMaps: () => AutoImportMaps;
|
|
7
|
+
export declare const findGeneratedDts: (cwd: string, signature: string) => string[];
|
|
8
|
+
export declare const createVueCompiler: (maps: AutoImportMaps, cwd: string) => (source: string, path: string) => string;
|
|
9
|
+
export declare const createTsCompiler: (maps: AutoImportMaps) => (source: string, path: string) => string;
|
|
10
|
+
export declare const vueAutoImportCompiler: (source: string, path: string) => string;
|
|
11
|
+
export declare const tsAutoImportCompiler: (source: string, path: string) => string;
|
|
12
|
+
export declare const markdownAutoImportCompiler: (source: string, path: string) => string;
|