@voidzero-dev/vite-plus-core 0.1.22 → 0.1.23
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 +35 -24
- package/dist/pluginutils/filter/index.d.mts +194 -0
- package/dist/pluginutils/filter/index.mjs +2 -0
- package/dist/pluginutils/filter-B_mD-HGz.mjs +323 -0
- package/dist/pluginutils/index.d.mts +2 -0
- package/dist/pluginutils/index.mjs +2 -0
- package/dist/rolldown/cli.mjs +7 -7
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +3 -3
- package/dist/rolldown/experimental-index.d.mts +21 -4
- package/dist/rolldown/experimental-index.mjs +14 -9
- package/dist/rolldown/filter-index.d.mts +8 -9
- package/dist/rolldown/filter-index.mjs +2 -8
- package/dist/rolldown/get-log-filter.d.mts +3 -3
- package/dist/rolldown/index.d.mts +4 -4
- package/dist/rolldown/index.mjs +5 -5
- 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-zH1vcmbM.d.mts → binding-BaCZTfMx.d.mts} +32 -3
- package/dist/rolldown/shared/{binding-ESkOU1xr.mjs → binding-CXquf8ay.mjs} +27 -26
- package/dist/rolldown/shared/{bindingify-input-options-wZdDRbfo.mjs → bindingify-input-options-D2ORek5s.mjs} +14 -14
- package/dist/rolldown/shared/{constructors-D6i2Tbyl.mjs → constructors-BiPdtLBB.mjs} +1 -1
- package/dist/rolldown/shared/{constructors-D0W3rNfA.d.mts → constructors-CbNaT434.d.mts} +2 -2
- package/dist/rolldown/shared/{define-config-5HJ1b9vG.d.mts → define-config-3BX_X2Am.d.mts} +70 -16
- package/dist/rolldown/shared/{error-BrnLyQ-g.mjs → error-BuvQYXuZ.mjs} +1 -1
- package/dist/rolldown/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
- package/dist/rolldown/shared/{load-config-BZFgt8GH.mjs → load-config-uvbpmLwO.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-dAjLOSbp.mjs → normalize-string-or-regex-CNPF6PU9.mjs} +2 -2
- package/dist/rolldown/shared/{parse-DFts7Hyl.mjs → parse-1VOPJ1Lj.mjs} +2 -2
- package/dist/rolldown/shared/{prompt-Bm9aMQjm.mjs → prompt-DV1XbtjC.mjs} +1 -1
- package/dist/rolldown/shared/{resolve-tsconfig-DCdBlPeK.mjs → resolve-tsconfig-CcfxWrib.mjs} +15 -4
- package/dist/rolldown/shared/{rolldown-Cs2eRf4R.mjs → rolldown-BZYLlfsv.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-CNhzgsn2.mjs → rolldown-build-CgMNHFY3.mjs} +54 -65
- package/dist/rolldown/shared/{transform-DgZ3paSD.d.mts → transform-7xCUVrpL.d.mts} +2 -2
- package/dist/rolldown/shared/{watch-De_8Tgeq.mjs → watch-BX_aH1Oh.mjs} +6 -6
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-5FURNVr0-D2dbyiC6.js → build-5FURNVr0-CsM6vj3e.js} +1046 -17
- package/dist/tsdown/{detect-DN3DXXYt-8gmDjZqp.js → detect-DN3DXXYt-TsZBbdhI.js} +1 -1
- package/dist/tsdown/{dist-DTzJRoOQ.js → dist-wWM45aJq.js} +2185 -1087
- package/dist/tsdown/index-types.d.ts +7 -5
- package/dist/tsdown/index.js +3 -4
- package/dist/tsdown/{main-BNUO6D3N.js → main-Cq8Is40L.js} +288 -8
- package/dist/tsdown/npm_cjs_chunk_range.cjs +11 -11
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +6 -6
- 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/{resolver-DkvdaW3s-BeVUoOo-.js → resolver-DkvdaW3s-Dz1U-gxd.js} +1 -1
- package/dist/tsdown/run.js +3 -4
- package/dist/tsdown/{tsc-Dr9kCkDm.js → tsc-Dp9emiKb.js} +3 -3
- package/dist/tsdown/{tsc-context-CANQEB9U.js → tsc-context-DXovbMXp.js} +2 -2
- package/dist/vite/client/client.mjs +61 -27
- package/dist/vite/node/chunks/build.js +21 -21
- package/dist/vite/node/chunks/dist.js +1 -1
- package/dist/vite/node/chunks/dist2.js +136 -110
- package/dist/vite/node/chunks/lib.js +1 -1
- package/dist/vite/node/chunks/logger.js +36 -3
- package/dist/vite/node/chunks/node.js +288 -181
- package/dist/vite/node/chunks/postcss-import.js +11 -11
- package/dist/vite/node/cli.js +1 -2
- package/dist/vite/node/index.d.ts +29 -14
- package/dist/vite/node/module-runner.d.ts +1 -2
- package/dist/vite/node/module-runner.js +19 -18
- package/dist/vite/types/customEvent.d.ts +1 -1
- package/package.json +13 -19
- package/dist/pluginutils/filter/composable-filters.d.ts +0 -90
- package/dist/pluginutils/filter/composable-filters.js +0 -256
- package/dist/pluginutils/filter/filter-vite-plugins.d.ts +0 -28
- package/dist/pluginutils/filter/filter-vite-plugins.js +0 -75
- package/dist/pluginutils/filter/index.d.ts +0 -3
- package/dist/pluginutils/filter/index.js +0 -3
- package/dist/pluginutils/filter/simple-filters.d.ts +0 -71
- package/dist/pluginutils/filter/simple-filters.js +0 -70
- package/dist/pluginutils/index.d.ts +0 -1
- package/dist/pluginutils/index.js +0 -1
- package/dist/pluginutils/utils.d.ts +0 -2
- package/dist/pluginutils/utils.js +0 -17
- package/dist/tsdown/debug-CLlnG64L-BkAqwHVS.js +0 -16
- package/dist/tsdown/dist-Cv2Z0Bi_.js +0 -1012
- package/dist/tsdown/filename-DQnUJlio-D7-CzKqs.js +0 -29
- package/dist/tsdown/node-B3Gdtau1.js +0 -268
- package/dist/vite/node/chunks/chunk.js +0 -35
- /package/dist/rolldown/shared/{define-config-DJOr6Iwt.mjs → define-config-Demdg3_4.mjs} +0 -0
- /package/dist/rolldown/shared/{logging-C6h4g8dA.d.mts → logging-BSNejiLS.d.mts} +0 -0
- /package/dist/rolldown/shared/{logs-D80CXhvg.mjs → logs-aMKUxRpj.mjs} +0 -0
- /package/dist/rolldown/shared/{misc-DJYbNKZX.mjs → misc-CoQm4NHO.mjs} +0 -0
- /package/dist/tsdown/{chunk-N93fKeF6.js → chunk-DJK8HYOj.js} +0 -0
- /package/dist/tsdown/{dist-JaOach5K.js → dist-CZtGyfn3.js} +0 -0
|
@@ -11,7 +11,7 @@ import { CssOptions } from "@tsdown/css";
|
|
|
11
11
|
import { IsolatedDeclarationsOptions } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
12
12
|
import { Options as UnusedOptions } from "unplugin-unused";
|
|
13
13
|
|
|
14
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
14
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/index-CTZ4qxd_.d.mts
|
|
15
15
|
//#region src/utils/types.d.ts
|
|
16
16
|
type Overwrite<T, U> = Omit<T, keyof U> & U;
|
|
17
17
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -1148,7 +1148,7 @@ type TsConfigJson = {
|
|
|
1148
1148
|
references?: TsConfigJson.References[];
|
|
1149
1149
|
};
|
|
1150
1150
|
//#endregion
|
|
1151
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.25.
|
|
1151
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.25.1_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_93c1f8e38767dc05c2802c79a6f0fd5e/node_modules/rolldown-plugin-dts/dist/index.d.mts
|
|
1152
1152
|
//#region src/options.d.ts
|
|
1153
1153
|
interface GeneralOptions {
|
|
1154
1154
|
/**
|
|
@@ -1221,6 +1221,8 @@ interface GeneralOptions {
|
|
|
1221
1221
|
* If set to `true`, and you are only exporting a single item using `export default ...`,
|
|
1222
1222
|
* the output will use `export = ...` instead of the standard ES module syntax.
|
|
1223
1223
|
* This is useful for compatibility with CommonJS.
|
|
1224
|
+
* This only controls the output format and does not enable support for
|
|
1225
|
+
* CommonJS-style `.d.ts` input.
|
|
1224
1226
|
*/
|
|
1225
1227
|
cjsDefault?: boolean;
|
|
1226
1228
|
/**
|
|
@@ -1348,7 +1350,7 @@ interface TsgoOptions {
|
|
|
1348
1350
|
path?: string;
|
|
1349
1351
|
}
|
|
1350
1352
|
//#endregion
|
|
1351
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
1353
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/types-CQaSBA5U.d.mts
|
|
1352
1354
|
//#region src/features/copy.d.ts
|
|
1353
1355
|
interface CopyEntry {
|
|
1354
1356
|
/**
|
|
@@ -2434,7 +2436,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
|
|
|
2434
2436
|
exe: false | ExeOptions;
|
|
2435
2437
|
}>; //#endregion
|
|
2436
2438
|
//#endregion
|
|
2437
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
2439
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/config-BWeUm0f3.d.mts
|
|
2438
2440
|
//#region src/config/options.d.ts
|
|
2439
2441
|
/**
|
|
2440
2442
|
* Resolve user config into resolved configs
|
|
@@ -2454,7 +2456,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
|
|
|
2454
2456
|
declare function defineConfig(options: UserConfigFn): UserConfigFn;
|
|
2455
2457
|
declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
|
|
2456
2458
|
//#endregion
|
|
2457
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
2459
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/index.d.mts
|
|
2458
2460
|
//#region src/build.d.ts
|
|
2459
2461
|
/**
|
|
2460
2462
|
* Build with tsdown.
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-5FURNVr0-D2dbyiC6.js";
|
|
1
|
+
import { r as enableDebug, u as globalLogger } from "./main-Cq8Is40L.js";
|
|
2
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-5FURNVr0-CsM6vj3e.js";
|
|
4
3
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
5
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/config.mjs
|
|
6
5
|
function defineConfig(options) {
|
|
7
6
|
return options;
|
|
8
7
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { r as __toESM, t as __commonJSMin } from "./chunk-
|
|
1
|
+
import { r as __toESM, t as __commonJSMin } from "./chunk-DJK8HYOj.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process$1, { cwd } from "node:process";
|
|
4
4
|
import readline from "node:readline";
|
|
5
|
+
import { isatty } from "node:tty";
|
|
6
|
+
import { formatWithOptions, inspect } from "node:util";
|
|
5
7
|
import { spawn } from "node:child_process";
|
|
6
8
|
import { delimiter, dirname, resolve } from "node:path";
|
|
7
9
|
import { pipeline } from "node:stream/promises";
|
|
8
10
|
import { PassThrough } from "node:stream";
|
|
9
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
11
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/general-D3muxt2f.mjs
|
|
10
12
|
const picomatch = createRequire(import.meta.url)("picomatch");
|
|
11
13
|
function toArray(val, defaultValue) {
|
|
12
14
|
if (Array.isArray(val)) return val;
|
|
@@ -170,7 +172,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
|
|
|
170
172
|
module.exports = w, w.default = w;
|
|
171
173
|
})))(), 1)).default;
|
|
172
174
|
//#endregion
|
|
173
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
175
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
|
|
174
176
|
const LogLevels = {
|
|
175
177
|
silent: 0,
|
|
176
178
|
error: 1,
|
|
@@ -252,9 +254,9 @@ function prettyFormat(format) {
|
|
|
252
254
|
}
|
|
253
255
|
return formatColor(`[${formatText}]`);
|
|
254
256
|
}
|
|
255
|
-
const colors = /* @__PURE__ */ new Map();
|
|
257
|
+
const colors$1 = /* @__PURE__ */ new Map();
|
|
256
258
|
function generateColor(name = "default") {
|
|
257
|
-
if (colors.has(name)) return colors.get(name);
|
|
259
|
+
if (colors$1.has(name)) return colors$1.get(name);
|
|
258
260
|
let color;
|
|
259
261
|
if (name === "default") color = blue;
|
|
260
262
|
else {
|
|
@@ -262,7 +264,7 @@ function generateColor(name = "default") {
|
|
|
262
264
|
for (let i = 0; i < name.length; i++) hash = name.charCodeAt(i) + ((hash << 5) - hash);
|
|
263
265
|
color = rgb(...hslToRgb(hash % 360, 35, 55));
|
|
264
266
|
}
|
|
265
|
-
colors.set(name, color);
|
|
267
|
+
colors$1.set(name, color);
|
|
266
268
|
return color;
|
|
267
269
|
}
|
|
268
270
|
function hslToRgb(h, s, l) {
|
|
@@ -294,9 +296,287 @@ function hue2rgb(p, q, t) {
|
|
|
294
296
|
return p;
|
|
295
297
|
}
|
|
296
298
|
//#endregion
|
|
297
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
299
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/package-Dzmmm_a2.mjs
|
|
298
300
|
var version = "0.22.0";
|
|
299
301
|
//#endregion
|
|
302
|
+
//#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/core.js
|
|
303
|
+
function coerce(value) {
|
|
304
|
+
if (value instanceof Error) return value.stack || value.message;
|
|
305
|
+
return value;
|
|
306
|
+
}
|
|
307
|
+
function selectColor(colors, namespace) {
|
|
308
|
+
let hash = 0;
|
|
309
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
310
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
311
|
+
hash |= 0;
|
|
312
|
+
}
|
|
313
|
+
return colors[Math.abs(hash) % colors.length];
|
|
314
|
+
}
|
|
315
|
+
function matchesTemplate(search, template) {
|
|
316
|
+
let searchIndex = 0;
|
|
317
|
+
let templateIndex = 0;
|
|
318
|
+
let starIndex = -1;
|
|
319
|
+
let matchIndex = 0;
|
|
320
|
+
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
321
|
+
starIndex = templateIndex;
|
|
322
|
+
matchIndex = searchIndex;
|
|
323
|
+
templateIndex++;
|
|
324
|
+
} else {
|
|
325
|
+
searchIndex++;
|
|
326
|
+
templateIndex++;
|
|
327
|
+
}
|
|
328
|
+
else if (starIndex !== -1) {
|
|
329
|
+
templateIndex = starIndex + 1;
|
|
330
|
+
matchIndex++;
|
|
331
|
+
searchIndex = matchIndex;
|
|
332
|
+
} else return false;
|
|
333
|
+
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
334
|
+
return templateIndex === template.length;
|
|
335
|
+
}
|
|
336
|
+
function humanize(value) {
|
|
337
|
+
if (value >= 1e3) return `${(value / 1e3).toFixed(1)}s`;
|
|
338
|
+
return `${value}ms`;
|
|
339
|
+
}
|
|
340
|
+
let globalNamespaces = "";
|
|
341
|
+
function namespaces() {
|
|
342
|
+
return globalNamespaces;
|
|
343
|
+
}
|
|
344
|
+
function createDebug$1(namespace, options) {
|
|
345
|
+
let prevTime;
|
|
346
|
+
let enableOverride;
|
|
347
|
+
let namespacesCache;
|
|
348
|
+
let enabledCache;
|
|
349
|
+
const debug = (...args) => {
|
|
350
|
+
if (!debug.enabled) return;
|
|
351
|
+
const curr = Date.now();
|
|
352
|
+
const diff = curr - (prevTime || curr);
|
|
353
|
+
prevTime = curr;
|
|
354
|
+
args[0] = coerce(args[0]);
|
|
355
|
+
if (typeof args[0] !== "string") args.unshift("%O");
|
|
356
|
+
let index = 0;
|
|
357
|
+
args[0] = args[0].replace(/%([a-z%])/gi, (match, format) => {
|
|
358
|
+
if (match === "%%") return "%";
|
|
359
|
+
index++;
|
|
360
|
+
const formatter = options.formatters[format];
|
|
361
|
+
if (typeof formatter === "function") {
|
|
362
|
+
const value = args[index];
|
|
363
|
+
match = formatter.call(debug, value);
|
|
364
|
+
args.splice(index, 1);
|
|
365
|
+
index--;
|
|
366
|
+
}
|
|
367
|
+
return match;
|
|
368
|
+
});
|
|
369
|
+
options.formatArgs.call(debug, diff, args);
|
|
370
|
+
debug.log(...args);
|
|
371
|
+
};
|
|
372
|
+
debug.extend = function(namespace$1, delimiter = ":") {
|
|
373
|
+
return createDebug$1(this.namespace + delimiter + namespace$1, {
|
|
374
|
+
useColors: this.useColors,
|
|
375
|
+
color: this.color,
|
|
376
|
+
formatArgs: this.formatArgs,
|
|
377
|
+
formatters: this.formatters,
|
|
378
|
+
inspectOpts: this.inspectOpts,
|
|
379
|
+
log: this.log,
|
|
380
|
+
humanize: this.humanize
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
Object.assign(debug, options);
|
|
384
|
+
debug.namespace = namespace;
|
|
385
|
+
Object.defineProperty(debug, "enabled", {
|
|
386
|
+
enumerable: true,
|
|
387
|
+
configurable: false,
|
|
388
|
+
get: () => {
|
|
389
|
+
if (enableOverride != null) return enableOverride;
|
|
390
|
+
if (namespacesCache !== globalNamespaces) {
|
|
391
|
+
namespacesCache = globalNamespaces;
|
|
392
|
+
enabledCache = enabled(namespace);
|
|
393
|
+
}
|
|
394
|
+
return enabledCache;
|
|
395
|
+
},
|
|
396
|
+
set: (v) => {
|
|
397
|
+
enableOverride = v;
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
return debug;
|
|
401
|
+
}
|
|
402
|
+
let names = [];
|
|
403
|
+
let skips = [];
|
|
404
|
+
function enable$1(namespaces$1) {
|
|
405
|
+
globalNamespaces = namespaces$1;
|
|
406
|
+
names = [];
|
|
407
|
+
skips = [];
|
|
408
|
+
const split = globalNamespaces.trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
409
|
+
for (const ns of split) if (ns[0] === "-") skips.push(ns.slice(1));
|
|
410
|
+
else names.push(ns);
|
|
411
|
+
}
|
|
412
|
+
function enabled(name) {
|
|
413
|
+
for (const skip of skips) if (matchesTemplate(name, skip)) return false;
|
|
414
|
+
for (const ns of names) if (matchesTemplate(name, ns)) return true;
|
|
415
|
+
return false;
|
|
416
|
+
}
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/node.js
|
|
419
|
+
const colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
|
|
420
|
+
20,
|
|
421
|
+
21,
|
|
422
|
+
26,
|
|
423
|
+
27,
|
|
424
|
+
32,
|
|
425
|
+
33,
|
|
426
|
+
38,
|
|
427
|
+
39,
|
|
428
|
+
40,
|
|
429
|
+
41,
|
|
430
|
+
42,
|
|
431
|
+
43,
|
|
432
|
+
44,
|
|
433
|
+
45,
|
|
434
|
+
56,
|
|
435
|
+
57,
|
|
436
|
+
62,
|
|
437
|
+
63,
|
|
438
|
+
68,
|
|
439
|
+
69,
|
|
440
|
+
74,
|
|
441
|
+
75,
|
|
442
|
+
76,
|
|
443
|
+
77,
|
|
444
|
+
78,
|
|
445
|
+
79,
|
|
446
|
+
80,
|
|
447
|
+
81,
|
|
448
|
+
92,
|
|
449
|
+
93,
|
|
450
|
+
98,
|
|
451
|
+
99,
|
|
452
|
+
112,
|
|
453
|
+
113,
|
|
454
|
+
128,
|
|
455
|
+
129,
|
|
456
|
+
134,
|
|
457
|
+
135,
|
|
458
|
+
148,
|
|
459
|
+
149,
|
|
460
|
+
160,
|
|
461
|
+
161,
|
|
462
|
+
162,
|
|
463
|
+
163,
|
|
464
|
+
164,
|
|
465
|
+
165,
|
|
466
|
+
166,
|
|
467
|
+
167,
|
|
468
|
+
168,
|
|
469
|
+
169,
|
|
470
|
+
170,
|
|
471
|
+
171,
|
|
472
|
+
172,
|
|
473
|
+
173,
|
|
474
|
+
178,
|
|
475
|
+
179,
|
|
476
|
+
184,
|
|
477
|
+
185,
|
|
478
|
+
196,
|
|
479
|
+
197,
|
|
480
|
+
198,
|
|
481
|
+
199,
|
|
482
|
+
200,
|
|
483
|
+
201,
|
|
484
|
+
202,
|
|
485
|
+
203,
|
|
486
|
+
204,
|
|
487
|
+
205,
|
|
488
|
+
206,
|
|
489
|
+
207,
|
|
490
|
+
208,
|
|
491
|
+
209,
|
|
492
|
+
214,
|
|
493
|
+
215,
|
|
494
|
+
220,
|
|
495
|
+
221
|
|
496
|
+
] : [
|
|
497
|
+
6,
|
|
498
|
+
2,
|
|
499
|
+
3,
|
|
500
|
+
4,
|
|
501
|
+
5,
|
|
502
|
+
1
|
|
503
|
+
];
|
|
504
|
+
const inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
|
|
505
|
+
const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
|
|
506
|
+
let value = process.env[key];
|
|
507
|
+
const lowerCase = typeof value === "string" && value.toLowerCase();
|
|
508
|
+
if (value === "null") value = null;
|
|
509
|
+
else if (lowerCase === "yes" || lowerCase === "on" || lowerCase === "true" || lowerCase === "enabled") value = true;
|
|
510
|
+
else if (lowerCase === "no" || lowerCase === "off" || lowerCase === "false" || lowerCase === "disabled") value = false;
|
|
511
|
+
else value = Number(value);
|
|
512
|
+
obj[prop] = value;
|
|
513
|
+
return obj;
|
|
514
|
+
}, {});
|
|
515
|
+
function useColors() {
|
|
516
|
+
return "colors" in inspectOpts ? Boolean(inspectOpts.colors) : isatty(process.stderr.fd);
|
|
517
|
+
}
|
|
518
|
+
function getDate() {
|
|
519
|
+
if (inspectOpts.hideDate) return "";
|
|
520
|
+
return `${(/* @__PURE__ */ new Date()).toISOString()} `;
|
|
521
|
+
}
|
|
522
|
+
function formatArgs(diff, args) {
|
|
523
|
+
const { namespace: name, useColors: useColors$1 } = this;
|
|
524
|
+
if (useColors$1) {
|
|
525
|
+
const c = this.color;
|
|
526
|
+
const colorCode = `\u001B[3${c < 8 ? c : `8;5;${c}`}`;
|
|
527
|
+
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
|
528
|
+
args[0] = prefix + args[0].split("\n").join(`\n${prefix}`);
|
|
529
|
+
args.push(`${colorCode}m+${this.humanize(diff)}\u001B[0m`);
|
|
530
|
+
} else args[0] = `${getDate()}${name} ${args[0]}`;
|
|
531
|
+
}
|
|
532
|
+
function log(...args) {
|
|
533
|
+
process.stderr.write(`${formatWithOptions(this.inspectOpts, ...args)}\n`);
|
|
534
|
+
}
|
|
535
|
+
const defaultOptions = {
|
|
536
|
+
useColors: useColors(),
|
|
537
|
+
formatArgs,
|
|
538
|
+
formatters: {
|
|
539
|
+
o(v) {
|
|
540
|
+
this.inspectOpts.colors = this.useColors;
|
|
541
|
+
return inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
542
|
+
},
|
|
543
|
+
O(v) {
|
|
544
|
+
this.inspectOpts.colors = this.useColors;
|
|
545
|
+
return inspect(v, this.inspectOpts);
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
inspectOpts,
|
|
549
|
+
log,
|
|
550
|
+
humanize
|
|
551
|
+
};
|
|
552
|
+
function createDebug(namespace, options) {
|
|
553
|
+
var _ref;
|
|
554
|
+
const color = (_ref = options && options.color) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);
|
|
555
|
+
return createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));
|
|
556
|
+
}
|
|
557
|
+
function save(namespaces$1) {
|
|
558
|
+
if (namespaces$1) process.env.DEBUG = namespaces$1;
|
|
559
|
+
else delete process.env.DEBUG;
|
|
560
|
+
}
|
|
561
|
+
function enable(namespaces$1) {
|
|
562
|
+
save(namespaces$1);
|
|
563
|
+
enable$1(namespaces$1);
|
|
564
|
+
}
|
|
565
|
+
enable$1(process.env.DEBUG || "");
|
|
566
|
+
//#endregion
|
|
567
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/debug-CLlnG64L.mjs
|
|
568
|
+
const debugLog = createDebug("tsdown:debug");
|
|
569
|
+
function enableDebug(debug) {
|
|
570
|
+
if (!debug) return;
|
|
571
|
+
let namespace;
|
|
572
|
+
if (debug === true) namespace = "tsdown:*";
|
|
573
|
+
else namespace = resolveComma(toArray(debug)).map((v) => `tsdown:${v}`).join(",");
|
|
574
|
+
const ns = namespaces();
|
|
575
|
+
if (ns) namespace += `,${ns}`;
|
|
576
|
+
enable(namespace);
|
|
577
|
+
debugLog("Debugging enabled", namespace);
|
|
578
|
+
}
|
|
579
|
+
//#endregion
|
|
300
580
|
//#region ../../node_modules/.pnpm/tinyexec@1.1.2/node_modules/tinyexec/dist/main.mjs
|
|
301
581
|
var u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);
|
|
302
582
|
var d = /* @__PURE__ */ createRequire(import.meta.url);
|
|
@@ -890,4 +1170,4 @@ const V = (e, t, n) => {
|
|
|
890
1170
|
};
|
|
891
1171
|
const H = V;
|
|
892
1172
|
//#endregion
|
|
893
|
-
export {
|
|
1173
|
+
export { noop as C, resolveRegex as D, resolveComma as E, slash as O, matchPattern as S, promiseWithResolvers as T, red as _, version as a, debounce as b, generateColor as c, prettyFormat as d, blue as f, hex as g, green as h, createDebug as i, toArray as k, getNameLabel as l, dim as m, V as n, LogLevels as o, bold as p, enableDebug as r, createLogger as s, H as t, globalLogger as u, underline as v, pkgExists as w, importWithError as x, yellow as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
2
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/lrucache.js
|
|
4
4
|
var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
5
5
|
var LRUCache = class {
|
|
6
6
|
constructor() {
|
|
@@ -33,56 +33,56 @@ var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
33
33
|
module.exports = LRUCache;
|
|
34
34
|
}));
|
|
35
35
|
//#endregion
|
|
36
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
36
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/compare.js
|
|
37
37
|
var require_compare = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
38
38
|
const SemVer = require_semver$1.require_semver();
|
|
39
39
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
40
40
|
module.exports = compare;
|
|
41
41
|
}));
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
43
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/eq.js
|
|
44
44
|
var require_eq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
45
45
|
const compare = require_compare();
|
|
46
46
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
47
47
|
module.exports = eq;
|
|
48
48
|
}));
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
50
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/neq.js
|
|
51
51
|
var require_neq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
52
52
|
const compare = require_compare();
|
|
53
53
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
54
54
|
module.exports = neq;
|
|
55
55
|
}));
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
57
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/gt.js
|
|
58
58
|
var require_gt = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59
59
|
const compare = require_compare();
|
|
60
60
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
61
61
|
module.exports = gt;
|
|
62
62
|
}));
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
64
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/gte.js
|
|
65
65
|
var require_gte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
66
66
|
const compare = require_compare();
|
|
67
67
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
68
68
|
module.exports = gte;
|
|
69
69
|
}));
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
71
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/lt.js
|
|
72
72
|
var require_lt = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
73
73
|
const compare = require_compare();
|
|
74
74
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
75
75
|
module.exports = lt;
|
|
76
76
|
}));
|
|
77
77
|
//#endregion
|
|
78
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
78
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/lte.js
|
|
79
79
|
var require_lte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
80
80
|
const compare = require_compare();
|
|
81
81
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
82
82
|
module.exports = lte;
|
|
83
83
|
}));
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
85
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/cmp.js
|
|
86
86
|
var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
87
87
|
const eq = require_eq();
|
|
88
88
|
const neq = require_neq();
|
|
@@ -114,7 +114,7 @@ var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
114
114
|
module.exports = cmp;
|
|
115
115
|
}));
|
|
116
116
|
//#endregion
|
|
117
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
117
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/classes/comparator.js
|
|
118
118
|
var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
119
119
|
const ANY = Symbol("SemVer ANY");
|
|
120
120
|
module.exports = class Comparator {
|
|
@@ -184,7 +184,7 @@ var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
184
184
|
const Range = require_range();
|
|
185
185
|
}));
|
|
186
186
|
//#endregion
|
|
187
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
187
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/classes/range.js
|
|
188
188
|
var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
189
189
|
const SPACE_CHARACTERS = /\s+/g;
|
|
190
190
|
module.exports = class Range {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
2
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/parse-options.js
|
|
3
3
|
var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
4
4
|
const looseOption = Object.freeze({ loose: true });
|
|
5
5
|
const emptyOpts = Object.freeze({});
|
|
@@ -11,7 +11,7 @@ var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
11
11
|
module.exports = parseOptions;
|
|
12
12
|
}));
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
14
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/constants.js
|
|
15
15
|
var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
16
16
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
17
17
|
const MAX_LENGTH = 256;
|
|
@@ -36,12 +36,12 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
36
36
|
};
|
|
37
37
|
}));
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
39
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/debug.js
|
|
40
40
|
var require_debug = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
41
41
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
42
42
|
}));
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
44
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/re.js
|
|
45
45
|
var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
46
46
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
47
47
|
const debug = require_debug();
|
|
@@ -120,7 +120,7 @@ var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
120
120
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
121
121
|
}));
|
|
122
122
|
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
123
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/identifiers.js
|
|
124
124
|
var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
125
125
|
const numeric = /^[0-9]+$/;
|
|
126
126
|
const compareIdentifiers = (a, b) => {
|
|
@@ -140,7 +140,7 @@ var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
140
140
|
};
|
|
141
141
|
}));
|
|
142
142
|
//#endregion
|
|
143
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
143
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/classes/semver.js
|
|
144
144
|
var require_semver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
145
145
|
const debug = require_debug();
|
|
146
146
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
2
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/parse.js
|
|
4
4
|
var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
5
5
|
const SemVer = require_semver$1.require_semver();
|
|
6
6
|
const parse = (version, options, throwErrors = false) => {
|
|
@@ -15,7 +15,7 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
15
15
|
module.exports = parse;
|
|
16
16
|
}));
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
18
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/coerce.js
|
|
19
19
|
var require_coerce = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
20
20
|
const SemVer = require_semver$1.require_semver();
|
|
21
21
|
const parse = require_parse();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
2
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/satisfies.js
|
|
4
4
|
var require_satisfies = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
5
5
|
const Range = require_range$1.require_range();
|
|
6
6
|
const satisfies = (version, range, options) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
2
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
3
3
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
4
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
4
|
+
//#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/min-version.js
|
|
5
5
|
var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
6
6
|
const SemVer = require_semver$1.require_semver();
|
|
7
7
|
const Range = require_range$1.require_range();
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { t as enableDebug } from "./debug-CLlnG64L-BkAqwHVS.js";
|
|
2
|
+
import { a as version, f as blue, g as hex, n as V, r as enableDebug, u as globalLogger } from "./main-Cq8Is40L.js";
|
|
4
3
|
import module from "node:module";
|
|
5
4
|
import process$1 from "node:process";
|
|
6
5
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
@@ -622,7 +621,7 @@ var CAC = class extends EventTarget {
|
|
|
622
621
|
*/
|
|
623
622
|
const cac = (name = "") => new CAC(name);
|
|
624
623
|
//#endregion
|
|
625
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
624
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_e80978d33a319eb1e0c97ec71b684e94/node_modules/tsdown/dist/run.mjs
|
|
626
625
|
const cli = cac("tsdown");
|
|
627
626
|
cli.help().version(version);
|
|
628
627
|
cli.command("[...files]", "Bundle files", {
|
|
@@ -631,7 +630,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
631
630
|
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
|
|
632
631
|
globalLogger.level = flags.logLevel || "info";
|
|
633
632
|
globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
|
|
634
|
-
const { build } = await import("./build-5FURNVr0-
|
|
633
|
+
const { build } = await import("./build-5FURNVr0-CsM6vj3e.js").then((n) => n.r).then((n) => n.r);
|
|
635
634
|
if (input.length > 0) flags.entry = input;
|
|
636
635
|
await build(flags);
|
|
637
636
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as globalContext } from "./tsc-context-
|
|
1
|
+
import { i as createDebug } from "./main-Cq8Is40L.js";
|
|
2
|
+
import { l as RE_DTS, u as RE_DTS_MAP } from "./build-5FURNVr0-CsM6vj3e.js";
|
|
3
|
+
import { n as globalContext } from "./tsc-context-DXovbMXp.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as createDebug } from "./main-Cq8Is40L.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.25.
|
|
3
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.25.1_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_93c1f8e38767dc05c2802c79a6f0fd5e/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
|
|
4
4
|
const debug = createDebug("rolldown-plugin-dts:tsc-context");
|
|
5
5
|
function createContext() {
|
|
6
6
|
return {
|