@voidzero-dev/vite-plus-core 0.1.15-alpha.0 → 0.1.15-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.mjs +2 -2
  3. package/dist/rolldown/experimental-index.mjs +8 -8
  4. package/dist/rolldown/index.mjs +4 -4
  5. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  6. package/dist/rolldown/parse-ast-index.mjs +1 -1
  7. package/dist/rolldown/plugins-index.mjs +2 -2
  8. package/dist/rolldown/shared/{bindingify-input-options-DHK3MwUV.mjs → bindingify-input-options-BCAF6TcN.mjs} +4 -4
  9. package/dist/rolldown/shared/{constructors-BfnFojy3.mjs → constructors-D3ZqEbT5.mjs} +1 -1
  10. package/dist/rolldown/shared/{error-D8cGyrC7.mjs → error-BLhcSyeg.mjs} +1 -1
  11. package/dist/rolldown/shared/{load-config-DT77Jzbv.mjs → load-config-CFr1Adp9.mjs} +1 -1
  12. package/dist/rolldown/shared/{normalize-string-or-regex-BFB1QNW3.mjs → normalize-string-or-regex-CCT059Zu.mjs} +1 -1
  13. package/dist/rolldown/shared/{parse-CCDXnkPL.mjs → parse-tRtSyZ-b.mjs} +1 -1
  14. package/dist/rolldown/shared/{resolve-tsconfig-gxOviCVx.mjs → resolve-tsconfig-DJjTYbYr.mjs} +2 -2
  15. package/dist/rolldown/shared/{rolldown-DFpH3t7W.mjs → rolldown-BMLc9elZ.mjs} +1 -1
  16. package/dist/rolldown/shared/{rolldown-build-ZUNnA-sr.mjs → rolldown-build-CxsB9UaT.mjs} +4 -4
  17. package/dist/rolldown/shared/{watch-C4x8DFD_.mjs → watch-DJOwXDOi.mjs} +4 -4
  18. package/dist/rolldown/utils-index.mjs +2 -2
  19. package/dist/tsdown/build-D-zhBXEK-X12uvwLb.js +2 -0
  20. package/dist/tsdown/{build-CoLhkNXE-7EboM7qg.js → build-DpU0PBVv-CUY7qeWj.js} +355 -94
  21. package/dist/tsdown/{debug-C4FmgzkJ-PiSP_iWN.js → debug-C4FmgzkJ-A9B4RM_w.js} +2 -2
  22. package/dist/tsdown/{detect-DN3DXXYt-XnCR4Kxo.js → detect-DN3DXXYt-GIMDNpE1.js} +1 -1
  23. package/dist/tsdown/{dist-DUfkEqWP.js → dist-BkOM3Vdg.js} +13 -13
  24. package/dist/tsdown/{dist-CtF_Stv5.js → dist-dJp148cE.js} +3 -3
  25. package/dist/tsdown/index-types.d.ts +131 -131
  26. package/dist/tsdown/index.js +4 -4
  27. package/dist/tsdown/{main-CDlTYgDd.js → main-BgAbc3Rw.js} +3 -3
  28. package/dist/tsdown/npm_entry_picomatch.cjs +217 -9
  29. package/dist/tsdown/run.js +3 -3
  30. package/dist/vite/client/client.mjs +4 -4
  31. package/dist/vite/node/chunks/build2.js +1 -0
  32. package/dist/vite/node/chunks/node.js +218 -10
  33. package/package.json +10 -10
  34. package/dist/tsdown/build-dhDyu66J-DRVHWKha.js +0 -2
  35. /package/dist/rolldown/shared/{binding-ER32uZ22.mjs → binding-CkWPGrSM.mjs} +0 -0
@@ -1,6 +1,6 @@
1
- import { C as resolveComma, E as toArray } from "./main-CDlTYgDd.js";
1
+ import { C as resolveComma, E as toArray } from "./main-BgAbc3Rw.js";
2
2
  import { n as enable, r as namespaces, t as createDebug } from "./node-B3Gdtau1.js";
3
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/debug-C4FmgzkJ.mjs
3
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/debug-C4FmgzkJ.mjs
4
4
  const debugLog = createDebug("tsdown:debug");
5
5
  function enableDebug(debug) {
6
6
  if (!debug) return;
@@ -1,7 +1,7 @@
1
1
  import process from "node:process";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs/promises";
4
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/detect-DN3DXXYt.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/detect-DN3DXXYt.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",
@@ -5,10 +5,10 @@ import "node:child_process";
5
5
  import path from "node:path";
6
6
  import { rolldown } from "@voidzero-dev/vite-plus-core/rolldown";
7
7
  import { tmpdir } from "node:os";
8
- import re, { existsSync } from "node:fs";
8
+ import fs, { existsSync } from "node:fs";
9
9
  import { Buffer } from "node:buffer";
10
10
  import crypto from "node:crypto";
11
- //#region ../../node_modules/.pnpm/unrun@0.2.32/node_modules/unrun/dist/src-GU5PtktT.mjs
11
+ //#region ../../node_modules/.pnpm/unrun@0.2.33/node_modules/unrun/dist/src-GU5PtktT.mjs
12
12
  /**
13
13
  * Applies preset-specific handling to the loaded module.
14
14
  */
@@ -54,7 +54,7 @@ function resolveOptions(options = {}) {
54
54
  inputOptions: options.inputOptions,
55
55
  outputOptions: options.outputOptions
56
56
  };
57
- if (!re.existsSync(resolvedOptions.path)) throw new Error(`[unrun] File not found: ${resolvedOptions.path}`);
57
+ if (!fs.existsSync(resolvedOptions.path)) throw new Error(`[unrun] File not found: ${resolvedOptions.path}`);
58
58
  if (!new Set([
59
59
  "none",
60
60
  "jiti",
@@ -268,7 +268,7 @@ function createJsonLoader() {
268
268
  let isRequire = false;
269
269
  try {
270
270
  if (importer) {
271
- const src = re.readFileSync(importer, "utf8");
271
+ const src = fs.readFileSync(importer, "utf8");
272
272
  const escaped = source.replaceAll(/[.*+?^${}()|[\]\\]/g, (m) => `\\${m}`);
273
273
  const pattern = String.raw`\brequire\s*\(\s*['"]${escaped}['"]\s*\)`;
274
274
  isRequire = new RegExp(pattern).test(src);
@@ -281,7 +281,7 @@ function createJsonLoader() {
281
281
  handler(id) {
282
282
  try {
283
283
  const realId = id.replace(/\?unrun-json\.(?:mjs|cjs)$/, "");
284
- const src = re.readFileSync(realId, "utf8");
284
+ const src = fs.readFileSync(realId, "utf8");
285
285
  const data = JSON.parse(src);
286
286
  const jsonLiteral = JSON.stringify(data);
287
287
  if (id.endsWith("?unrun-json.cjs")) return { code: `const __data = ${jsonLiteral}\ntry { Object.defineProperty(__data, 'default', { value: __data, enumerable: false, configurable: true }) } catch {}\nmodule.exports = __data\n` };
@@ -375,7 +375,7 @@ function createRequireResolveFix(options) {
375
375
  ".cjs"
376
376
  ]) {
377
377
  const testPath = path.resolve(baseDir, id + ext);
378
- if (re.existsSync(testPath)) return JSON.stringify(testPath);
378
+ if (fs.existsSync(testPath)) return JSON.stringify(testPath);
379
379
  }
380
380
  const resolvedPath = path.resolve(baseDir, id);
381
381
  return JSON.stringify(resolvedPath);
@@ -416,7 +416,7 @@ function createSourceContextShimsPlugin() {
416
416
  const normalizedPhysicalId = path.normalize(physicalId);
417
417
  let code;
418
418
  try {
419
- code = re.readFileSync(normalizedPhysicalId, "utf8");
419
+ code = fs.readFileSync(normalizedPhysicalId, "utf8");
420
420
  } catch {
421
421
  return null;
422
422
  }
@@ -658,7 +658,7 @@ function cleanModule(moduleUrl, options) {
658
658
  try {
659
659
  if (moduleUrl.startsWith("file://")) {
660
660
  const filePath = new URL(moduleUrl);
661
- re.unlinkSync(filePath);
661
+ fs.unlinkSync(filePath);
662
662
  }
663
663
  } catch (error) {
664
664
  if (error.code !== "ENOENT") throw error;
@@ -682,14 +682,14 @@ function writeModule(code, options) {
682
682
  const projectNodeModules = path.join(process.cwd(), "node_modules");
683
683
  const outDir = path.join(projectNodeModules, ".unrun");
684
684
  const outFile = path.join(outDir, fname);
685
- if (!re.existsSync(outFile)) try {
686
- re.mkdirSync(outDir, { recursive: true });
687
- re.writeFileSync(outFile, code, "utf8");
685
+ if (!fs.existsSync(outFile)) try {
686
+ fs.mkdirSync(outDir, { recursive: true });
687
+ fs.writeFileSync(outFile, code, "utf8");
688
688
  } catch {
689
689
  const fallbackDir = path.join(tmpdir(), "unrun-cache");
690
690
  const fallbackFile = path.join(fallbackDir, fname);
691
- re.mkdirSync(fallbackDir, { recursive: true });
692
- re.writeFileSync(fallbackFile, code, "utf8");
691
+ fs.mkdirSync(fallbackDir, { recursive: true });
692
+ fs.writeFileSync(fallbackFile, code, "utf8");
693
693
  moduleUrl = pathToFileURL(fallbackFile).href;
694
694
  }
695
695
  moduleUrl = moduleUrl || pathToFileURL(outFile).href;
@@ -11,7 +11,7 @@ import { importerId, include } from "@voidzero-dev/vite-plus-core/rolldown/filte
11
11
  import nativeFs from "fs";
12
12
  import path$1 from "path";
13
13
  import { tmpdir } from "node:os";
14
- import re, { existsSync } from "node:fs";
14
+ import fs$1, { existsSync } from "node:fs";
15
15
  import { ResolverFactory, isolatedDeclarationSync } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
16
16
  import Be from "os";
17
17
  //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
@@ -30356,11 +30356,11 @@ function h(e) {
30356
30356
  }
30357
30357
  i(h, "slash");
30358
30358
  const Z = i((e) => {
30359
- const t = re[e];
30359
+ const t = fs$1[e];
30360
30360
  return (s, ...n) => {
30361
30361
  const o = `${e}:${n.join(":")}`;
30362
30362
  let l = s == null ? void 0 : s.get(o);
30363
- return l === void 0 && (l = Reflect.apply(t, re, n), s?.set(o, l)), l;
30363
+ return l === void 0 && (l = Reflect.apply(t, fs$1, n), s?.set(o, l)), l;
30364
30364
  };
30365
30365
  }, "cacheFs"), E = Z("existsSync"), $e = Z("readFileSync"), G = Z("statSync"), fe = i((e, t, s) => {
30366
30366
  for (;;) {
@@ -2,7 +2,7 @@ import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
2
2
  import { BuildOptions, ChecksOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, TreeshakingOptions } from "@voidzero-dev/vite-plus-core/rolldown";
3
3
  import { IsolatedDeclarationsOptions } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
4
4
 
5
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/logger-DtCm1ySP.d.mts
5
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/logger-DtCm1ySP.d.mts
6
6
  //#region src/utils/types.d.ts
7
7
  type Overwrite<T, U> = Omit<T, keyof U> & U;
8
8
  type Awaitable<T> = T | Promise<T>;
@@ -8474,7 +8474,7 @@ interface GlobDependency {
8474
8474
  glob: string;
8475
8475
  }
8476
8476
  //#endregion
8477
- //#region ../../node_modules/.pnpm/@tsdown+css@0.21.4_jiti@2.6.1_postcss-import@16.1.1_postcss@8.5.8__postcss-modules@6.0._3b842bfa645c044334f2fa01c5474b7d/node_modules/@tsdown/css/dist/index.d.mts
8477
+ //#region ../../node_modules/.pnpm/@tsdown+css@0.21.5_jiti@2.6.1_postcss-import@16.1.1_postcss@8.5.8__postcss-modules@6.0._32088c36ee65e7431489a61224ab9856/node_modules/@tsdown/css/dist/index.d.mts
8478
8478
  //#region src/options.d.ts
8479
8479
  type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
8480
8480
  interface CSSModulesOptions {
@@ -8622,6 +8622,131 @@ interface StylusPreprocessorOptions {
8622
8622
  [key: string]: any;
8623
8623
  }
8624
8624
  //#endregion
8625
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.11_@pnpm+logger@1001.0.1_typescript@5.9.3_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
8626
+ //#region src/node/cli-commands.d.ts
8627
+ interface StartOptions {
8628
+ root?: string;
8629
+ config?: string;
8630
+ host: string;
8631
+ port?: string | number;
8632
+ open?: boolean;
8633
+ }
8634
+ //#endregion
8635
+ //#region ../../node_modules/.pnpm/@tsdown+exe@0.21.5_tsdown@0.21.5/node_modules/@tsdown/exe/dist/index.d.mts
8636
+ //#region src/platform.d.ts
8637
+ type ExePlatform = "win" | "darwin" | "linux";
8638
+ type ExeArch = "x64" | "arm64";
8639
+ interface ExeTarget {
8640
+ platform: ExePlatform;
8641
+ arch: ExeArch;
8642
+ /**
8643
+ * Node.js version to use for the executable.
8644
+ *
8645
+ * Accepts a valid semver string (e.g., `"25.7.0"`), or the special values
8646
+ * `"latest"` / `"latest-lts"` which resolve the version automatically from
8647
+ * {@link https://nodejs.org/dist/index.json}.
8648
+ *
8649
+ * The minimum required version is 25.7.0, which is when SEA support was added to Node.js.
8650
+ */
8651
+ nodeVersion: (string & {}) | "latest" | "latest-lts" | `${string}.${string}.${string}`;
8652
+ }
8653
+ interface ExeExtensionOptions {
8654
+ /**
8655
+ * Cross-platform targets for building executables.
8656
+ * Requires `@tsdown/exe` to be installed.
8657
+ * When specified, builds an executable for each target platform/arch combination.
8658
+ *
8659
+ * @example
8660
+ * ```ts
8661
+ * targets: [
8662
+ * { platform: 'linux', arch: 'x64', nodeVersion: '25.7.0' },
8663
+ * { platform: 'darwin', arch: 'arm64', nodeVersion: '25.7.0' },
8664
+ * { platform: 'win', arch: 'x64', nodeVersion: '25.7.0' },
8665
+ * ]
8666
+ * ```
8667
+ */
8668
+ targets?: ExeTarget[];
8669
+ }
8670
+ //#endregion
8671
+ //#region ../../node_modules/.pnpm/@arethetypeswrong+core@0.18.2/node_modules/@arethetypeswrong/core/dist/checkPackage.d.ts
8672
+ interface CheckPackageOptions {
8673
+ /**
8674
+ * Exhaustive list of entrypoints to check. The package root is `"."`.
8675
+ * Specifying this option disables automatic entrypoint discovery,
8676
+ * and overrides the `includeEntrypoints` and `excludeEntrypoints` options.
8677
+ */
8678
+ entrypoints?: string[];
8679
+ /**
8680
+ * Entrypoints to check in addition to automatically discovered ones.
8681
+ */
8682
+ includeEntrypoints?: string[];
8683
+ /**
8684
+ * Entrypoints to exclude from checking.
8685
+ */
8686
+ excludeEntrypoints?: (string | RegExp)[];
8687
+ /**
8688
+ * Whether to automatically consider all published files as entrypoints
8689
+ * in the absence of any other detected or configured entrypoints.
8690
+ */
8691
+ entrypointsLegacy?: boolean;
8692
+ }
8693
+ //#endregion
8694
+ //#region ../../node_modules/.pnpm/publint@0.3.18/node_modules/publint/src/index.d.ts
8695
+ interface PackFile {
8696
+ name: string;
8697
+ data: string | ArrayBuffer | Uint8Array;
8698
+ }
8699
+ interface Options$2 {
8700
+ /**
8701
+ * Path to your package that contains a package.json file.
8702
+ *
8703
+ * ::: info Environment notes
8704
+ * - **Node.js**: Defaults to `process.cwd()`.
8705
+ * - **Browser**: Automatically inferred from `{ tarball: ArrayBuffer | ReadableStream }`. If `{ files: PackFile[] }` is used,
8706
+ * this must be the shared directory of all files in `files`. e.g. if `name` has `"package/src/index.js"`,
8707
+ * the `pkgDir` should be `"package"`.
8708
+ * :::
8709
+ */
8710
+ pkgDir?: string;
8711
+ /**
8712
+ * The level of messages to log (default: `'suggestion'`).
8713
+ * - `suggestion`: logs all messages
8714
+ * - `warning`: logs only `warning` and `error` messages
8715
+ * - `error`: logs only `error` messages
8716
+ */
8717
+ level?: 'suggestion' | 'warning' | 'error';
8718
+ /**
8719
+ * The package manager to use for packing the `pkgDir`. The list of
8720
+ * packed files is used in certain linting rules, e.g. files marked as
8721
+ * entrypoints but not published.
8722
+ * - `'auto'`: Automatically detects the package manager using
8723
+ * [`package-manager-detector`](https://github.com/antfu-collective/package-manager-detector).
8724
+ * - `'npm'`/`'yarn'`/`'pnpm'`/`'bun'`: Uses the respective package manager to pack.
8725
+ * - `{ tarball }`: The packed tarball represented as an `ArrayBuffer` or a `ReadableStream`.
8726
+ * - `{ files }`: The manually-unpacked files from a tarball.
8727
+ * - `false`: Skips packing the package. This should only be used if all the files
8728
+ * in `pkgDir` are assumed to be published, e.g. in `node_modules`.
8729
+ *
8730
+ * ::: info Environment notes
8731
+ * - **Node.js**: Defaults to `'auto'`. All options above are supported. When using a package manager
8732
+ * to pack, lifecycle scripts like `prepack` and `postpack` are ignored
8733
+ * (except for yarn as it does not allow ignoring lifecycle scripts).
8734
+ * - **Browser**: Only `{ tarball }` and `{ files }` are supported and either **must be passed** to work,
8735
+ * as the browser does not have access to the file system.
8736
+ * :::
8737
+ */
8738
+ pack?: 'auto' | 'npm' | 'yarn' | 'pnpm' | 'bun' | {
8739
+ tarball: ArrayBuffer | ReadableStream<Uint8Array>;
8740
+ } | {
8741
+ files: PackFile[];
8742
+ } | false;
8743
+ /**
8744
+ * Report warnings as errors. This runs before `level` filters the result, which means that if
8745
+ * `level` is set to `'error'`, all warnings (elevated as errors) will still be reported.
8746
+ */
8747
+ strict?: boolean;
8748
+ }
8749
+ //#endregion
8625
8750
  //#region ../../node_modules/.pnpm/get-tsconfig@4.13.6/node_modules/get-tsconfig/dist/index.d.cts
8626
8751
  declare namespace TsConfigJson {
8627
8752
  namespace CompilerOptions {
@@ -9557,131 +9682,6 @@ interface TsgoOptions {
9557
9682
  path?: string;
9558
9683
  }
9559
9684
  //#endregion
9560
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.11_@pnpm+logger@1001.0.1_typescript@5.9.3_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
9561
- //#region src/node/cli-commands.d.ts
9562
- interface StartOptions {
9563
- root?: string;
9564
- config?: string;
9565
- host: string;
9566
- port?: string | number;
9567
- open?: boolean;
9568
- }
9569
- //#endregion
9570
- //#region ../../node_modules/.pnpm/@tsdown+exe@0.21.4_tsdown@0.21.4/node_modules/@tsdown/exe/dist/index.d.mts
9571
- //#region src/platform.d.ts
9572
- type ExePlatform = "win" | "darwin" | "linux";
9573
- type ExeArch = "x64" | "arm64";
9574
- interface ExeTarget {
9575
- platform: ExePlatform;
9576
- arch: ExeArch;
9577
- /**
9578
- * Node.js version to use for the executable.
9579
- *
9580
- * Accepts a valid semver string (e.g., `"25.7.0"`), or the special values
9581
- * `"latest"` / `"latest-lts"` which resolve the version automatically from
9582
- * {@link https://nodejs.org/dist/index.json}.
9583
- *
9584
- * The minimum required version is 25.7.0, which is when SEA support was added to Node.js.
9585
- */
9586
- nodeVersion: (string & {}) | "latest" | "latest-lts" | `${string}.${string}.${string}`;
9587
- }
9588
- interface ExeExtensionOptions {
9589
- /**
9590
- * Cross-platform targets for building executables.
9591
- * Requires `@tsdown/exe` to be installed.
9592
- * When specified, builds an executable for each target platform/arch combination.
9593
- *
9594
- * @example
9595
- * ```ts
9596
- * targets: [
9597
- * { platform: 'linux', arch: 'x64', nodeVersion: '25.7.0' },
9598
- * { platform: 'darwin', arch: 'arm64', nodeVersion: '25.7.0' },
9599
- * { platform: 'win', arch: 'x64', nodeVersion: '25.7.0' },
9600
- * ]
9601
- * ```
9602
- */
9603
- targets?: ExeTarget[];
9604
- }
9605
- //#endregion
9606
- //#region ../../node_modules/.pnpm/@arethetypeswrong+core@0.18.2/node_modules/@arethetypeswrong/core/dist/checkPackage.d.ts
9607
- interface CheckPackageOptions {
9608
- /**
9609
- * Exhaustive list of entrypoints to check. The package root is `"."`.
9610
- * Specifying this option disables automatic entrypoint discovery,
9611
- * and overrides the `includeEntrypoints` and `excludeEntrypoints` options.
9612
- */
9613
- entrypoints?: string[];
9614
- /**
9615
- * Entrypoints to check in addition to automatically discovered ones.
9616
- */
9617
- includeEntrypoints?: string[];
9618
- /**
9619
- * Entrypoints to exclude from checking.
9620
- */
9621
- excludeEntrypoints?: (string | RegExp)[];
9622
- /**
9623
- * Whether to automatically consider all published files as entrypoints
9624
- * in the absence of any other detected or configured entrypoints.
9625
- */
9626
- entrypointsLegacy?: boolean;
9627
- }
9628
- //#endregion
9629
- //#region ../../node_modules/.pnpm/publint@0.3.18/node_modules/publint/src/index.d.ts
9630
- interface PackFile {
9631
- name: string;
9632
- data: string | ArrayBuffer | Uint8Array;
9633
- }
9634
- interface Options$2 {
9635
- /**
9636
- * Path to your package that contains a package.json file.
9637
- *
9638
- * ::: info Environment notes
9639
- * - **Node.js**: Defaults to `process.cwd()`.
9640
- * - **Browser**: Automatically inferred from `{ tarball: ArrayBuffer | ReadableStream }`. If `{ files: PackFile[] }` is used,
9641
- * this must be the shared directory of all files in `files`. e.g. if `name` has `"package/src/index.js"`,
9642
- * the `pkgDir` should be `"package"`.
9643
- * :::
9644
- */
9645
- pkgDir?: string;
9646
- /**
9647
- * The level of messages to log (default: `'suggestion'`).
9648
- * - `suggestion`: logs all messages
9649
- * - `warning`: logs only `warning` and `error` messages
9650
- * - `error`: logs only `error` messages
9651
- */
9652
- level?: 'suggestion' | 'warning' | 'error';
9653
- /**
9654
- * The package manager to use for packing the `pkgDir`. The list of
9655
- * packed files is used in certain linting rules, e.g. files marked as
9656
- * entrypoints but not published.
9657
- * - `'auto'`: Automatically detects the package manager using
9658
- * [`package-manager-detector`](https://github.com/antfu-collective/package-manager-detector).
9659
- * - `'npm'`/`'yarn'`/`'pnpm'`/`'bun'`: Uses the respective package manager to pack.
9660
- * - `{ tarball }`: The packed tarball represented as an `ArrayBuffer` or a `ReadableStream`.
9661
- * - `{ files }`: The manually-unpacked files from a tarball.
9662
- * - `false`: Skips packing the package. This should only be used if all the files
9663
- * in `pkgDir` are assumed to be published, e.g. in `node_modules`.
9664
- *
9665
- * ::: info Environment notes
9666
- * - **Node.js**: Defaults to `'auto'`. All options above are supported. When using a package manager
9667
- * to pack, lifecycle scripts like `prepack` and `postpack` are ignored
9668
- * (except for yarn as it does not allow ignoring lifecycle scripts).
9669
- * - **Browser**: Only `{ tarball }` and `{ files }` are supported and either **must be passed** to work,
9670
- * as the browser does not have access to the file system.
9671
- * :::
9672
- */
9673
- pack?: 'auto' | 'npm' | 'yarn' | 'pnpm' | 'bun' | {
9674
- tarball: ArrayBuffer | ReadableStream<Uint8Array>;
9675
- } | {
9676
- files: PackFile[];
9677
- } | false;
9678
- /**
9679
- * Report warnings as errors. This runs before `level` filters the result, which means that if
9680
- * `level` is set to `'error'`, all warnings (elevated as errors) will still be reported.
9681
- */
9682
- strict?: boolean;
9683
- }
9684
- //#endregion
9685
9685
  //#region ../../node_modules/.pnpm/unplugin@2.3.11/node_modules/unplugin/dist/index.d.ts
9686
9686
  /**
9687
9687
  * Array, or not yet
@@ -9708,7 +9708,7 @@ interface Options$1 {
9708
9708
  depKinds?: Array<DepKind>;
9709
9709
  }
9710
9710
  //#endregion
9711
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/types-D2Jnze_i.d.mts
9711
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/types-7diXKIyw.d.mts
9712
9712
  //#region src/features/copy.d.ts
9713
9713
  interface CopyEntry {
9714
9714
  /**
@@ -9757,7 +9757,7 @@ interface DepsConfig {
9757
9757
  */
9758
9758
  neverBundle?: ExternalOption;
9759
9759
  /**
9760
- * Force dependencies to be bundled, even if they are in `dependencies` or `peerDependencies`.
9760
+ * Force dependencies to be bundled, even if they are in `dependencies`, `peerDependencies`, or `optionalDependencies`.
9761
9761
  */
9762
9762
  alwaysBundle?: Arrayable$1<string | RegExp> | NoExternalFn;
9763
9763
  /**
@@ -10832,7 +10832,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
10832
10832
  exe: false | ExeOptions;
10833
10833
  }>; //#endregion
10834
10834
  //#endregion
10835
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/config-D9p_BCF3.d.mts
10835
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/config-DR_xLSbh.d.mts
10836
10836
  //#region src/config/options.d.ts
10837
10837
  /**
10838
10838
  * Resolve user config into resolved configs
@@ -10852,7 +10852,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
10852
10852
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
10853
10853
  declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
10854
10854
  //#endregion
10855
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/index.d.mts
10855
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/index.d.mts
10856
10856
  //#region src/build.d.ts
10857
10857
  /**
10858
10858
  * Build with tsdown.
@@ -1,8 +1,8 @@
1
- import { c as globalLogger } from "./main-CDlTYgDd.js";
2
- import { t as enableDebug } from "./debug-C4FmgzkJ-PiSP_iWN.js";
3
- import { i as resolveUserConfig, n as buildWithConfigs, r as mergeConfig, t as build$1 } from "./build-CoLhkNXE-7EboM7qg.js";
1
+ import { c as globalLogger } from "./main-BgAbc3Rw.js";
2
+ import { t as enableDebug } from "./debug-C4FmgzkJ-A9B4RM_w.js";
3
+ import { i as resolveUserConfig, n as buildWithConfigs, r as mergeConfig, t as build$1 } from "./build-DpU0PBVv-CUY7qeWj.js";
4
4
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
5
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/config.mjs
5
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/config.mjs
6
6
  function defineConfig(options) {
7
7
  return options;
8
8
  }
@@ -172,7 +172,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
172
172
  module.exports = w, w.default = w;
173
173
  })))(), 1)).default;
174
174
  //#endregion
175
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/logger-BU0v7CAk.mjs
175
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/logger-BU0v7CAk.mjs
176
176
  const LogLevels = {
177
177
  silent: 0,
178
178
  error: 1,
@@ -296,8 +296,8 @@ function hue2rgb(p, q, t) {
296
296
  return p;
297
297
  }
298
298
  //#endregion
299
- //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f14dd4168fd2bd4ac31d1349e8200015/node_modules/tsdown/dist/package-BV2VRL7Z.mjs
300
- var version = "0.21.4";
299
+ //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/package-BIUrKRH5.mjs
300
+ var version = "0.21.5";
301
301
  //#endregion
302
302
  //#region ../../node_modules/.pnpm/tinyexec@1.0.4/node_modules/tinyexec/dist/main.mjs
303
303
  var l = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);