nitro-nightly 3.0.1-20251230-132916-74f2198d → 3.0.1-20260102-142913-2fb634a2

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 (55) hide show
  1. package/dist/_build/rolldown.mjs +2 -2
  2. package/dist/_build/rollup.mjs +2 -2
  3. package/dist/_build/shared.mjs +1 -1
  4. package/dist/_build/shared2.mjs +1 -1
  5. package/dist/_build/shared3.mjs +3 -3
  6. package/dist/_build/shared4.mjs +1 -1
  7. package/dist/_build/vite.plugin.mjs +5 -5
  8. package/dist/_dev.mjs +2 -2
  9. package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +6 -5
  10. package/dist/_libs/@jridgewell/gen-mapping.mjs +1 -1
  11. package/dist/_libs/@rollup/plugin-commonjs.mjs +2 -2
  12. package/dist/_libs/@rollup/plugin-inject.mjs +1 -1
  13. package/dist/_libs/@rollup/plugin-node-resolve.mjs +1 -1
  14. package/dist/_libs/@rollup/plugin-replace.mjs +1 -1
  15. package/dist/_libs/c12.mjs +28 -11
  16. package/dist/_libs/chokidar.mjs +8 -1
  17. package/dist/_libs/confbox.mjs +28 -17
  18. package/dist/_libs/duplexer.mjs +1 -1
  19. package/dist/_libs/etag.mjs +1 -1
  20. package/dist/_libs/giget.mjs +1673 -17408
  21. package/dist/_libs/httpxy.mjs +6 -1
  22. package/dist/_libs/local-pkg.mjs +2 -2
  23. package/dist/_libs/pathe.mjs +1 -1
  24. package/dist/_libs/unimport.mjs +10 -5
  25. package/dist/_libs/unwasm.mjs +3 -3
  26. package/dist/_nitro.mjs +3 -3
  27. package/dist/_nitro2.mjs +2 -2
  28. package/dist/_presets.mjs +2 -2
  29. package/dist/_rolldown.mjs +14 -2
  30. package/dist/cli/_chunks/build.mjs +1 -1
  31. package/dist/cli/_chunks/dev.mjs +1 -1
  32. package/dist/cli/_chunks/list.mjs +1 -1
  33. package/dist/cli/_chunks/prepare.mjs +1 -1
  34. package/dist/cli/_chunks/run.mjs +1 -1
  35. package/dist/node_modules/@sindresorhus/is/distribution/index.js +46 -5
  36. package/dist/node_modules/@sindresorhus/is/package.json +1 -1
  37. package/dist/node_modules/@speed-highlight/core/dist/index.js +1 -1
  38. package/dist/node_modules/@speed-highlight/core/dist/terminal.js +1 -1
  39. package/dist/node_modules/@speed-highlight/core/package.json +2 -2
  40. package/lib/vite.types.mjs +1 -0
  41. package/package.json +9 -9
  42. package/dist/_libs/node-fetch-native.mjs +0 -173
  43. package/dist/cli/_chunks/chokidar.mjs +0 -3
  44. package/dist/cli/_chunks/detect-acorn.mjs +0 -7
  45. package/dist/cli/_chunks/dist.mjs +0 -3
  46. package/dist/cli/_chunks/dist2.mjs +0 -4
  47. package/dist/cli/_chunks/dist3.mjs +0 -3
  48. package/dist/cli/_chunks/dist4.mjs +0 -4
  49. package/dist/cli/_chunks/dist5.mjs +0 -5
  50. package/dist/cli/_chunks/json5.mjs +0 -4
  51. package/dist/cli/_chunks/jsonc.mjs +0 -3
  52. package/dist/cli/_chunks/multipart-parser.mjs +0 -7
  53. package/dist/cli/_chunks/runtime.mjs +0 -3
  54. package/dist/cli/_chunks/toml.mjs +0 -4
  55. package/dist/cli/_chunks/yaml.mjs +0 -4
@@ -1,5 +1,5 @@
1
1
  import "../_rolldown.mjs";
2
- import { O as relative, o as debounce, w as join } from "../_libs/c12.mjs";
2
+ import { A as relative, E as join, s as debounce } from "../_libs/c12.mjs";
3
3
  import "../_libs/@hiogawa/vite-plugin-fullstack.mjs";
4
4
  import "../_libs/acorn.mjs";
5
5
  import "../_libs/unimport.mjs";
@@ -9,7 +9,7 @@ import "./shared.mjs";
9
9
  import { i as scanHandlers, n as writeTypes } from "../_nitro2.mjs";
10
10
  import "../_libs/mime.mjs";
11
11
  import { n as writeBuildInfo } from "./shared2.mjs";
12
- import { i as watch$1 } from "../_libs/chokidar.mjs";
12
+ import { a as watch$1 } from "../_libs/chokidar.mjs";
13
13
  import { a as baseBuildConfig, i as libChunkName, n as NODE_MODULES_RE, r as getChunkName, t as baseBuildPlugins } from "./shared3.mjs";
14
14
  import "../_libs/etag.mjs";
15
15
  import "../_libs/@jridgewell/gen-mapping.mjs";
@@ -1,5 +1,5 @@
1
1
  import "../_rolldown.mjs";
2
- import { C as isAbsolute, O as relative, o as debounce, w as join } from "../_libs/c12.mjs";
2
+ import { A as relative, E as join, T as isAbsolute, s as debounce } from "../_libs/c12.mjs";
3
3
  import "../_libs/@hiogawa/vite-plugin-fullstack.mjs";
4
4
  import "../_libs/acorn.mjs";
5
5
  import "../_libs/unimport.mjs";
@@ -9,7 +9,7 @@ import "./shared.mjs";
9
9
  import { i as scanHandlers, n as writeTypes } from "../_nitro2.mjs";
10
10
  import "../_libs/mime.mjs";
11
11
  import { n as writeBuildInfo } from "./shared2.mjs";
12
- import { i as watch$1 } from "../_libs/chokidar.mjs";
12
+ import { a as watch$1 } from "../_libs/chokidar.mjs";
13
13
  import { t as alias } from "../_libs/@rollup/plugin-alias.mjs";
14
14
  import { t as inject } from "../_libs/@rollup/plugin-inject.mjs";
15
15
  import { a as baseBuildConfig, i as libChunkName, n as NODE_MODULES_RE, r as getChunkName, t as baseBuildPlugins } from "./shared3.mjs";
@@ -1,4 +1,4 @@
1
- import { O as relative, k as resolve, x as dirname } from "../_libs/c12.mjs";
1
+ import { A as relative, C as dirname, j as resolve } from "../_libs/c12.mjs";
2
2
  import { t as getProperty } from "../_libs/dot-prop.mjs";
3
3
  import consola$1 from "consola";
4
4
  import { mkdir, stat, writeFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { O as relative$1, k as resolve$1, w as join$1 } from "../_libs/c12.mjs";
1
+ import { A as relative$1, E as join$1, j as resolve$1 } from "../_libs/c12.mjs";
2
2
  import { i as writeFile$1 } from "./shared.mjs";
3
3
  import { dirname } from "node:path";
4
4
  import { mkdir, readFile, stat } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { i as __toESM } from "../_rolldown.mjs";
2
- import { C as isAbsolute, O as relative, T as normalize, h as resolveModulePath, k as resolve, w as join } from "../_libs/c12.mjs";
3
- import { i as unplugin } from "../_libs/unimport.mjs";
2
+ import { A as relative, D as normalize, E as join, T as isAbsolute, _ as resolveModulePath, j as resolve } from "../_libs/c12.mjs";
3
+ import { a as unplugin } from "../_libs/unimport.mjs";
4
4
  import { t as glob } from "../_libs/tinyglobby.mjs";
5
5
  import { i as a, r as T, t as A } from "../_libs/std-env.mjs";
6
6
  import { t as src_default } from "../_libs/mime.mjs";
@@ -956,7 +956,7 @@ async function importDep(opts, _retry) {
956
956
  if (!shouldInstall) throw new Error(`\`${opts.id}\` is not installed. Please add it to your dependencies for ${opts.reason}.`);
957
957
  const start = Date.now();
958
958
  consola.start(`Installing \`${opts.id}\` in \`${opts.dir}\`...`);
959
- const { addDevDependency } = await import("../cli/_chunks/dist4.mjs");
959
+ const { addDevDependency } = await import("../_libs/giget.mjs").then((n) => n.i);
960
960
  await addDevDependency(opts.id, { cwd: opts.dir });
961
961
  consola.success(`Installed \`${opts.id}\` in ${opts.dir} (${Date.now() - start}ms).`);
962
962
  return importDep(opts, true);
@@ -1,4 +1,4 @@
1
- import { O as relative, k as resolve, x as dirname } from "../_libs/c12.mjs";
1
+ import { A as relative, C as dirname, j as resolve } from "../_libs/c12.mjs";
2
2
  import { t as glob } from "../_libs/tinyglobby.mjs";
3
3
  import { i as a } from "../_libs/std-env.mjs";
4
4
  import { t as runParallel } from "../_nitro2.mjs";
@@ -1,5 +1,5 @@
1
- import { C as isAbsolute$1, O as relative$1, b as basename$1, h as resolveModulePath, k as resolve$1, o as debounce, w as join$1, x as dirname$1 } from "../_libs/c12.mjs";
2
- import { n as assetsPlugin } from "../_libs/@hiogawa/vite-plugin-fullstack.mjs";
1
+ import { A as relative$1, C as dirname$1, E as join$1, S as basename$1, T as isAbsolute$1, _ as resolveModulePath, j as resolve$1, s as debounce } from "../_libs/c12.mjs";
2
+ import { r as assetsPlugin } from "../_libs/@hiogawa/vite-plugin-fullstack.mjs";
3
3
  import { t as formatCompatibilityDate } from "../_libs/compatx.mjs";
4
4
  import { i as a, r as T } from "../_libs/std-env.mjs";
5
5
  import { a as copyPublicAssets, i as prepare, s as createNitro } from "../_nitro.mjs";
@@ -7,7 +7,7 @@ import { n as prettyPath } from "./shared.mjs";
7
7
  import { i as scanHandlers } from "../_nitro2.mjs";
8
8
  import { n as writeBuildInfo, t as getBuildInfo } from "./shared2.mjs";
9
9
  import { i as NodeEnvRunner, r as NitroDevApp } from "../_dev.mjs";
10
- import { i as watch$1 } from "../_libs/chokidar.mjs";
10
+ import { a as watch$1 } from "../_libs/chokidar.mjs";
11
11
  import { t as alias } from "../_libs/@rollup/plugin-alias.mjs";
12
12
  import { t as inject } from "../_libs/@rollup/plugin-inject.mjs";
13
13
  import { a as baseBuildConfig, i as libChunkName, n as NODE_MODULES_RE, r as getChunkName, t as baseBuildPlugins } from "./shared3.mjs";
@@ -428,7 +428,7 @@ function nitroPreviewPlugin(ctx) {
428
428
  child.once("exit", (code) => {
429
429
  if (code && code !== 0) consola$1.error(`[nitro] Preview server exited with code ${code}`);
430
430
  });
431
- const { createProxyServer } = await import("../cli/_chunks/dist3.mjs");
431
+ const { createProxyServer } = await import("../_libs/httpxy.mjs").then((n) => n.r);
432
432
  const proxy = createProxyServer({ target: `http://localhost:${randomPort}` });
433
433
  server.middlewares.use((req, res, next) => {
434
434
  if (child && !child.killed) proxy.web(req, res).catch(next);
@@ -442,7 +442,7 @@ function nitroPreviewPlugin(ctx) {
442
442
  };
443
443
  }
444
444
  async function loadPreviewDotEnv(root) {
445
- const { loadDotenv } = await import("../cli/_chunks/dist2.mjs");
445
+ const { loadDotenv } = await import("../_libs/c12.mjs").then((n) => n.n);
446
446
  const env = await loadDotenv({
447
447
  cwd: root,
448
448
  fileName: [
package/dist/_dev.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { S as extname$1, k as resolve$1, o as debounce, w as join$1 } from "./_libs/c12.mjs";
1
+ import { E as join$1, j as resolve$1, s as debounce, w as extname$1 } from "./_libs/c12.mjs";
2
2
  import { i as a, r as T } from "./_libs/std-env.mjs";
3
3
  import { t as src_default } from "./_libs/mime.mjs";
4
4
  import { r as writeDevBuildInfo } from "./_build/shared2.mjs";
5
5
  import { n as createProxyServer } from "./_libs/httpxy.mjs";
6
- import { i as watch$1 } from "./_libs/chokidar.mjs";
6
+ import { a as watch$1 } from "./_libs/chokidar.mjs";
7
7
  import consola$1 from "consola";
8
8
  import { dirname, resolve } from "node:path";
9
9
  import { createReadStream, existsSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { i as __toESM, t as __commonJSMin } from "../../_rolldown.mjs";
1
+ import { i as __toESM, n as __exportAll, t as __commonJSMin } from "../../_rolldown.mjs";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
@@ -1565,7 +1565,7 @@ function escapeRegex(str) {
1565
1565
  }
1566
1566
 
1567
1567
  //#endregion
1568
- //#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.11_vite@8.0.0-beta.4_@types+node@25.0.3_jiti@2.6.1_tsx@4.21.0_yaml@2.8.2_/node_modules/@hiogawa/vite-plugin-fullstack/dist/plugin-B4MlD0Bd.js
1568
+ //#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.11_vite@8.0.0-beta.5_@types+node@25.0.3_jiti@2.6.1_tsx@4.21.0_yaml@2.8.2_/node_modules/@hiogawa/vite-plugin-fullstack/dist/plugin-B4MlD0Bd.js
1569
1569
  function parseIdQuery(id) {
1570
1570
  if (!id.includes("?")) return {
1571
1571
  filename: id,
@@ -1825,7 +1825,7 @@ function assetsPlugin(pluginOpts) {
1825
1825
  load: {
1826
1826
  filter: { id: /^\0virtual:fullstack\// },
1827
1827
  async handler(id) {
1828
- if (id === "\0virtual:fullstack/runtime") return `export const mergeAssets = ${(await import("../../cli/_chunks/runtime.mjs")).mergeAssets.toString()};`;
1828
+ if (id === "\0virtual:fullstack/runtime") return `export const mergeAssets = ${(await import("./vite-plugin-fullstack.mjs").then((n) => n.n)).mergeAssets.toString()};`;
1829
1829
  const parsed = parseAssetsVirtual(id);
1830
1830
  if (!parsed) return;
1831
1831
  assert$1.notEqual(this.environment.name, "client");
@@ -2150,7 +2150,8 @@ function assetsURLDev(url, config) {
2150
2150
  }
2151
2151
 
2152
2152
  //#endregion
2153
- //#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.11_vite@8.0.0-beta.4_@types+node@25.0.3_jiti@2.6.1_tsx@4.21.0_yaml@2.8.2_/node_modules/@hiogawa/vite-plugin-fullstack/dist/runtime.js
2153
+ //#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.11_vite@8.0.0-beta.5_@types+node@25.0.3_jiti@2.6.1_tsx@4.21.0_yaml@2.8.2_/node_modules/@hiogawa/vite-plugin-fullstack/dist/runtime.js
2154
+ var runtime_exports = /* @__PURE__ */ __exportAll({ mergeAssets: () => mergeAssets });
2154
2155
  function mergeAssets(...args) {
2155
2156
  const js = uniqBy(args.flatMap((h) => h.js), (a) => a.href);
2156
2157
  const css = uniqBy(args.flatMap((h) => h.css), (a) => a.href);
@@ -2175,4 +2176,4 @@ function mergeAssets(...args) {
2175
2176
  }
2176
2177
 
2177
2178
  //#endregion
2178
- export { decode as a, MagicString as i, assetsPlugin as n, encode as o, stripLiteral as r, mergeAssets as t };
2179
+ export { MagicString as a, stripLiteral as i, runtime_exports as n, decode as o, assetsPlugin as r, encode as s, mergeAssets as t };
@@ -1,4 +1,4 @@
1
- import { a as decode, o as encode } from "../@hiogawa/vite-plugin-fullstack.mjs";
1
+ import { o as decode, s as encode } from "../@hiogawa/vite-plugin-fullstack.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
4
4
  const schemeRegex = /^[\w+.-]+:\/\//;
@@ -1,5 +1,5 @@
1
- import { i as __toESM, n as __require$1, t as __commonJSMin } from "../../_rolldown.mjs";
2
- import { i as MagicString } from "../@hiogawa/vite-plugin-fullstack.mjs";
1
+ import { i as __toESM, r as __require$1, t as __commonJSMin } from "../../_rolldown.mjs";
2
+ import { a as MagicString } from "../@hiogawa/vite-plugin-fullstack.mjs";
3
3
  import * as nativeFs$1 from "fs";
4
4
  import { existsSync, readFileSync, statSync } from "fs";
5
5
  import { basename, dirname, extname, isAbsolute, join, normalize, posix, relative, resolve, sep, win32 } from "path";
@@ -1,4 +1,4 @@
1
- import { i as MagicString } from "../@hiogawa/vite-plugin-fullstack.mjs";
1
+ import { a as MagicString } from "../@hiogawa/vite-plugin-fullstack.mjs";
2
2
  import { a as makeLegalIdentifier, n as attachScopes, o as walk, r as createFilter } from "./plugin-commonjs.mjs";
3
3
  import { sep } from "path";
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as __toESM, n as __require, t as __commonJSMin } from "../../_rolldown.mjs";
1
+ import { i as __toESM, r as __require, t as __commonJSMin } from "../../_rolldown.mjs";
2
2
  import { r as createFilter } from "./plugin-commonjs.mjs";
3
3
  import nativeFs, { realpathSync } from "fs";
4
4
  import path, { dirname, extname, normalize, resolve, sep } from "path";
@@ -1,4 +1,4 @@
1
- import { i as MagicString } from "../@hiogawa/vite-plugin-fullstack.mjs";
1
+ import { a as MagicString } from "../@hiogawa/vite-plugin-fullstack.mjs";
2
2
  import { r as createFilter } from "./plugin-commonjs.mjs";
3
3
 
4
4
  //#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.54.0/node_modules/@rollup/plugin-replace/dist/es/index.js
@@ -1,4 +1,4 @@
1
- import { i as __toESM, n as __require, t as __commonJSMin } from "../_rolldown.mjs";
1
+ import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "../_rolldown.mjs";
2
2
  import path, { isAbsolute, resolve } from "node:path";
3
3
  import process$1 from "node:process";
4
4
  import fs, { existsSync, lstatSync, promises, readFileSync, realpathSync, statSync } from "node:fs";
@@ -1609,8 +1609,8 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
1609
1609
  return finalizeResolution(resolved, base, preserveSymlinks);
1610
1610
  }
1611
1611
  const DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
1612
- const isWindows = /* @__PURE__ */ (() => process.platform === "win32")();
1613
- const globalCache = /* @__PURE__ */ (() => globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map())();
1612
+ const isWindows = process.platform === "win32";
1613
+ const globalCache = globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map();
1614
1614
  /**
1615
1615
  * Synchronously resolves a module url based on the options provided.
1616
1616
  *
@@ -1775,6 +1775,16 @@ function _parseInput(input) {
1775
1775
 
1776
1776
  //#endregion
1777
1777
  //#region node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs
1778
+ var dist_exports$1 = /* @__PURE__ */ __exportAll({
1779
+ findFile: () => findFile,
1780
+ findNearestFile: () => findNearestFile,
1781
+ findWorkspaceDir: () => findWorkspaceDir,
1782
+ parseGitConfig: () => parseGitConfig,
1783
+ readGitConfig: () => readGitConfig,
1784
+ readPackageJSON: () => readPackageJSON,
1785
+ resolveGitConfig: () => resolveGitConfig,
1786
+ resolvePackageJSON: () => resolvePackageJSON
1787
+ });
1778
1788
  const defaultFindOptions = {
1779
1789
  startingFrom: ".",
1780
1790
  rootPattern: /^node_modules$/,
@@ -2463,6 +2473,13 @@ async function _applyPromised(fn, _this, args) {
2463
2473
 
2464
2474
  //#endregion
2465
2475
  //#region node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs
2476
+ var dist_exports = /* @__PURE__ */ __exportAll({
2477
+ SUPPORTED_EXTENSIONS: () => SUPPORTED_EXTENSIONS,
2478
+ loadConfig: () => loadConfig,
2479
+ loadDotenv: () => loadDotenv,
2480
+ setupDotenv: () => setupDotenv,
2481
+ watchConfig: () => watchConfig
2482
+ });
2466
2483
  var import_main = /* @__PURE__ */ __toESM(require_main(), 1);
2467
2484
  /**
2468
2485
  * Load and interpolate environment variables into `process.env`.
@@ -2540,11 +2557,11 @@ function getDotEnvVars(targetEnvironment) {
2540
2557
  }
2541
2558
  const _normalize = (p) => p?.replace(/\\/g, "/");
2542
2559
  const ASYNC_LOADERS = {
2543
- ".yaml": () => import("../cli/_chunks/yaml.mjs").then((r$1) => r$1.parseYAML),
2544
- ".yml": () => import("../cli/_chunks/yaml.mjs").then((r$1) => r$1.parseYAML),
2545
- ".jsonc": () => import("../cli/_chunks/jsonc.mjs").then((r$1) => r$1.parseJSONC),
2546
- ".json5": () => import("../cli/_chunks/json5.mjs").then((r$1) => r$1.parseJSON5),
2547
- ".toml": () => import("../cli/_chunks/toml.mjs").then((r$1) => r$1.parseTOML)
2560
+ ".yaml": () => import("./confbox.mjs").then((n) => n.o).then((r$1) => r$1.parseYAML),
2561
+ ".yml": () => import("./confbox.mjs").then((n) => n.o).then((r$1) => r$1.parseYAML),
2562
+ ".jsonc": () => import("./confbox.mjs").then((n) => n.t).then((r$1) => r$1.parseJSONC),
2563
+ ".json5": () => import("./confbox.mjs").then((n) => n.c).then((r$1) => r$1.parseJSON5),
2564
+ ".toml": () => import("./confbox.mjs").then((n) => n.r).then((r$1) => r$1.parseTOML)
2548
2565
  };
2549
2566
  const SUPPORTED_EXTENSIONS = Object.freeze([
2550
2567
  ".js",
@@ -2730,7 +2747,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
2730
2747
  const customProviderKeys = Object.keys(sourceOptions.giget?.providers || {}).map((key) => `${key}:`);
2731
2748
  const gigetPrefixes = customProviderKeys.length > 0 ? [...new Set([...customProviderKeys, ...GIGET_PREFIXES])] : GIGET_PREFIXES;
2732
2749
  if (options.giget !== false && gigetPrefixes.some((prefix) => source.startsWith(prefix))) {
2733
- const { downloadTemplate } = await import("../cli/_chunks/dist5.mjs");
2750
+ const { downloadTemplate } = await import("./giget.mjs").then((n) => n.t);
2734
2751
  const { digest } = await import("ohash");
2735
2752
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + digest(source).slice(0, 10).replace(/[-_]/g, "");
2736
2753
  let cloneDir;
@@ -2811,7 +2828,7 @@ async function watchConfig(options) {
2811
2828
  options.rcFile && resolve$1(l.cwd, typeof options.rcFile === "string" ? options.rcFile : `.${configName}rc`),
2812
2829
  options.packageJson && resolve$1(l.cwd, "package.json")
2813
2830
  ]).filter(Boolean))];
2814
- const watch$1 = await import("../cli/_chunks/chokidar.mjs").then((r$1) => r$1.watch || r$1.default || r$1);
2831
+ const watch$1 = await import("./chokidar.mjs").then((n) => n.i).then((r$1) => r$1.watch || r$1.default || r$1);
2815
2832
  const { diff } = await import("ohash/utils");
2816
2833
  const _fswatcher = watch$1(watchingFiles, {
2817
2834
  ignoreInitial: true,
@@ -2856,4 +2873,4 @@ async function watchConfig(options) {
2856
2873
  }
2857
2874
 
2858
2875
  //#endregion
2859
- export { isAbsolute$1 as C, parse$1 as D, normalizeWindowsPath as E, relative$1 as O, extname$2 as S, normalize$1 as T, h as _, watchConfig as a, basename$1 as b, findNearestFile as c, readGitConfig as d, readPackageJSON as f, resolveModuleURL as g, resolveModulePath as h, setupDotenv as i, resolve$1 as k, findWorkspaceDir as l, resolvePackageJSON as m, loadConfig as n, debounce as o, resolveGitConfig as p, loadDotenv as r, findFile as s, SUPPORTED_EXTENSIONS as t, parseGitConfig as u, C as v, join$1 as w, dirname$1 as x, N$1 as y };
2876
+ export { relative$1 as A, dirname$1 as C, normalize$1 as D, join$1 as E, normalizeWindowsPath as O, basename$1 as S, isAbsolute$1 as T, resolveModulePath as _, setupDotenv as a, C as b, dist_exports$1 as c, findWorkspaceDir as d, parseGitConfig as f, resolvePackageJSON as g, resolveGitConfig as h, loadDotenv as i, resolve$1 as j, parse$1 as k, findFile as l, readPackageJSON as m, dist_exports as n, watchConfig as o, readGitConfig as p, loadConfig as r, debounce as s, SUPPORTED_EXTENSIONS as t, findNearestFile as u, resolveModuleURL as v, extname$2 as w, N$1 as x, h as y };
@@ -1,3 +1,4 @@
1
+ import { n as __exportAll } from "../_rolldown.mjs";
1
2
  import * as sp from "node:path";
2
3
  import { join, relative, resolve, sep } from "node:path";
3
4
  import { stat, unwatchFile, watch, watchFile } from "node:fs";
@@ -957,6 +958,12 @@ var NodeFsHandler = class {
957
958
  //#endregion
958
959
  //#region node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.js
959
960
  /*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */
961
+ var chokidar_exports = /* @__PURE__ */ __exportAll({
962
+ FSWatcher: () => FSWatcher,
963
+ WatchHelper: () => WatchHelper,
964
+ default: () => chokidar_default,
965
+ watch: () => watch$1
966
+ });
960
967
  const SLASH = "/";
961
968
  const SLASH_SLASH = "//";
962
969
  const ONE_DOT = ".";
@@ -1601,4 +1608,4 @@ var chokidar_default = {
1601
1608
  };
1602
1609
 
1603
1610
  //#endregion
1604
- export { watch$1 as i, WatchHelper as n, chokidar_default as r, FSWatcher as t };
1611
+ export { watch$1 as a, chokidar_exports as i, WatchHelper as n, chokidar_default as r, FSWatcher as t };
@@ -1,4 +1,5 @@
1
- import { v as C$2, y as N$3 } from "./c12.mjs";
1
+ import { n as __exportAll } from "../_rolldown.mjs";
2
+ import { b as C$2, x as N$3, y as h$2 } from "./c12.mjs";
2
3
 
3
4
  //#region node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
4
5
  const m = Symbol.for("__confbox_fmt__"), k$1 = /^(\s+)/, v$2 = /(\s+)$/;
@@ -423,6 +424,7 @@ function h$1(n, l) {
423
424
 
424
425
  //#endregion
425
426
  //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs
427
+ var json5_exports = /* @__PURE__ */ __exportAll({ parseJSON5: () => Cu });
426
428
  function R$2(C$3) {
427
429
  return C$3 && C$3.__esModule && Object.prototype.hasOwnProperty.call(C$3, "default") ? C$3.default : C$3;
428
430
  }
@@ -458,9 +460,9 @@ function uu() {
458
460
  if (Z$2) return q$1;
459
461
  Z$2 = 1;
460
462
  const C$3 = T$1();
461
- let r$1, s$1, c$1, d, h$2, o, f, S$3, m$1;
463
+ let r$1, s$1, c$1, d, h$3, o, f, S$3, m$1;
462
464
  q$1 = function(a, g$1) {
463
- r$1 = String(a), s$1 = "start", c$1 = [], d = 0, h$2 = 1, o = 0, f = void 0, S$3 = void 0, m$1 = void 0;
465
+ r$1 = String(a), s$1 = "start", c$1 = [], d = 0, h$3 = 1, o = 0, f = void 0, S$3 = void 0, m$1 = void 0;
464
466
  do
465
467
  f = E$1(), Q$3[s$1]();
466
468
  while (f.type !== "eof");
@@ -502,7 +504,7 @@ function uu() {
502
504
  function u() {
503
505
  const D$1 = n();
504
506
  return D$1 === `
505
- ` ? (h$2++, o = 0) : D$1 ? o += D$1.length : o++, D$1 && (d += D$1.length), D$1;
507
+ ` ? (h$3++, o = 0) : D$1 ? o += D$1.length : o++, D$1 && (d += D$1.length), D$1;
506
508
  }
507
509
  const l = {
508
510
  default() {
@@ -874,7 +876,7 @@ function uu() {
874
876
  return {
875
877
  type: D$1,
876
878
  value: a,
877
- line: h$2,
879
+ line: h$3,
878
880
  column: o
879
881
  };
880
882
  }
@@ -1026,13 +1028,13 @@ function uu() {
1026
1028
  D$1 == null ? s$1 = "end" : Array.isArray(D$1) ? s$1 = "afterArrayValue" : s$1 = "afterPropertyValue";
1027
1029
  }
1028
1030
  function B$1(D$1) {
1029
- return k$2(D$1 === void 0 ? `JSON5: invalid end of input at ${h$2}:${o}` : `JSON5: invalid character '${z$2(D$1)}' at ${h$2}:${o}`);
1031
+ return k$2(D$1 === void 0 ? `JSON5: invalid end of input at ${h$3}:${o}` : `JSON5: invalid character '${z$2(D$1)}' at ${h$3}:${o}`);
1030
1032
  }
1031
1033
  function N$4() {
1032
- return k$2(`JSON5: invalid end of input at ${h$2}:${o}`);
1034
+ return k$2(`JSON5: invalid end of input at ${h$3}:${o}`);
1033
1035
  }
1034
1036
  function L$2() {
1035
- return o -= 5, k$2(`JSON5: invalid identifier character at ${h$2}:${o}`);
1037
+ return o -= 5, k$2(`JSON5: invalid identifier character at ${h$3}:${o}`);
1036
1038
  }
1037
1039
  function X$2(D$1) {
1038
1040
  console.warn(`JSON5: '${z$2(D$1)}' in strings is not valid ECMAScript; consider escaping`);
@@ -1061,7 +1063,7 @@ function uu() {
1061
1063
  }
1062
1064
  function k$2(D$1) {
1063
1065
  const a = new SyntaxError(D$1);
1064
- return a.lineNumber = h$2, a.columnNumber = o, a;
1066
+ return a.lineNumber = h$3, a.columnNumber = o, a;
1065
1067
  }
1066
1068
  return q$1;
1067
1069
  }
@@ -1072,7 +1074,7 @@ function tu() {
1072
1074
  K$2 = 1;
1073
1075
  const C$3 = T$1();
1074
1076
  return J$1 = function(s$1, c$1, d) {
1075
- const h$2 = [];
1077
+ const h$3 = [];
1076
1078
  let o = "", f, S$3, m$1 = "", v$3;
1077
1079
  if (c$1 != null && typeof c$1 == "object" && !Array.isArray(c$1) && (d = c$1.space, v$3 = c$1.quote, c$1 = c$1.replacer), typeof c$1 == "function") S$3 = c$1;
1078
1080
  else if (Array.isArray(c$1)) {
@@ -1140,8 +1142,8 @@ function tu() {
1140
1142
  return l = l.replace(new RegExp(F$2, "g"), u[F$2]), F$2 + l + F$2;
1141
1143
  }
1142
1144
  function x$3(E$1) {
1143
- if (h$2.indexOf(E$1) >= 0) throw TypeError("Converting circular structure to JSON5");
1144
- h$2.push(E$1);
1145
+ if (h$3.indexOf(E$1) >= 0) throw TypeError("Converting circular structure to JSON5");
1146
+ h$3.push(E$1);
1145
1147
  let n = o;
1146
1148
  o = o + m$1;
1147
1149
  let u = f || Object.keys(E$1), l = [];
@@ -1165,7 +1167,7 @@ function tu() {
1165
1167
  ` + n + "}";
1166
1168
  }
1167
1169
  }
1168
- return h$2.pop(), o = n, F$2;
1170
+ return h$3.pop(), o = n, F$2;
1169
1171
  }
1170
1172
  function w$2(E$1) {
1171
1173
  if (E$1.length === 0) return e(E$1);
@@ -1175,8 +1177,8 @@ function tu() {
1175
1177
  return E$1;
1176
1178
  }
1177
1179
  function A$1(E$1) {
1178
- if (h$2.indexOf(E$1) >= 0) throw TypeError("Converting circular structure to JSON5");
1179
- h$2.push(E$1);
1180
+ if (h$3.indexOf(E$1) >= 0) throw TypeError("Converting circular structure to JSON5");
1181
+ h$3.push(E$1);
1180
1182
  let n = o;
1181
1183
  o = o + m$1;
1182
1184
  let u = [];
@@ -1194,7 +1196,7 @@ function tu() {
1194
1196
  ` + o + i + `,
1195
1197
  ` + n + "]";
1196
1198
  }
1197
- return h$2.pop(), o = n, l;
1199
+ return h$3.pop(), o = n, l;
1198
1200
  }
1199
1201
  }, J$1;
1200
1202
  }
@@ -1206,6 +1208,10 @@ function Cu(C$3, r$1) {
1206
1208
 
1207
1209
  //#endregion
1208
1210
  //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs
1211
+ var yaml_exports = /* @__PURE__ */ __exportAll({
1212
+ parseYAML: () => mr,
1213
+ stringifyYAML: () => gr
1214
+ });
1209
1215
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function oe(e) {
1210
1216
  return typeof e > "u" || e === null;
1211
1217
  }
@@ -2264,6 +2270,7 @@ function gr(e, n) {
2264
2270
 
2265
2271
  //#endregion
2266
2272
  //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs
2273
+ var toml_exports = /* @__PURE__ */ __exportAll({ parseTOML: () => Q });
2267
2274
  /*!
2268
2275
  * Copyright (c) Squirrel Chat et al., All rights reserved.
2269
2276
  * SPDX-License-Identifier: BSD-3-Clause
@@ -2917,4 +2924,8 @@ function Q(e) {
2917
2924
  }
2918
2925
 
2919
2926
  //#endregion
2920
- export { h$1 as a, Cu as i, gr as n, x$1 as o, mr as r, Q as t };
2927
+ //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs
2928
+ var jsonc_exports = /* @__PURE__ */ __exportAll({ parseJSONC: () => h$2 });
2929
+
2930
+ //#endregion
2931
+ export { mr as a, json5_exports as c, gr as i, h$1 as l, Q as n, yaml_exports as o, toml_exports as r, Cu as s, jsonc_exports as t, x$1 as u };
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJSMin } from "../_rolldown.mjs";
1
+ import { r as __require, t as __commonJSMin } from "../_rolldown.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/duplexer@0.1.2/node_modules/duplexer/index.js
4
4
  var require_duplexer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJSMin } from "../_rolldown.mjs";
1
+ import { r as __require, t as __commonJSMin } from "../_rolldown.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js
4
4
  /*!