@voidzero-dev/vite-plus-core 0.1.14 → 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.
- package/dist/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{bindingify-input-options-DHK3MwUV.mjs → bindingify-input-options-BCAF6TcN.mjs} +4 -4
- package/dist/rolldown/shared/{constructors-BfnFojy3.mjs → constructors-D3ZqEbT5.mjs} +1 -1
- package/dist/rolldown/shared/{error-D8cGyrC7.mjs → error-BLhcSyeg.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-DT77Jzbv.mjs → load-config-CFr1Adp9.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-BFB1QNW3.mjs → normalize-string-or-regex-CCT059Zu.mjs} +1 -1
- package/dist/rolldown/shared/{parse-CCDXnkPL.mjs → parse-tRtSyZ-b.mjs} +1 -1
- package/dist/rolldown/shared/{resolve-tsconfig-gxOviCVx.mjs → resolve-tsconfig-DJjTYbYr.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-DFpH3t7W.mjs → rolldown-BMLc9elZ.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-ZUNnA-sr.mjs → rolldown-build-CxsB9UaT.mjs} +4 -4
- package/dist/rolldown/shared/{watch-C4x8DFD_.mjs → watch-DJOwXDOi.mjs} +4 -4
- package/dist/rolldown/utils-index.mjs +2 -2
- package/dist/tsdown/build-D-zhBXEK-X12uvwLb.js +2 -0
- package/dist/tsdown/{build-CoLhkNXE-CCP1weoc.js → build-DpU0PBVv-CUY7qeWj.js} +313 -52
- package/dist/tsdown/{debug-C4FmgzkJ-PiSP_iWN.js → debug-C4FmgzkJ-A9B4RM_w.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-XnCR4Kxo.js → detect-DN3DXXYt-GIMDNpE1.js} +1 -1
- package/dist/tsdown/{dist-BWGgEAtQ.js → dist-BkOM3Vdg.js} +1 -1
- package/dist/tsdown/index-types.d.ts +131 -131
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-CDlTYgDd.js → main-BgAbc3Rw.js} +3 -3
- package/dist/tsdown/npm_entry_picomatch.cjs +217 -9
- package/dist/tsdown/run.js +3 -3
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build2.js +1 -0
- package/dist/vite/node/chunks/node.js +218 -10
- package/package.json +10 -10
- package/dist/tsdown/build-dhDyu66J-CpOySv4e.js +0 -2
- /package/dist/rolldown/shared/{binding-ER32uZ22.mjs → binding-CkWPGrSM.mjs} +0 -0
|
@@ -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.
|
|
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.
|
|
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.
|
|
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 `
|
|
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.
|
|
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.
|
|
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.
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as globalLogger } from "./main-
|
|
2
|
-
import { t as enableDebug } from "./debug-C4FmgzkJ-
|
|
3
|
-
import { i as resolveUserConfig, n as buildWithConfigs, r as mergeConfig, t as build$1 } from "./build-
|
|
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.
|
|
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.
|
|
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.
|
|
300
|
-
var version = "0.21.
|
|
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);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
|
|
3
3
|
var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
4
4
|
const WIN_SLASH = "\\\\/";
|
|
5
5
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
6
|
+
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
6
7
|
/**
|
|
7
8
|
* Posix glob regex
|
|
8
9
|
*/
|
|
@@ -52,8 +53,10 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
52
53
|
SEP: "\\"
|
|
53
54
|
};
|
|
54
55
|
module.exports = {
|
|
56
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
55
57
|
MAX_LENGTH: 1024 * 64,
|
|
56
58
|
POSIX_REGEX_SOURCE: {
|
|
59
|
+
__proto__: null,
|
|
57
60
|
alnum: "a-zA-Z0-9",
|
|
58
61
|
alpha: "a-zA-Z",
|
|
59
62
|
ascii: "\\x00-\\x7F",
|
|
@@ -159,7 +162,7 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
159
162
|
};
|
|
160
163
|
}));
|
|
161
164
|
//#endregion
|
|
162
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
165
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
|
|
163
166
|
var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
164
167
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
|
|
165
168
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -207,7 +210,7 @@ var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
207
210
|
};
|
|
208
211
|
}));
|
|
209
212
|
//#endregion
|
|
210
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
213
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
|
|
211
214
|
var require_scan = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
212
215
|
const utils = require_utils();
|
|
213
216
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
|
|
@@ -494,7 +497,7 @@ var require_scan = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
494
497
|
module.exports = scan;
|
|
495
498
|
}));
|
|
496
499
|
//#endregion
|
|
497
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
500
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
|
|
498
501
|
var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
499
502
|
const constants = require_constants();
|
|
500
503
|
const utils = require_utils();
|
|
@@ -522,6 +525,177 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
522
525
|
const syntaxError = (type, char) => {
|
|
523
526
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
524
527
|
};
|
|
528
|
+
const splitTopLevel = (input) => {
|
|
529
|
+
const parts = [];
|
|
530
|
+
let bracket = 0;
|
|
531
|
+
let paren = 0;
|
|
532
|
+
let quote = 0;
|
|
533
|
+
let value = "";
|
|
534
|
+
let escaped = false;
|
|
535
|
+
for (const ch of input) {
|
|
536
|
+
if (escaped === true) {
|
|
537
|
+
value += ch;
|
|
538
|
+
escaped = false;
|
|
539
|
+
continue;
|
|
540
|
+
}
|
|
541
|
+
if (ch === "\\") {
|
|
542
|
+
value += ch;
|
|
543
|
+
escaped = true;
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
if (ch === "\"") {
|
|
547
|
+
quote = quote === 1 ? 0 : 1;
|
|
548
|
+
value += ch;
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
if (quote === 0) {
|
|
552
|
+
if (ch === "[") bracket++;
|
|
553
|
+
else if (ch === "]" && bracket > 0) bracket--;
|
|
554
|
+
else if (bracket === 0) {
|
|
555
|
+
if (ch === "(") paren++;
|
|
556
|
+
else if (ch === ")" && paren > 0) paren--;
|
|
557
|
+
else if (ch === "|" && paren === 0) {
|
|
558
|
+
parts.push(value);
|
|
559
|
+
value = "";
|
|
560
|
+
continue;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
value += ch;
|
|
565
|
+
}
|
|
566
|
+
parts.push(value);
|
|
567
|
+
return parts;
|
|
568
|
+
};
|
|
569
|
+
const isPlainBranch = (branch) => {
|
|
570
|
+
let escaped = false;
|
|
571
|
+
for (const ch of branch) {
|
|
572
|
+
if (escaped === true) {
|
|
573
|
+
escaped = false;
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
if (ch === "\\") {
|
|
577
|
+
escaped = true;
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
if (/[?*+@!()[\]{}]/.test(ch)) return false;
|
|
581
|
+
}
|
|
582
|
+
return true;
|
|
583
|
+
};
|
|
584
|
+
const normalizeSimpleBranch = (branch) => {
|
|
585
|
+
let value = branch.trim();
|
|
586
|
+
let changed = true;
|
|
587
|
+
while (changed === true) {
|
|
588
|
+
changed = false;
|
|
589
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
590
|
+
value = value.slice(2, -1);
|
|
591
|
+
changed = true;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
if (!isPlainBranch(value)) return;
|
|
595
|
+
return value.replace(/\\(.)/g, "$1");
|
|
596
|
+
};
|
|
597
|
+
const hasRepeatedCharPrefixOverlap = (branches) => {
|
|
598
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
599
|
+
for (let i = 0; i < values.length; i++) for (let j = i + 1; j < values.length; j++) {
|
|
600
|
+
const a = values[i];
|
|
601
|
+
const b = values[j];
|
|
602
|
+
const char = a[0];
|
|
603
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) continue;
|
|
604
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) return true;
|
|
605
|
+
}
|
|
606
|
+
return false;
|
|
607
|
+
};
|
|
608
|
+
const parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
609
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") return;
|
|
610
|
+
let bracket = 0;
|
|
611
|
+
let paren = 0;
|
|
612
|
+
let quote = 0;
|
|
613
|
+
let escaped = false;
|
|
614
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
615
|
+
const ch = pattern[i];
|
|
616
|
+
if (escaped === true) {
|
|
617
|
+
escaped = false;
|
|
618
|
+
continue;
|
|
619
|
+
}
|
|
620
|
+
if (ch === "\\") {
|
|
621
|
+
escaped = true;
|
|
622
|
+
continue;
|
|
623
|
+
}
|
|
624
|
+
if (ch === "\"") {
|
|
625
|
+
quote = quote === 1 ? 0 : 1;
|
|
626
|
+
continue;
|
|
627
|
+
}
|
|
628
|
+
if (quote === 1) continue;
|
|
629
|
+
if (ch === "[") {
|
|
630
|
+
bracket++;
|
|
631
|
+
continue;
|
|
632
|
+
}
|
|
633
|
+
if (ch === "]" && bracket > 0) {
|
|
634
|
+
bracket--;
|
|
635
|
+
continue;
|
|
636
|
+
}
|
|
637
|
+
if (bracket > 0) continue;
|
|
638
|
+
if (ch === "(") {
|
|
639
|
+
paren++;
|
|
640
|
+
continue;
|
|
641
|
+
}
|
|
642
|
+
if (ch === ")") {
|
|
643
|
+
paren--;
|
|
644
|
+
if (paren === 0) {
|
|
645
|
+
if (requireEnd === true && i !== pattern.length - 1) return;
|
|
646
|
+
return {
|
|
647
|
+
type: pattern[0],
|
|
648
|
+
body: pattern.slice(2, i),
|
|
649
|
+
end: i
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
const getStarExtglobSequenceOutput = (pattern) => {
|
|
656
|
+
let index = 0;
|
|
657
|
+
const chars = [];
|
|
658
|
+
while (index < pattern.length) {
|
|
659
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
660
|
+
if (!match || match.type !== "*") return;
|
|
661
|
+
const branches = splitTopLevel(match.body).map((branch) => branch.trim());
|
|
662
|
+
if (branches.length !== 1) return;
|
|
663
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
664
|
+
if (!branch || branch.length !== 1) return;
|
|
665
|
+
chars.push(branch);
|
|
666
|
+
index += match.end + 1;
|
|
667
|
+
}
|
|
668
|
+
if (chars.length < 1) return;
|
|
669
|
+
return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
|
|
670
|
+
};
|
|
671
|
+
const repeatedExtglobRecursion = (pattern) => {
|
|
672
|
+
let depth = 0;
|
|
673
|
+
let value = pattern.trim();
|
|
674
|
+
let match = parseRepeatedExtglob(value);
|
|
675
|
+
while (match) {
|
|
676
|
+
depth++;
|
|
677
|
+
value = match.body.trim();
|
|
678
|
+
match = parseRepeatedExtglob(value);
|
|
679
|
+
}
|
|
680
|
+
return depth;
|
|
681
|
+
};
|
|
682
|
+
const analyzeRepeatedExtglob = (body, options) => {
|
|
683
|
+
if (options.maxExtglobRecursion === false) return { risky: false };
|
|
684
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
685
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
686
|
+
if (branches.length > 1) {
|
|
687
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) return { risky: true };
|
|
688
|
+
}
|
|
689
|
+
for (const branch of branches) {
|
|
690
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
691
|
+
if (safeOutput) return {
|
|
692
|
+
risky: true,
|
|
693
|
+
safeOutput
|
|
694
|
+
};
|
|
695
|
+
if (repeatedExtglobRecursion(branch) > max) return { risky: true };
|
|
696
|
+
}
|
|
697
|
+
return { risky: false };
|
|
698
|
+
};
|
|
525
699
|
/**
|
|
526
700
|
* Parse the given input string.
|
|
527
701
|
* @param {String} input
|
|
@@ -651,6 +825,8 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
651
825
|
token.prev = prev;
|
|
652
826
|
token.parens = state.parens;
|
|
653
827
|
token.output = state.output;
|
|
828
|
+
token.startIndex = state.index;
|
|
829
|
+
token.tokensIndex = tokens.length;
|
|
654
830
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
655
831
|
increment("parens");
|
|
656
832
|
push({
|
|
@@ -667,6 +843,30 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
667
843
|
extglobs.push(token);
|
|
668
844
|
};
|
|
669
845
|
const extglobClose = (token) => {
|
|
846
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
847
|
+
const analysis = analyzeRepeatedExtglob(input.slice(token.startIndex + 2, state.index), opts);
|
|
848
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
849
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
850
|
+
const open = tokens[token.tokensIndex];
|
|
851
|
+
open.type = "text";
|
|
852
|
+
open.value = literal;
|
|
853
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
854
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
855
|
+
tokens[i].value = "";
|
|
856
|
+
tokens[i].output = "";
|
|
857
|
+
delete tokens[i].suffix;
|
|
858
|
+
}
|
|
859
|
+
state.output = token.output + open.output;
|
|
860
|
+
state.backtrack = true;
|
|
861
|
+
push({
|
|
862
|
+
type: "paren",
|
|
863
|
+
extglob: true,
|
|
864
|
+
value,
|
|
865
|
+
output: ""
|
|
866
|
+
});
|
|
867
|
+
decrement("parens");
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
670
870
|
let output = token.close + (opts.capture ? ")" : "");
|
|
671
871
|
let rest;
|
|
672
872
|
if (token.type === "negate") {
|
|
@@ -1352,7 +1552,7 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
1352
1552
|
module.exports = parse;
|
|
1353
1553
|
}));
|
|
1354
1554
|
//#endregion
|
|
1355
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
1555
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
|
|
1356
1556
|
var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
1357
1557
|
const scan = require_scan();
|
|
1358
1558
|
const parse = require_parse();
|
|
@@ -1562,6 +1762,14 @@ var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1562
1762
|
* Compile a regular expression from the `state` object returned by the
|
|
1563
1763
|
* [parse()](#parse) method.
|
|
1564
1764
|
*
|
|
1765
|
+
* ```js
|
|
1766
|
+
* const picomatch = require('picomatch');
|
|
1767
|
+
* const state = picomatch.parse('*.js');
|
|
1768
|
+
* // picomatch.compileRe(state[, options]);
|
|
1769
|
+
*
|
|
1770
|
+
* console.log(picomatch.compileRe(state));
|
|
1771
|
+
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
1772
|
+
* ```
|
|
1565
1773
|
* @param {Object} `state`
|
|
1566
1774
|
* @param {Object} `options`
|
|
1567
1775
|
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
|
@@ -1585,10 +1793,10 @@ var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1585
1793
|
*
|
|
1586
1794
|
* ```js
|
|
1587
1795
|
* const picomatch = require('picomatch');
|
|
1588
|
-
*
|
|
1589
|
-
* // picomatch.compileRe(state[, options]);
|
|
1796
|
+
* // picomatch.makeRe(state[, options]);
|
|
1590
1797
|
*
|
|
1591
|
-
*
|
|
1798
|
+
* const result = picomatch.makeRe('*.js');
|
|
1799
|
+
* console.log(result);
|
|
1592
1800
|
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
1593
1801
|
* ```
|
|
1594
1802
|
* @param {String} `state` The object returned from the `.parse` method.
|
|
@@ -1644,7 +1852,7 @@ var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1644
1852
|
module.exports = picomatch;
|
|
1645
1853
|
}));
|
|
1646
1854
|
//#endregion
|
|
1647
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
1855
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js
|
|
1648
1856
|
var require_picomatch = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
1649
1857
|
const pico = require_picomatch$1();
|
|
1650
1858
|
const utils = require_utils();
|