@voidzero-dev/vite-plus-core 0.2.4 → 0.2.5
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/LICENSE +7 -115
- package/dist/rolldown/cli.mjs +11 -8
- package/dist/rolldown/config.d.mts +15 -2
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +4 -4
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +10 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +2 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-B1q9aYT-.d.mts → binding-D26QphWG.d.mts} +12 -0
- package/dist/rolldown/shared/{binding-BmkJW3Wy.mjs → binding-TuFFIE_J.mjs} +26 -26
- package/dist/rolldown/shared/{bindingify-input-options-Cmm60vfj.mjs → bindingify-input-options-CwbcQL6W.mjs} +11 -13
- package/dist/rolldown/shared/{constructors-2i1T9YcF.d.mts → constructors-BbWPse2X.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-CE6zZSUt.mjs → constructors-D_3i7dpX.mjs} +1 -1
- package/dist/rolldown/shared/{define-config-BBz954-q.d.mts → define-config-BhJ90aEv.d.mts} +79 -2
- package/dist/rolldown/shared/dist-DX3cAjHx.mjs +154 -0
- package/dist/rolldown/shared/{error-BlQ0-ek7.mjs → error-BHRSI0R7.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-CVVMWSlg.mjs → load-config-Bd7MgqCK.mjs} +19 -2
- package/dist/rolldown/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-BYkbbGqQ.mjs → normalize-string-or-regex-dnh67V_w.mjs} +2 -2
- package/dist/rolldown/shared/{parse-Dphnedsw.mjs → parse-B6_waszz.mjs} +2 -2
- package/dist/rolldown/shared/{prompt-Bgj-uEyc.mjs → prompt-pZFoa1TT.mjs} +59 -17
- package/dist/rolldown/shared/{resolve-tsconfig-CdIAR1Eb.mjs → resolve-tsconfig-DxqIJB3x.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-Bnp916iM.mjs → rolldown-CACDGVWV.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-Cs2iVJuw.mjs → rolldown-build-BV22mk7t.mjs} +33 -13
- package/dist/rolldown/shared/{transform-CEmFsvJW.d.mts → transform-BPrUvqEZ.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-ECGr-_QS.mjs → watch-CS_JygCu.mjs} +5 -5
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +8 -6
- package/dist/tsdown/{build-B_nvJe4A-CvbtVBxy.js → build-BlM3pDGJ-C8Uovnt4.js} +166 -76
- package/dist/tsdown/{debug-DLdR-9XB-DQZ6QLC0.js → debug-B1wUEHkd-DhRzGJTf.js} +21 -6
- package/dist/tsdown/{detect-B97OSl92-BJPZyIKJ.js → detect-BNXt7gkp-DKAC9Z7n.js} +7 -2
- package/dist/tsdown/dist-Pjag7IPt.js +3206 -0
- package/dist/tsdown/fs-qxJxxoCE-B_amenYz.js +46 -0
- package/dist/tsdown/{general-Cp4NiJNK-CbyrS9q1.js → general-Cp4NiJNK-xAqmPhMP.js} +1 -1
- package/dist/tsdown/index-types.d.ts +1361 -1326
- package/dist/tsdown/index.js +7 -4
- package/dist/tsdown/internal-Bn6NGoha.js +3 -0
- package/dist/tsdown/npm_cjs_chunk_range.cjs +14 -13
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +6 -6
- package/dist/tsdown/npm_entry_picomatch.cjs +44 -15
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +2 -2
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +1 -1
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +1 -1
- package/dist/tsdown/run.js +3 -3
- package/dist/tsdown/{src-CISfE_A0.js → src-CK50m8R_.js} +5 -5
- package/dist/tsdown/target-CqeSqtms-CIvlAiuG.js +35 -0
- package/dist/tsdown/{tsc-CdZE7QwS.js → tsc-CilQvmj4.js} +15 -7
- package/dist/tsdown/{tsc-context-CX_GXdyS.js → tsc-context-BusiAGCd.js} +6 -2
- package/dist/tsdown/tsdown-css.js +74 -23
- package/dist/tsdown/tsdown-exe.js +27 -26
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build.js +194 -84
- package/dist/vite/node/chunks/dist2.js +1 -1
- package/dist/vite/node/chunks/lib.js +1 -1
- package/dist/vite/node/chunks/node.js +484 -71
- package/dist/vite/node/chunks/postcss-import.js +1 -1
- package/dist/vite/node/cli.js +3 -4
- package/dist/vite/node/index.d.ts +3 -3
- package/dist/vite/node/index.js +1 -2
- package/package.json +18 -16
- package/dist/tsdown/dist-CZtGyfn3.js +0 -200
- package/dist/tsdown/dist-CqbVlnVq.js +0 -32057
- package/dist/tsdown/internal-bfoxcI4F.js +0 -3
- package/dist/tsdown/target-CqeSqtms-FAqYuGyB.js +0 -79
- package/dist/vite/node/chunks/logger.js +0 -361
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { m as __toESM, n as importWithError, s as resolveComma, u as toArray } from "./general-Cp4NiJNK-
|
|
2
|
-
import { t as expandBaselineTarget } from "./target-CqeSqtms-
|
|
3
|
-
import "./internal-
|
|
1
|
+
import { m as __toESM, n as importWithError, s as resolveComma, u as toArray } from "./general-Cp4NiJNK-xAqmPhMP.js";
|
|
2
|
+
import { t as expandBaselineTarget } from "./target-CqeSqtms-CIvlAiuG.js";
|
|
3
|
+
import "./internal-Bn6NGoha.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { readFile } from "node:fs/promises";
|
|
7
7
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
8
|
import { ResolverFactory } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
9
|
-
//#region ../../node_modules/.pnpm/@tsdown+css@0.22.
|
|
9
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.22.7_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.16__postcss-modules@9.0_1c733d87075d7caaba5f5a5461b5a5e5/node_modules/@tsdown/css/dist/index.mjs
|
|
10
10
|
const defaultCssBundleName = "style.css";
|
|
11
11
|
function resolveCssOptions(options = {}, topLevelTarget, unbundle) {
|
|
12
12
|
let cssTarget;
|
|
@@ -124,7 +124,8 @@ const PREPROCESSOR_LANGS = {
|
|
|
124
124
|
stylus: "stylus"
|
|
125
125
|
};
|
|
126
126
|
function getPreprocessorLang(filename) {
|
|
127
|
-
|
|
127
|
+
const ext = path.extname(filename).slice(1);
|
|
128
|
+
return PREPROCESSOR_LANGS[ext];
|
|
128
129
|
}
|
|
129
130
|
function getPreprocessorLangFromId(id) {
|
|
130
131
|
const match = CSS_LANGS_RE.exec(id);
|
|
@@ -269,7 +270,7 @@ async function compileSass(lang, code, filename, options) {
|
|
|
269
270
|
};
|
|
270
271
|
}
|
|
271
272
|
};
|
|
272
|
-
const result = await sass.compileStringAsync(data, {
|
|
273
|
+
const result = await (await loadSassCompiler(sass)).compileStringAsync(data, {
|
|
273
274
|
url: pathToFileURL(filename),
|
|
274
275
|
sourceMap: false,
|
|
275
276
|
syntax: lang === "sass" ? "indented" : "scss",
|
|
@@ -307,6 +308,20 @@ async function tryResolveScss(url, importer) {
|
|
|
307
308
|
return resolveWithResolver(getSassResolver(), url, importer);
|
|
308
309
|
}
|
|
309
310
|
let _sass;
|
|
311
|
+
let _sassCompiler;
|
|
312
|
+
function loadSassCompiler(sass) {
|
|
313
|
+
if (!sass.initAsyncCompiler) return Promise.resolve(sass);
|
|
314
|
+
_sassCompiler ??= sass.initAsyncCompiler().catch((error) => {
|
|
315
|
+
_sassCompiler = void 0;
|
|
316
|
+
throw error;
|
|
317
|
+
});
|
|
318
|
+
return _sassCompiler;
|
|
319
|
+
}
|
|
320
|
+
async function disposeSassCompiler() {
|
|
321
|
+
const compilerPromise = _sassCompiler;
|
|
322
|
+
_sassCompiler = void 0;
|
|
323
|
+
await (await compilerPromise?.catch(() => void 0))?.dispose?.();
|
|
324
|
+
}
|
|
310
325
|
async function loadSass() {
|
|
311
326
|
if (_sass) return _sass;
|
|
312
327
|
try {
|
|
@@ -390,10 +405,13 @@ async function transformWithLightningCSS(code, filename, options) {
|
|
|
390
405
|
...options.lightningcss,
|
|
391
406
|
targets,
|
|
392
407
|
minify: options.minify,
|
|
393
|
-
cssModules: options.cssModules
|
|
408
|
+
cssModules: options.cssModules,
|
|
409
|
+
sourceMap: options.sourceMap,
|
|
410
|
+
inputSourceMap: options.inputSourceMap
|
|
394
411
|
});
|
|
395
412
|
return {
|
|
396
413
|
code: decoder.decode(result.code),
|
|
414
|
+
map: result.map ? decoder.decode(result.map) : void 0,
|
|
397
415
|
modules: result.exports ? extractLightningCssModuleExports(result.exports) : void 0
|
|
398
416
|
};
|
|
399
417
|
}
|
|
@@ -407,6 +425,7 @@ async function bundleWithLightningCSS(filename, options, code) {
|
|
|
407
425
|
targets,
|
|
408
426
|
minify: options.minify,
|
|
409
427
|
cssModules: options.cssModules,
|
|
428
|
+
sourceMap: options.sourceMap,
|
|
410
429
|
resolver: {
|
|
411
430
|
async read(filePath) {
|
|
412
431
|
let fileCode;
|
|
@@ -431,8 +450,9 @@ async function bundleWithLightningCSS(filename, options, code) {
|
|
|
431
450
|
}
|
|
432
451
|
});
|
|
433
452
|
return {
|
|
434
|
-
code:
|
|
453
|
+
code: decoder.decode(result.code),
|
|
435
454
|
deps,
|
|
455
|
+
map: result.map ? decoder.decode(result.map) : void 0,
|
|
436
456
|
modules: result.exports ? extractLightningCssModuleExports(result.exports) : void 0
|
|
437
457
|
};
|
|
438
458
|
}
|
|
@@ -447,7 +467,7 @@ const ESBUILD_LIGHTNINGCSS_MAPPING = {
|
|
|
447
467
|
safari: "safari"
|
|
448
468
|
};
|
|
449
469
|
function parseVersion(version) {
|
|
450
|
-
const [major, minor = 0, patch = 0] = version.split("-")[0].split(".").map((v) => Number.parseInt(v, 10));
|
|
470
|
+
const [major, minor = 0, patch = 0] = version.split("-", 1)[0].split(".").map((v) => Number.parseInt(v, 10));
|
|
451
471
|
if (Number.isNaN(major) || Number.isNaN(minor) || Number.isNaN(patch)) return null;
|
|
452
472
|
return major << 16 | minor << 8 | patch;
|
|
453
473
|
}
|
|
@@ -455,7 +475,8 @@ function esbuildTargetToLightningCSS(target) {
|
|
|
455
475
|
let targets;
|
|
456
476
|
const matches = [...target.join(" ").toLowerCase().matchAll(TARGET_REGEX)];
|
|
457
477
|
for (const match of matches) {
|
|
458
|
-
const
|
|
478
|
+
const name = match[1];
|
|
479
|
+
const browser = ESBUILD_LIGHTNINGCSS_MAPPING[name];
|
|
459
480
|
if (!browser) continue;
|
|
460
481
|
const version = match[2];
|
|
461
482
|
const versionInt = parseVersion(version);
|
|
@@ -585,7 +606,7 @@ async function loadFileConfig(searchPath) {
|
|
|
585
606
|
if (cached !== void 0) return cached;
|
|
586
607
|
const promise = (async () => {
|
|
587
608
|
try {
|
|
588
|
-
const postcssrc = (await import("./src-
|
|
609
|
+
const postcssrc = (await import("./src-CK50m8R_.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).default;
|
|
589
610
|
const result = await postcssrc({}, searchPath);
|
|
590
611
|
return {
|
|
591
612
|
options: result.options,
|
|
@@ -611,7 +632,7 @@ function resolvePostCSSConfig(postcssOption, cwd) {
|
|
|
611
632
|
}
|
|
612
633
|
return loadFileConfig(typeof postcssOption === "string" ? postcssOption : cwd);
|
|
613
634
|
}
|
|
614
|
-
async function processWithPostCSS$1(code, filename, postcssOption, cwd, injectImport, modulesOptions) {
|
|
635
|
+
async function processWithPostCSS$1(code, filename, postcssOption, cwd, injectImport, modulesOptions, sourceMap) {
|
|
615
636
|
const config = await resolvePostCSSConfig(postcssOption, cwd);
|
|
616
637
|
const plugins = [];
|
|
617
638
|
let modules;
|
|
@@ -638,7 +659,12 @@ async function processWithPostCSS$1(code, filename, postcssOption, cwd, injectIm
|
|
|
638
659
|
const result = await (await importWithError("postcss")).default(plugins).process(code, {
|
|
639
660
|
...config?.options,
|
|
640
661
|
from: filename,
|
|
641
|
-
to: filename
|
|
662
|
+
to: filename,
|
|
663
|
+
map: sourceMap ? {
|
|
664
|
+
inline: false,
|
|
665
|
+
annotation: false,
|
|
666
|
+
prev: false
|
|
667
|
+
} : void 0
|
|
642
668
|
});
|
|
643
669
|
const deps = [];
|
|
644
670
|
for (const message of result.messages) if (message.type === "dependency") deps.push(message.file);
|
|
@@ -649,6 +675,7 @@ async function processWithPostCSS$1(code, filename, postcssOption, cwd, injectIm
|
|
|
649
675
|
return {
|
|
650
676
|
code: result.css,
|
|
651
677
|
deps,
|
|
678
|
+
map: result.map?.toString(),
|
|
652
679
|
modules
|
|
653
680
|
};
|
|
654
681
|
}
|
|
@@ -660,7 +687,8 @@ function CssPlugin(config, { logger }) {
|
|
|
660
687
|
const cssConfig = {
|
|
661
688
|
css: resolveCssOptions(config.css, config.target, config.unbundle),
|
|
662
689
|
cwd: config.cwd,
|
|
663
|
-
target: config.target
|
|
690
|
+
target: config.target,
|
|
691
|
+
sourceMap: Boolean(config.sourcemap)
|
|
664
692
|
};
|
|
665
693
|
const styles = /* @__PURE__ */ new Map();
|
|
666
694
|
const modulesMap = /* @__PURE__ */ new Map();
|
|
@@ -670,6 +698,12 @@ function CssPlugin(config, { logger }) {
|
|
|
670
698
|
styles.clear();
|
|
671
699
|
modulesMap.clear();
|
|
672
700
|
},
|
|
701
|
+
closeBundle() {
|
|
702
|
+
if (!this.meta.watchMode) return disposeSassCompiler();
|
|
703
|
+
},
|
|
704
|
+
closeWatcher() {
|
|
705
|
+
return disposeSassCompiler();
|
|
706
|
+
},
|
|
673
707
|
resolveId: {
|
|
674
708
|
filter: { id: RE_CSS_INLINE },
|
|
675
709
|
async handler(source, ...args) {
|
|
@@ -703,14 +737,17 @@ function CssPlugin(config, { logger }) {
|
|
|
703
737
|
const isModule = !RE_INLINE.test(id) && cssConfig.css.modules !== false && CSS_MODULE_RE.test(id);
|
|
704
738
|
const deps = [];
|
|
705
739
|
let modules;
|
|
740
|
+
let map;
|
|
706
741
|
if (cssConfig.css.transformer === "lightningcss") {
|
|
707
742
|
const result = await processWithLightningCSS(code, id, cleanId, deps, cssConfig, logger, isModule);
|
|
708
743
|
code = result.code;
|
|
709
744
|
modules = result.modules;
|
|
745
|
+
map = result.map;
|
|
710
746
|
} else {
|
|
711
747
|
const result = await processWithPostCSS(code, id, cleanId, deps, cssConfig, isModule);
|
|
712
748
|
code = result.code;
|
|
713
749
|
modules = result.modules;
|
|
750
|
+
map = result.map;
|
|
714
751
|
}
|
|
715
752
|
for (const dep of deps) this.addWatchFile(dep);
|
|
716
753
|
if (code.length && !code.endsWith("\n")) code += "\n";
|
|
@@ -720,7 +757,10 @@ function CssPlugin(config, { logger }) {
|
|
|
720
757
|
modulesConfig?.getJSON?.(cleanId, modules, cleanId);
|
|
721
758
|
modulesMap.set(id, modules);
|
|
722
759
|
}
|
|
723
|
-
return {
|
|
760
|
+
return {
|
|
761
|
+
code,
|
|
762
|
+
map: map ?? null
|
|
763
|
+
};
|
|
724
764
|
}
|
|
725
765
|
}
|
|
726
766
|
};
|
|
@@ -734,17 +774,20 @@ function CssPlugin(config, { logger }) {
|
|
|
734
774
|
const modules = modulesMap.get(id);
|
|
735
775
|
if (isInline) return {
|
|
736
776
|
code: `export default ${JSON.stringify(code)};`,
|
|
777
|
+
map: null,
|
|
737
778
|
moduleSideEffects: false,
|
|
738
779
|
moduleType: "js"
|
|
739
780
|
};
|
|
740
781
|
if (code.length) styles.set(id, code);
|
|
741
782
|
if (modules) return {
|
|
742
783
|
code: modulesToEsm(modules),
|
|
784
|
+
map: null,
|
|
743
785
|
moduleSideEffects: false,
|
|
744
786
|
moduleType: "js"
|
|
745
787
|
};
|
|
746
788
|
return {
|
|
747
789
|
code: "",
|
|
790
|
+
map: null,
|
|
748
791
|
moduleSideEffects: "no-treeshake",
|
|
749
792
|
moduleType: "js"
|
|
750
793
|
};
|
|
@@ -817,14 +860,16 @@ async function processWithLightningCSS(code, id, cleanId, deps, config, logger,
|
|
|
817
860
|
target: config.css.target,
|
|
818
861
|
lightningcss: config.css.lightningcss,
|
|
819
862
|
minify: config.css.minify,
|
|
820
|
-
cssModules
|
|
863
|
+
cssModules,
|
|
864
|
+
sourceMap: config.sourceMap
|
|
821
865
|
});
|
|
822
866
|
}
|
|
823
867
|
if (id !== cleanId && !RE_INLINE.test(id)) return transformWithLightningCSS(code, cleanId, {
|
|
824
868
|
target: config.css.target,
|
|
825
869
|
lightningcss: config.css.lightningcss,
|
|
826
870
|
minify: config.css.minify,
|
|
827
|
-
cssModules
|
|
871
|
+
cssModules,
|
|
872
|
+
sourceMap: config.sourceMap
|
|
828
873
|
});
|
|
829
874
|
if (RE_CSS.test(cleanId)) {
|
|
830
875
|
const bundleResult = await bundleWithLightningCSS(cleanId, {
|
|
@@ -833,11 +878,13 @@ async function processWithLightningCSS(code, id, cleanId, deps, config, logger,
|
|
|
833
878
|
minify: config.css.minify,
|
|
834
879
|
cssModules,
|
|
835
880
|
preprocessorOptions: config.css.preprocessorOptions,
|
|
881
|
+
sourceMap: config.sourceMap,
|
|
836
882
|
logger
|
|
837
883
|
}, code);
|
|
838
884
|
deps.push(...bundleResult.deps);
|
|
839
885
|
return {
|
|
840
886
|
code: bundleResult.code,
|
|
887
|
+
map: bundleResult.map,
|
|
841
888
|
modules: bundleResult.modules
|
|
842
889
|
};
|
|
843
890
|
}
|
|
@@ -855,15 +902,19 @@ async function processWithPostCSS(code, id, cleanId, deps, config, isModule) {
|
|
|
855
902
|
const postcssResult = await processWithPostCSS$1(code, cleanId, config.css.postcss, config.cwd, needInlineImport, isModule ? {
|
|
856
903
|
isModule: true,
|
|
857
904
|
config: modulesConfig
|
|
858
|
-
} : void 0);
|
|
905
|
+
} : void 0, config.sourceMap);
|
|
859
906
|
code = postcssResult.code;
|
|
860
907
|
deps.push(...postcssResult.deps);
|
|
908
|
+
const transformResult = await transformWithLightningCSS(code, cleanId, {
|
|
909
|
+
target: config.css.target,
|
|
910
|
+
lightningcss: config.css.lightningcss,
|
|
911
|
+
minify: config.css.minify,
|
|
912
|
+
sourceMap: config.sourceMap,
|
|
913
|
+
inputSourceMap: postcssResult.map
|
|
914
|
+
});
|
|
861
915
|
return {
|
|
862
|
-
code:
|
|
863
|
-
|
|
864
|
-
lightningcss: config.css.lightningcss,
|
|
865
|
-
minify: config.css.minify
|
|
866
|
-
})).code,
|
|
916
|
+
code: transformResult.code,
|
|
917
|
+
map: transformResult.map ?? postcssResult.map,
|
|
867
918
|
modules: postcssResult.modules
|
|
868
919
|
};
|
|
869
920
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as __commonJSMin, m as __toESM } from "./general-Cp4NiJNK-
|
|
1
|
+
import { d as __commonJSMin, m as __toESM } from "./general-Cp4NiJNK-xAqmPhMP.js";
|
|
2
2
|
import { r as createDebug, t as R } from "./main-BlTcyuFi.js";
|
|
3
|
-
import {
|
|
4
|
-
import "./internal-
|
|
3
|
+
import { n as fsExists, r as fsRemove } from "./fs-qxJxxoCE-B_amenYz.js";
|
|
4
|
+
import "./internal-Bn6NGoha.js";
|
|
5
5
|
import process$1 from "node:process";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { chmod, mkdir, rename, writeFile } from "node:fs/promises";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import { Buffer } from "node:buffer";
|
|
10
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
10
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js
|
|
11
11
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
12
12
|
var LRUCache = class {
|
|
13
13
|
constructor() {
|
|
@@ -40,7 +40,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40
40
|
module.exports = LRUCache;
|
|
41
41
|
}));
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
43
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
|
|
44
44
|
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45
45
|
const looseOption = Object.freeze({ loose: true });
|
|
46
46
|
const emptyOpts = Object.freeze({});
|
|
@@ -52,7 +52,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
52
52
|
module.exports = parseOptions;
|
|
53
53
|
}));
|
|
54
54
|
//#endregion
|
|
55
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
55
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
|
|
56
56
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57
57
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
58
58
|
const MAX_LENGTH = 256;
|
|
@@ -77,12 +77,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
77
77
|
};
|
|
78
78
|
}));
|
|
79
79
|
//#endregion
|
|
80
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
80
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
|
|
81
81
|
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
82
82
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
83
83
|
}));
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
85
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
|
|
86
86
|
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
87
87
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
88
88
|
const debug = require_debug();
|
|
@@ -161,7 +161,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
161
161
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
162
162
|
}));
|
|
163
163
|
//#endregion
|
|
164
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
164
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
|
|
165
165
|
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
166
166
|
const numeric = /^[0-9]+$/;
|
|
167
167
|
const compareIdentifiers = (a, b) => {
|
|
@@ -181,7 +181,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
181
181
|
};
|
|
182
182
|
}));
|
|
183
183
|
//#endregion
|
|
184
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
184
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
|
|
185
185
|
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
186
186
|
const debug = require_debug();
|
|
187
187
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
@@ -366,56 +366,56 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
366
366
|
};
|
|
367
367
|
}));
|
|
368
368
|
//#endregion
|
|
369
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
369
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js
|
|
370
370
|
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
371
371
|
const SemVer = require_semver();
|
|
372
372
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
373
373
|
module.exports = compare;
|
|
374
374
|
}));
|
|
375
375
|
//#endregion
|
|
376
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
376
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js
|
|
377
377
|
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
378
378
|
const compare = require_compare();
|
|
379
379
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
380
380
|
module.exports = eq;
|
|
381
381
|
}));
|
|
382
382
|
//#endregion
|
|
383
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
383
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js
|
|
384
384
|
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
385
385
|
const compare = require_compare();
|
|
386
386
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
387
387
|
module.exports = neq;
|
|
388
388
|
}));
|
|
389
389
|
//#endregion
|
|
390
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
390
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js
|
|
391
391
|
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
392
392
|
const compare = require_compare();
|
|
393
393
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
394
394
|
module.exports = gt;
|
|
395
395
|
}));
|
|
396
396
|
//#endregion
|
|
397
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
397
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js
|
|
398
398
|
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
399
399
|
const compare = require_compare();
|
|
400
400
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
401
401
|
module.exports = gte;
|
|
402
402
|
}));
|
|
403
403
|
//#endregion
|
|
404
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
404
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js
|
|
405
405
|
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
406
406
|
const compare = require_compare();
|
|
407
407
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
408
408
|
module.exports = lt;
|
|
409
409
|
}));
|
|
410
410
|
//#endregion
|
|
411
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
411
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js
|
|
412
412
|
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
413
413
|
const compare = require_compare();
|
|
414
414
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
415
415
|
module.exports = lte;
|
|
416
416
|
}));
|
|
417
417
|
//#endregion
|
|
418
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
418
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js
|
|
419
419
|
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
420
420
|
const eq = require_eq();
|
|
421
421
|
const neq = require_neq();
|
|
@@ -447,7 +447,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
447
447
|
module.exports = cmp;
|
|
448
448
|
}));
|
|
449
449
|
//#endregion
|
|
450
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
450
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js
|
|
451
451
|
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
452
452
|
const ANY = Symbol("SemVer ANY");
|
|
453
453
|
module.exports = class Comparator {
|
|
@@ -517,7 +517,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
517
517
|
const Range = require_range();
|
|
518
518
|
}));
|
|
519
519
|
//#endregion
|
|
520
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
520
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js
|
|
521
521
|
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
522
522
|
const SPACE_CHARACTERS = /\s+/g;
|
|
523
523
|
module.exports = class Range {
|
|
@@ -667,12 +667,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
667
667
|
};
|
|
668
668
|
const replaceTilde = (comp, options) => {
|
|
669
669
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
670
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
670
671
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
671
672
|
debug("tilde", comp, _, M, m, p, pr);
|
|
672
673
|
let ret;
|
|
673
674
|
if (isX(M)) ret = "";
|
|
674
|
-
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
675
|
-
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
675
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
676
|
+
else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
676
677
|
else if (pr) {
|
|
677
678
|
debug("replaceTilde pr", pr);
|
|
678
679
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
@@ -793,7 +794,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
793
794
|
};
|
|
794
795
|
}));
|
|
795
796
|
//#endregion
|
|
796
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
797
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
|
|
797
798
|
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
798
799
|
const Range = require_range();
|
|
799
800
|
const satisfies = (version, range, options) => {
|
|
@@ -807,7 +808,7 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
807
808
|
module.exports = satisfies;
|
|
808
809
|
}));
|
|
809
810
|
//#endregion
|
|
810
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
811
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
|
|
811
812
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
812
813
|
const SemVer = require_semver();
|
|
813
814
|
const parse = (version, options, throwErrors = false) => {
|
|
@@ -822,7 +823,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
822
823
|
module.exports = parse;
|
|
823
824
|
}));
|
|
824
825
|
//#endregion
|
|
825
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
826
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js
|
|
826
827
|
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
827
828
|
const parse = require_parse();
|
|
828
829
|
const valid = (version, options) => {
|
|
@@ -832,7 +833,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
832
833
|
module.exports = valid;
|
|
833
834
|
}));
|
|
834
835
|
//#endregion
|
|
835
|
-
//#region ../../node_modules/.pnpm/@tsdown+exe@0.22.
|
|
836
|
+
//#region ../../node_modules/.pnpm/@tsdown+exe@0.22.7_tsdown@0.22.7/node_modules/@tsdown/exe/dist/index.mjs
|
|
836
837
|
var import_satisfies = /* @__PURE__ */ __toESM(require_satisfies(), 1);
|
|
837
838
|
var import_valid = /* @__PURE__ */ __toESM(require_valid(), 1);
|
|
838
839
|
function getCacheDir() {
|
|
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
|
|
|
8
8
|
return id;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.
|
|
11
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
|
|
12
12
|
function _typeof(o) {
|
|
13
13
|
"@babel/helpers - typeof";
|
|
14
14
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -18,7 +18,7 @@ function _typeof(o) {
|
|
|
18
18
|
}, _typeof(o);
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region \0@oxc-project+runtime@0.
|
|
21
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
|
|
22
22
|
function toPrimitive(t, r) {
|
|
23
23
|
if ("object" != _typeof(t) || !t) return t;
|
|
24
24
|
var e = t[Symbol.toPrimitive];
|
|
@@ -30,13 +30,13 @@ function toPrimitive(t, r) {
|
|
|
30
30
|
return ("string" === r ? String : Number)(t);
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
|
|
34
34
|
function toPropertyKey(t) {
|
|
35
35
|
var i = toPrimitive(t, "string");
|
|
36
36
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
|
|
40
40
|
function _defineProperty(e, r, t) {
|
|
41
41
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
42
42
|
value: t,
|