vite-plus 0.2.6 → 0.2.8

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 (61) hide show
  1. package/AGENTS.md +4 -0
  2. package/LICENSE +5 -1
  3. package/README.md +1 -1
  4. package/bin/vpr +3 -2
  5. package/binding/index.cjs +193 -80
  6. package/binding/index.d.cts +99 -8
  7. package/dist/agent-CI79DuSy.js +600 -0
  8. package/dist/bin.js +1367 -11
  9. package/dist/{cli-truncate-BVOlIIPy.js → cli-truncate-Bg3RDXpi.js} +0 -2
  10. package/dist/client/bundledDevClient.mjs +1 -0
  11. package/dist/config/bin.js +13 -126
  12. package/dist/{constants-CaXMuYUG.js → constants-BppDcRc1.js} +1 -1
  13. package/dist/create/bin.js +90 -77
  14. package/dist/{define-config-iGV0CGUk.cjs → define-config-CEm_MtvJ.cjs} +1 -1
  15. package/dist/{define-config-hV8qyU8p.js → define-config-DPnHe1Mx.js} +2 -2
  16. package/dist/{define-config-eLQH9us2.d.ts → define-config-DWoAkNdp.d.ts} +16 -0
  17. package/dist/define-config.cjs +1 -1
  18. package/dist/define-config.d.ts +1 -1
  19. package/dist/define-config.js +1 -1
  20. package/dist/{dist-CKz3vcoG.js → dist-CSQWHI6y.js} +3 -8
  21. package/dist/dist-DT25H9pj.js +3 -0
  22. package/dist/{agent-0gFJkIKu.js → editor-CGWdbLgD.js} +709 -579
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/{json-DiRs8ceZ.js → json-BU88uu6o.js} +2 -6
  27. package/dist/migration/bin.js +60 -50
  28. package/dist/{oxlint-plugin-config-CMSCIkks.js → oxlint-plugin-config-BHOzlwMw.js} +1 -1
  29. package/dist/oxlint-plugin.js +1 -1
  30. package/dist/pack-bin.js +2 -2
  31. package/dist/{package-CP5EUXlu.js → package-hV-77cBb.js} +2 -2
  32. package/dist/{tsconfig-Cac-NNdT.js → prompts-DYap08te.js} +32 -174
  33. package/dist/{resolve-vite-config-BY7PB-LW.js → resolve-vite-config-EWXclqvV.js} +1 -1
  34. package/dist/{rolldown-runtime-C7HZzL1F.js → rolldown-runtime-CMFfr-1z.js} +1 -1
  35. package/dist/staged/bin.js +20 -23
  36. package/dist/{help-YP84FSEz.js → terminal-CrqqK8WT.js} +39 -2
  37. package/dist/tsconfig-CVUKLfL8.js +151 -0
  38. package/dist/{tsgolint-path-B-yOos8p.js → tsgolint-path-eMZT-oea.js} +4 -2
  39. package/dist/tsgolint-path.js +1 -1
  40. package/dist/version.js +5 -5
  41. package/dist/versions.js +5 -5
  42. package/docs/config/index.md +13 -0
  43. package/docs/config/staged.md +2 -1
  44. package/docs/guide/build.md +1 -1
  45. package/docs/guide/ci.md +28 -3
  46. package/docs/guide/commit-hooks.md +76 -9
  47. package/docs/guide/dev.md +4 -0
  48. package/docs/guide/env.md +8 -4
  49. package/docs/guide/index.md +1 -1
  50. package/docs/guide/install.md +2 -0
  51. package/docs/guide/installer-env-vars.md +3 -3
  52. package/docs/guide/migrate.md +11 -3
  53. package/docs/guide/monorepo.md +94 -6
  54. package/docs/guide/run.md +15 -0
  55. package/docs/guide/test.md +4 -0
  56. package/docs/guide/troubleshooting.md +9 -5
  57. package/package.json +18 -24
  58. package/dist/dist-CtM2JRbM.js +0 -3
  59. package/dist/editor-D4T70tKk.js +0 -675
  60. package/dist/terminal-uTv0ZaMr.js +0 -33
  61. package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
@@ -1,20 +1,19 @@
1
- import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-C7HZzL1F.js";
2
- import { s as VITE_PLUS_NAME } from "../constants-CaXMuYUG.js";
3
- import { A as intro, B as runCommandSilently, C as resolveApproveBuildTargets, E as PackageManager, F as spinner, I as text, L as require_picocolors, M as multiselect, O as cancel, P as select, R as isCancel, S as detectGatedBuilds, T as DependencyType, V as require_cross_spawn, d as downloadPackageManager$1, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, j as log, k as confirm, m as runViteFmt, p as resolveGitInit, u as defaultInteractive, v as editYamlFile, x as approveBuilds, y as readYamlFile, z as runCommand$1 } from "../tsconfig-Cac-NNdT.js";
4
- import { a as printHeader, i as muted, o as success, r as log$1, t as accent } from "../terminal-uTv0ZaMr.js";
5
- import { i as readJsonFile, n as editJsonFile } from "../json-DiRs8ceZ.js";
6
- import { a as resolveViteConfig, n as findWorkspaceRoot, r as hasViteConfig, t as findViteConfig } from "../resolve-vite-config-BY7PB-LW.js";
1
+ import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-CMFfr-1z.js";
2
+ import { a as printHeader, c as renderCliDoc, i as muted, o as success, r as log, t as accent } from "../terminal-CrqqK8WT.js";
3
+ import { s as VITE_PLUS_NAME } from "../constants-BppDcRc1.js";
4
+ import { A as isCancel, C as log$1, D as spinner, E as select, M as runCommandSilently, N as require_cross_spawn, O as text, S as intro, _ as DependencyType, a as resolveGitInit, b as cancel, c as selectPackageManager, d as readYamlFile, h as resolveApproveBuildTargets, i as promptGitHooks, j as runCommand$1, k as require_picocolors, m as detectGatedBuilds, n as defaultInteractive, o as runViteFmt, p as approveBuilds, r as downloadPackageManager$1, s as runViteInstall, u as editYamlFile, v as PackageManager, w as multiselect, x as confirm } from "../prompts-DYap08te.js";
5
+ import { i as readJsonFile, n as editJsonFile } from "../json-BU88uu6o.js";
6
+ import { a as resolveViteConfig, n as findWorkspaceRoot, r as hasViteConfig, t as findViteConfig } from "../resolve-vite-config-EWXclqvV.js";
7
7
  import { t as lib_default } from "../lib-L3DWSRQp.js";
8
- import { o as fetchNpmResource, s as getNpmRegistry, t as checkNpmPackageExists } from "../package-CP5EUXlu.js";
9
- import { I as promptEslintMigration, J as templatesDir, N as detectEslintProject, S as injectCreateDefaultTemplate, a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as rewriteStandaloneProject, g as setPackageManager, l as rewriteMonorepo, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID, u as rewriteMonorepoProject, y as installGitHooks } from "../agent-0gFJkIKu.js";
10
- import { a as writeEditorConfigs, c as updatePackageJsonWithDeps, d as detectFramework, f as hasFrameworkShim, g as promptPrettierMigration, i as selectEditors, l as updateWorkspaceConfig, m as detectPrettierProject, n as detectExistingEditors, o as detectWorkspace$1, s as isBingoTemplate, u as addFrameworkShim } from "../editor-D4T70tKk.js";
11
- import { t as renderCliDoc } from "../help-YP84FSEz.js";
8
+ import { o as fetchNpmResource, s as getNpmRegistry, t as checkNpmPackageExists } from "../package-hV-77cBb.js";
9
+ import { a as selectAgentTargets, c as writeCopilotSetupWorkflow, f as displayRelative, m as templatesDir, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID } from "../agent-CI79DuSy.js";
10
+ import { A as addFrameworkShim, D as isBingoTemplate, E as detectWorkspace$1, H as promptEslintMigration, I as promptPrettierMigration, M as hasFrameworkShim, O as updatePackageJsonWithDeps, P as detectPrettierProject, _ as shouldSkipStagedMigrationForHooks, a as writeEditorConfigs, c as rewriteStandaloneProject, h as installGitHooks, i as selectEditors, j as detectFramework, k as updateWorkspaceConfig, n as detectExistingEditors, o as rewriteMonorepo, p as setPackageManager, s as rewriteMonorepoProject, v as injectCreateDefaultTemplate, z as detectEslintProject } from "../editor-CGWdbLgD.js";
12
11
  import path from "node:path";
13
12
  import { runCommand, upsertJsonConfig, vitePlusHeader } from "../../binding/index.js";
14
- import fs from "node:fs";
15
13
  import { styleText } from "node:util";
16
- import { createHash, randomUUID } from "node:crypto";
14
+ import fs from "node:fs";
17
15
  import os from "node:os";
16
+ import { createHash, randomUUID } from "node:crypto";
18
17
  import fsPromises from "node:fs/promises";
19
18
  import assert from "node:assert";
20
19
  //#region src/utils/git.ts
@@ -296,7 +295,7 @@ function verifyIntegrity(bytes, integrity) {
296
295
  const actual = hash.digest("base64");
297
296
  if (actual !== parsed.expected) throw new Error(`integrity check failed: expected ${integrity}, got ${parsed.algorithm}-${actual}`);
298
297
  }
299
- const MAX_TARBALL_BYTES = 50 * 1024 * 1024;
298
+ const MAX_TARBALL_BYTES = 52428800;
300
299
  async function downloadTarball(url) {
301
300
  const response = await fetchNpmResource(url, { timeoutMs: 3e4 });
302
301
  if (!response.ok) throw new Error(`failed to download tarball (${response.status}): ${url}`);
@@ -418,7 +417,7 @@ async function extractTarballTo(bytes, destDir) {
418
417
  throw error;
419
418
  }
420
419
  }
421
- const STAGING_STALE_MS = 1440 * 60 * 1e3;
420
+ const STAGING_STALE_MS = 864e5;
422
421
  /**
423
422
  * Remove `<destDir>.tmp-*` siblings left behind by a previous crash so
424
423
  * repeated aborts don't accumulate orphaned staging trees. Only deletes
@@ -637,7 +636,8 @@ function validateCreateTemplates(templates) {
637
636
  });
638
637
  }
639
638
  async function fetchPackument(scope, packageName) {
640
- const response = await fetchNpmResource(`${getNpmRegistry(scope)}/${packageName}`, {
639
+ const url = `${getNpmRegistry(scope)}/${packageName}`;
640
+ const response = await fetchNpmResource(url, {
641
641
  headers: { accept: "application/json" },
642
642
  timeoutMs: 5e3
643
643
  });
@@ -4053,7 +4053,7 @@ async function promptPackageNameAndTargetDir(defaultPackageName, interactive) {
4053
4053
  } else {
4054
4054
  packageName = defaultPackageName;
4055
4055
  targetDir = getProjectDirFromPackageName(packageName);
4056
- log.info(`Using default package name: ${accent(packageName)}`);
4056
+ log$1.info(`Using default package name: ${accent(packageName)}`);
4057
4057
  }
4058
4058
  return {
4059
4059
  packageName,
@@ -4073,7 +4073,7 @@ async function promptTargetDir(defaultTargetDir, interactive, options) {
4073
4073
  targetDir = validateTargetDir(selected ?? defaultTargetDir, options?.cwd).directory;
4074
4074
  } else {
4075
4075
  targetDir = validateTargetDir(defaultTargetDir, options?.cwd).directory;
4076
- log.info(`Using default target directory: ${accent(targetDir)}`);
4076
+ log$1.info(`Using default target directory: ${accent(targetDir)}`);
4077
4077
  }
4078
4078
  return targetDir;
4079
4079
  }
@@ -4089,7 +4089,7 @@ function suggestAvailableTargetDir(defaultTargetDir, cwd) {
4089
4089
  async function checkProjectDirExists(projectDirFullPath, interactive) {
4090
4090
  if (isTargetDirAvailable(projectDirFullPath)) return;
4091
4091
  if (!interactive) {
4092
- log.info("Use --directory to specify a different location or remove the directory first");
4092
+ log$1.info("Use --directory to specify a different location or remove the directory first");
4093
4093
  cancelAndExit(`Target directory "${projectDirFullPath}" is not empty`, 1);
4094
4094
  }
4095
4095
  const overwrite = await select({
@@ -4177,7 +4177,7 @@ function printNonInteractiveTable(manifest, orgSpec, isMonorepo) {
4177
4177
  }
4178
4178
  function rejectMonorepoEntryInsideMonorepo(entry, isMonorepo) {
4179
4179
  if (entry.monorepo && isMonorepo) {
4180
- log.info("You are already in a monorepo workspace.\nUse a different template or run this command outside the monorepo");
4180
+ log$1.info("You are already in a monorepo workspace.\nUse a different template or run this command outside the monorepo");
4181
4181
  cancelAndExit("Cannot create a monorepo inside an existing monorepo", 1);
4182
4182
  }
4183
4183
  }
@@ -4214,7 +4214,7 @@ async function resolveOrgManifestForCreate(args) {
4214
4214
  }
4215
4215
  if (!manifest) {
4216
4216
  if (orgSpec.name !== void 0) cancelAndExit(`No \`createConfig.templates\` manifest in ${orgSpec.scope}/create — \`@org:name\` requires one.`, 1);
4217
- log.info(`No \`createConfig.templates\` manifest in ${orgSpec.scope}/create — running it as a normal package.`);
4217
+ log$1.info(`No \`createConfig.templates\` manifest in ${orgSpec.scope}/create — running it as a normal package.`);
4218
4218
  return { kind: "passthrough" };
4219
4219
  }
4220
4220
  if (orgSpec.name === void 0) {
@@ -4225,7 +4225,7 @@ async function resolveOrgManifestForCreate(args) {
4225
4225
  const picked = await pickOrgTemplate(manifest, { isMonorepo: args.isMonorepo });
4226
4226
  if (picked === ORG_PICKER_CANCEL) cancelAndExit();
4227
4227
  if (picked === ORG_PICKER_BUILTIN_ESCAPE) {
4228
- if (args.isMonorepo && manifest.templates.every((t) => t.monorepo)) log.info(`No templates from ${manifest.packageName} are applicable inside a monorepo — showing Vite+ built-in templates instead.`);
4228
+ if (args.isMonorepo && manifest.templates.every((t) => t.monorepo)) log$1.info(`No templates from ${manifest.packageName} are applicable inside a monorepo — showing Vite+ built-in templates instead.`);
4229
4229
  return { kind: "escape-hatch" };
4230
4230
  }
4231
4231
  rejectMonorepoEntryInsideMonorepo(picked.entry, args.isMonorepo);
@@ -4325,7 +4325,7 @@ async function registerLocalTemplate(workspaceRoot, entry, silent = false) {
4325
4325
  });
4326
4326
  const existingEntry = existing.templates.find((t) => t.name === entry.name);
4327
4327
  if (existingEntry) {
4328
- if (existingEntry.template !== entry.template) log.warn(`create.templates already has an entry named '${entry.name}' pointing at '${existingEntry.template}'; left unchanged.\nUpdate it by hand if it should run '${entry.template}' instead.`);
4328
+ if (existingEntry.template !== entry.template) log$1.warn(`create.templates already has an entry named '${entry.name}' pointing at '${existingEntry.template}'; left unchanged.\nUpdate it by hand if it should run '${entry.template}' instead.`);
4329
4329
  return;
4330
4330
  }
4331
4331
  const nextCreate = {
@@ -4343,7 +4343,7 @@ async function registerLocalTemplate(workspaceRoot, entry, silent = false) {
4343
4343
  function ensureViteConfig(workspaceRoot, silent) {
4344
4344
  const configPath = path.join(workspaceRoot, "vite.config.ts");
4345
4345
  fs.writeFileSync(configPath, `import { defineConfig } from '${VITE_PLUS_NAME}';\n\nexport default defineConfig({});\n`);
4346
- if (!silent) log.success(`✔ Created vite.config.ts in ${displayRelative(configPath)}`);
4346
+ if (!silent) log$1.success(`✔ Created vite.config.ts in ${displayRelative(configPath)}`);
4347
4347
  return configPath;
4348
4348
  }
4349
4349
  /**
@@ -4371,7 +4371,7 @@ function writeCreateBlock(configPath, create) {
4371
4371
  //#endregion
4372
4372
  //#region src/create/templates/generator.ts
4373
4373
  async function executeGeneratorScaffold(workspaceInfo, templateInfo, options) {
4374
- if (!options?.silent) log.step("Creating generator scaffold...");
4374
+ if (!options?.silent) log$1.step("Creating generator scaffold...");
4375
4375
  let description;
4376
4376
  if (templateInfo.interactive) {
4377
4377
  const defaultDescription = "Generate new components for our monorepo";
@@ -4390,7 +4390,7 @@ async function executeGeneratorScaffold(workspaceInfo, templateInfo, options) {
4390
4390
  if (description) pkg.description = description;
4391
4391
  return pkg;
4392
4392
  });
4393
- if (!options?.silent) log.success("Generator scaffold created");
4393
+ if (!options?.silent) log$1.success("Generator scaffold created");
4394
4394
  return {
4395
4395
  exitCode: 0,
4396
4396
  projectDir: templateInfo.targetDir
@@ -4402,14 +4402,14 @@ var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
4402
4402
  const { gray, yellow } = import_picocolors.default;
4403
4403
  async function executeRemoteTemplate(workspaceInfo, templateInfo, options) {
4404
4404
  const silent = options?.silent ?? false;
4405
- if (!silent) log.step("Generating project…");
4405
+ if (!silent) log$1.step("Generating project…");
4406
4406
  let isGitHubTemplate = templateInfo.command === "degit";
4407
4407
  let result;
4408
4408
  if (templateInfo.command === "node") {
4409
4409
  const command = templateInfo.command;
4410
4410
  const args = templateInfo.args;
4411
4411
  const envs = templateInfo.envs;
4412
- if (!silent) log.info(`Running: ${gray(`${command} ${args.join(" ")}`)}`);
4412
+ if (!silent) log$1.info(`Running: ${gray(`${command} ${args.join(" ")}`)}`);
4413
4413
  result = await runCommandAndDetectProjectDir({
4414
4414
  command,
4415
4415
  args,
@@ -4419,7 +4419,7 @@ async function executeRemoteTemplate(workspaceInfo, templateInfo, options) {
4419
4419
  } else {
4420
4420
  if (!isGitHubTemplate) {
4421
4421
  if (!await checkNpmPackageExists(templateInfo.command)) {
4422
- if (!silent) log.error(`Template "${templateInfo.command}" not found on npm. Run ${yellow("vp create --list")} to see available templates.`);
4422
+ if (!silent) log$1.error(`Template "${templateInfo.command}" not found on npm. Run ${yellow("vp create --list")} to see available templates.`);
4423
4423
  return { exitCode: 1 };
4424
4424
  }
4425
4425
  }
@@ -4427,13 +4427,13 @@ async function executeRemoteTemplate(workspaceInfo, templateInfo, options) {
4427
4427
  }
4428
4428
  const exitCode = result.exitCode;
4429
4429
  if (exitCode === 127) {
4430
- log.info(yellow("\nTroubleshooting:"));
4431
- log.info(` ${gray("•")} Command not found. Make sure Node.js is installed`);
4430
+ log$1.info(yellow("\nTroubleshooting:"));
4431
+ log$1.info(` ${gray("•")} Command not found. Make sure Node.js is installed`);
4432
4432
  } else if (isGitHubTemplate && exitCode !== 0) {
4433
- log.info(yellow("\nTroubleshooting:"));
4434
- log.info(` ${gray("•")} Make sure the GitHub repository exists`);
4435
- log.info(` ${gray("•")} Check your internet connection`);
4436
- log.info(` ${gray("•")} Repository might be private (requires authentication)`);
4433
+ log$1.info(yellow("\nTroubleshooting:"));
4434
+ log$1.info(` ${gray("•")} Make sure the GitHub repository exists`);
4435
+ log$1.info(` ${gray("•")} Check your internet connection`);
4436
+ log$1.info(` ${gray("•")} Repository might be private (requires authentication)`);
4437
4437
  }
4438
4438
  return result;
4439
4439
  }
@@ -4443,7 +4443,7 @@ async function runRemoteTemplateCommand(workspaceInfo, cwd, templateInfo, detect
4443
4443
  const execArgs = [...templateInfo.args];
4444
4444
  const envs = templateInfo.envs;
4445
4445
  const { command, args } = formatDlxCommand(remotePackageName, execArgs, workspaceInfo);
4446
- if (!silent) log.info(`Running: ${gray(`${command} ${args.join(" ")}`)}`);
4446
+ if (!silent) log$1.info(`Running: ${gray(`${command} ${args.join(" ")}`)}`);
4447
4447
  if (detectCreatedProjectDir) return await runCommandAndDetectProjectDir({
4448
4448
  command,
4449
4449
  args,
@@ -4504,7 +4504,7 @@ async function executeBuiltinTemplate(workspaceInfo, templateInfo, options) {
4504
4504
  };
4505
4505
  }
4506
4506
  if (templateInfo.command.startsWith("vite:")) {
4507
- if (!options?.silent) log.error(`Unknown builtin template "${templateInfo.command}". Run ${import_picocolors.default.yellow("vp create --list")} to see available templates.`);
4507
+ if (!options?.silent) log$1.error(`Unknown builtin template "${templateInfo.command}". Run ${import_picocolors.default.yellow("vp create --list")} to see available templates.`);
4508
4508
  return { exitCode: 1 };
4509
4509
  }
4510
4510
  const result = await runRemoteTemplateCommand(workspaceInfo, workspaceInfo.rootDir, templateInfo, false, options?.silent ?? false);
@@ -4550,8 +4550,8 @@ async function executeMonorepoTemplate(workspaceInfo, templateInfo, options) {
4550
4550
  workspaceInfo.monorepoScope = getScopeFromPackageName(templateInfo.packageName);
4551
4551
  const fullPath = path.join(workspaceInfo.rootDir, templateInfo.targetDir);
4552
4552
  if (!options?.silent) {
4553
- log.info(`Target directory: ${formatDisplayTargetDir(templateInfo.targetDir)}`);
4554
- log.step("Creating Vite+ monorepo...");
4553
+ log$1.info(`Target directory: ${formatDisplayTargetDir(templateInfo.targetDir)}`);
4554
+ log$1.step("Creating Vite+ monorepo...");
4555
4555
  }
4556
4556
  copyDir(path.join(templatesDir, "monorepo"), fullPath);
4557
4557
  renameFiles(fullPath);
@@ -4584,8 +4584,8 @@ async function executeMonorepoTemplate(workspaceInfo, templateInfo, options) {
4584
4584
  const yarnrcPath = path.join(fullPath, ".yarnrc.yml");
4585
4585
  if (fs.existsSync(yarnrcPath)) fs.unlinkSync(yarnrcPath);
4586
4586
  }
4587
- if (!options?.silent) log.success("Monorepo template created");
4588
- if (!options?.silent) log.step("Creating default application in apps/website...");
4587
+ if (!options?.silent) log$1.success("Monorepo template created");
4588
+ if (!options?.silent) log$1.step("Creating default application in apps/website...");
4589
4589
  const appResult = await runRemoteTemplateCommand(workspaceInfo, fullPath, discoverTemplate("create-vite@latest", [
4590
4590
  InitialMonorepoAppDir,
4591
4591
  "--template",
@@ -4593,7 +4593,7 @@ async function executeMonorepoTemplate(workspaceInfo, templateInfo, options) {
4593
4593
  "--no-interactive"
4594
4594
  ], workspaceInfo), false, options?.silent ?? false);
4595
4595
  if (appResult.exitCode !== 0) {
4596
- log.error(`Failed to create default application: ${appResult.exitCode}`);
4596
+ log$1.error(`Failed to create default application: ${appResult.exitCode}`);
4597
4597
  return appResult;
4598
4598
  }
4599
4599
  const appPackageName = workspaceInfo.monorepoScope ? `${workspaceInfo.monorepoScope}/website` : "website";
@@ -4601,11 +4601,11 @@ async function executeMonorepoTemplate(workspaceInfo, templateInfo, options) {
4601
4601
  setPackageName(appProjectPath, appPackageName);
4602
4602
  rewriteMonorepoProject(appProjectPath, workspaceInfo.packageManager, void 0, options?.silent ?? false);
4603
4603
  dropAliasedRuntimeDevDeps(appProjectPath, workspaceInfo.packageManager);
4604
- if (!options?.silent) log.step("Creating default library in packages/utils...");
4604
+ if (!options?.silent) log$1.step("Creating default library in packages/utils...");
4605
4605
  const libraryDir = "packages/utils";
4606
4606
  const libraryResult = await runRemoteTemplateCommand(workspaceInfo, fullPath, discoverTemplate(LibraryTemplateRepo, [libraryDir], workspaceInfo), false, options?.silent ?? false);
4607
4607
  if (libraryResult.exitCode !== 0) {
4608
- log.error(`Failed to create default library, exit code: ${libraryResult.exitCode}`);
4608
+ log$1.error(`Failed to create default library, exit code: ${libraryResult.exitCode}`);
4609
4609
  return libraryResult;
4610
4610
  }
4611
4611
  const libraryPackageName = workspaceInfo.monorepoScope ? `${workspaceInfo.monorepoScope}/utils` : "utils";
@@ -4983,17 +4983,17 @@ function getCopilotSetupRoot(projectRoot, isExistingMonorepo) {
4983
4983
  }
4984
4984
  function showCreateSummary(options) {
4985
4985
  const { description, installSummary, nextCommand, packageManager, packageManagerVersion, projectDir } = options;
4986
- log$1(`${styleText("magenta", "◇")} Scaffolded ${accent(projectDir)}${description ? ` with ${description}` : ""}`);
4987
- log$1(`${styleText("gray", "•")} Node ${process.versions.node} ${packageManager} ${packageManagerVersion}`);
4988
- if (installSummary?.status === "installed") log$1(`${styleText("green", "✓")} Dependencies installed in ${formatDuration(installSummary.durationMs)}`);
4989
- log$1(`${styleText("blue", "→")} Next: ${accent(nextCommand)}`);
4986
+ log(`${styleText("magenta", "◇")} Scaffolded ${accent(projectDir)}${description ? ` with ${description}` : ""}`);
4987
+ log(`${styleText("gray", "•")} Node ${process.versions.node} ${packageManager} ${packageManagerVersion}`);
4988
+ if (installSummary?.status === "installed") log(`${styleText("green", "✓")} Dependencies installed in ${formatDuration(installSummary.durationMs)}`);
4989
+ log(`${styleText("blue", "→")} Next: ${accent(nextCommand)}`);
4990
4990
  }
4991
4991
  async function main() {
4992
4992
  const { templateName, options, templateArgs } = parseArgs();
4993
4993
  let compactOutput = !options.verbose;
4994
4994
  if (options.help) {
4995
4995
  printHeader();
4996
- log$1(helpMessage);
4996
+ log(helpMessage);
4997
4997
  return;
4998
4998
  }
4999
4999
  if (options.list) {
@@ -5006,7 +5006,7 @@ async function main() {
5006
5006
  if (options.directory) {
5007
5007
  const formatted = formatTargetDir(options.directory);
5008
5008
  if (formatted.error) {
5009
- log.error(formatted.error);
5009
+ log$1.error(formatted.error);
5010
5010
  cancelAndExit("The --directory option is invalid", 1);
5011
5011
  }
5012
5012
  targetDir = formatted.directory;
@@ -5039,7 +5039,7 @@ async function main() {
5039
5039
  if (!selectedTemplateName && configuredCreate.defaultTemplate) selectedTemplateName = configuredCreate.defaultTemplate;
5040
5040
  } catch (error) {
5041
5041
  if (error instanceof CreateConfigSchemaError) cancelAndExit(error.message, 1);
5042
- log.warn(`Could not read \`create\` config from the workspace vite.config (${error.message}); local templates are unavailable`);
5042
+ log$1.warn(`Could not read \`create\` config from the workspace vite.config (${error.message}); local templates are unavailable`);
5043
5043
  }
5044
5044
  else if (!selectedTemplateName) {
5045
5045
  let defaultTemplate;
@@ -5102,15 +5102,15 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5102
5102
  if (!isDirectScaffoldTemplate) compactOutput = false;
5103
5103
  if (targetDir && !isDirectScaffoldTemplate) cancelAndExit("The --directory option is only available for builtin and bundled @org templates", 1);
5104
5104
  if (selectedTemplateName === BuiltinTemplate.monorepo && isMonorepo) {
5105
- log.info("You are already in a monorepo workspace.\nUse a different template or run this command outside the monorepo");
5105
+ log$1.info("You are already in a monorepo workspace.\nUse a different template or run this command outside the monorepo");
5106
5106
  cancelAndExit("Cannot create a monorepo inside an existing monorepo", 1);
5107
5107
  }
5108
5108
  if (selectedTemplateName === BuiltinTemplate.generator && !isMonorepo) {
5109
- log.info("The vite:generator template requires a monorepo workspace.\nRun this command inside a Vite+ monorepo, or create one first with `vp create vite:monorepo`");
5109
+ log$1.info("The vite:generator template requires a monorepo workspace.\nRun this command inside a Vite+ monorepo, or create one first with `vp create vite:monorepo`");
5110
5110
  cancelAndExit("Cannot create a generator outside a monorepo", 1);
5111
5111
  }
5112
5112
  if (isMonorepo && options.git !== void 0) cancelAndExit("The --git/--no-git options are not available when adding a package to an existing monorepo", 1);
5113
- if (isInSubdirectory && !compactOutput) log.info(`Detected monorepo root at ${accent(workspaceInfoOptional.rootDir)}`);
5113
+ if (isInSubdirectory && !compactOutput) log$1.info(`Detected monorepo root at ${accent(workspaceInfoOptional.rootDir)}`);
5114
5114
  if (isMonorepo && options.interactive && !targetDir) {
5115
5115
  let parentDir;
5116
5116
  if (workspaceInfoOptional.parentDirs.length > 0 || isInSubdirectory) {
@@ -5129,10 +5129,11 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5129
5129
  value: "other",
5130
5130
  hint: "Enter a custom target directory"
5131
5131
  });
5132
+ const defaultParentDir = shouldOfferCwdOption ? cwdRelativeToRoot : inferParentDir(selectedTemplateName, workspaceInfoOptional, isLocalTemplate) ?? workspaceInfoOptional.parentDirs[0];
5132
5133
  const selected = await select({
5133
5134
  message: "Where should the new package be added to the monorepo:",
5134
5135
  options: dirOptions,
5135
- initialValue: shouldOfferCwdOption ? cwdRelativeToRoot : inferParentDir(selectedTemplateName, workspaceInfoOptional, isLocalTemplate) ?? workspaceInfoOptional.parentDirs[0]
5136
+ initialValue: defaultParentDir
5136
5137
  });
5137
5138
  if (isCancel(selected)) cancelAndExit();
5138
5139
  if (selected !== "other") parentDir = selected;
@@ -5151,7 +5152,7 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5151
5152
  selectedParentDir = parentDir;
5152
5153
  }
5153
5154
  if (isMonorepo && !options.interactive && !targetDir) {
5154
- if (isInSubdirectory && !compactOutput) log.info(`Use ${accent("--directory")} to specify a different target location.`);
5155
+ if (isInSubdirectory && !compactOutput) log$1.info(`Use ${accent("--directory")} to specify a different target location.`);
5155
5156
  selectedParentDir = inferParentDir(selectedTemplateName, workspaceInfoOptional, isLocalTemplate) ?? workspaceInfoOptional.parentDirs[0];
5156
5157
  }
5157
5158
  if (isGitHubUrl(selectedTemplateName)) if (hasExplicitTargetDir(selectedTemplateArgs)) remoteTargetDir = selectedTemplateArgs[0];
@@ -5159,7 +5160,7 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5159
5160
  const inferredTargetDir = inferGitHubRepoName(selectedTemplateName) ?? "template";
5160
5161
  const remoteTargetBaseDir = selectedParentDir ? path.join(workspaceInfoOptional.rootDir, selectedParentDir) : workspaceInfoOptional.rootDir;
5161
5162
  const defaultTargetDir = suggestAvailableTargetDir(inferredTargetDir, remoteTargetBaseDir);
5162
- if (defaultTargetDir !== inferredTargetDir && options.interactive) log.info(` Target directory "${inferredTargetDir}" already exists. Suggested: ${accent(defaultTargetDir)}`);
5163
+ if (defaultTargetDir !== inferredTargetDir && options.interactive) log$1.info(` Target directory "${inferredTargetDir}" already exists. Suggested: ${accent(defaultTargetDir)}`);
5163
5164
  remoteTargetDir = await promptTargetDir(defaultTargetDir, options.interactive, { cwd: remoteTargetBaseDir });
5164
5165
  selectedTemplateArgs = [remoteTargetDir, ...selectedTemplateArgs];
5165
5166
  }
@@ -5172,7 +5173,7 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5172
5173
  if (enclosingPackage) cancelAndExit(`Cannot scaffold inside existing package "${enclosingPackage.name}" (${enclosingPackage.path}). Use --directory to specify a different location`, 1);
5173
5174
  targetDir = cwdRelativeToRoot;
5174
5175
  }
5175
- log.info(`Using package name: ${accent(packageName)}`);
5176
+ log$1.info(`Using package name: ${accent(packageName)}`);
5176
5177
  } else if (selectedTemplateName === BuiltinTemplate.monorepo) {
5177
5178
  const selected = await promptPackageNameAndTargetDir(getRandomProjectName({ fallbackName: "vite-plus-monorepo" }), options.interactive);
5178
5179
  packageName = selected.packageName;
@@ -5187,12 +5188,15 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5187
5188
  }
5188
5189
  if (options.packageManager && !Object.values(PackageManager).includes(options.packageManager)) {
5189
5190
  const valid = Object.values(PackageManager).join(", ");
5190
- log.error(`Invalid package manager: ${options.packageManager}. Must be one of: ${valid}`);
5191
+ log$1.error(`Invalid package manager: ${options.packageManager}. Must be one of: ${valid}`);
5191
5192
  cancelAndExit("Invalid --package-manager value", 1);
5192
5193
  }
5193
- const packageManager = workspaceInfoOptional.packageManager ?? options.packageManager ?? await selectPackageManager(options.interactive, compactOutput);
5194
+ const requestedPackageManager = options.packageManager;
5195
+ const detectedPackageManager = workspaceInfoOptional.packageManager;
5196
+ const packageManager = (isMonorepo ? detectedPackageManager ?? requestedPackageManager : requestedPackageManager ?? detectedPackageManager) ?? await selectPackageManager(options.interactive, compactOutput);
5197
+ const packageManagerVersion = packageManager === detectedPackageManager ? workspaceInfoOptional.packageManagerVersion : "latest";
5194
5198
  const shouldSilencePackageManagerInstallLog = compactOutput || isMonorepo && workspaceInfoOptional.packageManager !== void 0;
5195
- const downloadResult = await downloadPackageManager$1(packageManager, workspaceInfoOptional.packageManagerVersion, options.interactive, shouldSilencePackageManagerInstallLog);
5199
+ const downloadResult = await downloadPackageManager$1(packageManager, packageManagerVersion, options.interactive, shouldSilencePackageManagerInstallLog);
5196
5200
  const workspaceInfo = {
5197
5201
  ...workspaceInfoOptional,
5198
5202
  packageManager,
@@ -5261,7 +5265,8 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5261
5265
  const handleIgnoredBuilds = async (projectPath, installCwd, summary) => {
5262
5266
  if (summary?.status !== "installed") return;
5263
5267
  const reportedBuilds = [.../* @__PURE__ */ new Set([...summary.pendingBuilds ?? [], ...migratePendingBuilds])];
5264
- const targets = resolveApproveBuildTargets(projectPath, await detectGatedBuilds(installCwd, workspaceInfo.packageManager, reportedBuilds), workspaceInfo.packageManager);
5268
+ const pendingBuilds = await detectGatedBuilds(installCwd, workspaceInfo.packageManager, reportedBuilds);
5269
+ const targets = resolveApproveBuildTargets(projectPath, pendingBuilds, workspaceInfo.packageManager);
5265
5270
  if (targets.length === 0) return;
5266
5271
  pauseCreateProgress();
5267
5272
  const approved = await approveBuilds({
@@ -5297,10 +5302,10 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5297
5302
  });
5298
5303
  resumeCreateProgress();
5299
5304
  if (isCancel(selected)) {
5300
- log.info("Operation cancelled. Skipping git initialization");
5305
+ log$1.info("Operation cancelled. Skipping git initialization");
5301
5306
  shouldInitGit = false;
5302
5307
  } else shouldInitGit = selected;
5303
- } else if (shouldInitGit && !compactOutput) log.info("Initializing git repository (default: yes)");
5308
+ } else if (shouldInitGit && !compactOutput) log$1.info("Initializing git repository (default: yes)");
5304
5309
  updateCreateProgress("Creating monorepo");
5305
5310
  await checkProjectDirExists(path.join(workspaceInfo.rootDir, targetDir), options.interactive);
5306
5311
  const result = isBundledMonorepo ? await executeBundledTemplate(workspaceInfo, {
@@ -5318,17 +5323,22 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5318
5323
  cancelAndExit(`Failed to create monorepo, exit code: ${result.exitCode}`, result.exitCode);
5319
5324
  }
5320
5325
  const fullPath = path.join(workspaceInfo.rootDir, projectDir);
5326
+ const scaffoldedWorkspace = await detectWorkspace$1(fullPath);
5327
+ workspaceInfo.isMonorepo = true;
5328
+ workspaceInfo.workspacePatterns = scaffoldedWorkspace.workspacePatterns;
5329
+ workspaceInfo.parentDirs = scaffoldedWorkspace.parentDirs;
5330
+ workspaceInfo.packages = scaffoldedWorkspace.packages;
5321
5331
  if (shouldInitGit) {
5322
5332
  const gitResult = import_cross_spawn.default.sync("git", ["init"], {
5323
5333
  stdio: "pipe",
5324
5334
  cwd: fullPath
5325
5335
  });
5326
5336
  if (gitResult.status === 0) {
5327
- if (!compactOutput) log.success("Git repository initialized");
5337
+ if (!compactOutput) log$1.success("Git repository initialized");
5328
5338
  ensureDefaultGitignoreEntries(fullPath);
5329
5339
  } else {
5330
- log.warn("Failed to initialize git repository");
5331
- if (gitResult.stderr) log.info(gitResult.stderr.toString());
5340
+ log$1.warn("Failed to initialize git repository");
5341
+ if (gitResult.stderr) log$1.info(gitResult.stderr.toString());
5332
5342
  }
5333
5343
  }
5334
5344
  updateCreateProgress("Writing agent instructions");
@@ -5357,13 +5367,14 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5357
5367
  resumeCreateProgress();
5358
5368
  workspaceInfo.rootDir = fullPath;
5359
5369
  updateCreateProgress("Integrating monorepo");
5360
- rewriteMonorepo(workspaceInfo, void 0, compactOutput);
5370
+ const skipStagedMigration = shouldSkipStagedMigrationForHooks(fullPath, shouldSetupHooks, workspaceInfo.packageManager, workspaceInfo.packages);
5371
+ rewriteMonorepo(workspaceInfo, skipStagedMigration, compactOutput);
5361
5372
  if (shouldSetupGit) {
5362
5373
  updateCreateProgress("Initializing git repository");
5363
5374
  if (await initGitRepository(fullPath)) ensureDefaultGitignoreEntries(fullPath);
5364
5375
  }
5365
5376
  if (bundled?.monorepo) injectCreateDefaultTemplate(fullPath, bundled.scope, compactOutput);
5366
- if (shouldSetupHooks) installGitHooks(fullPath, compactOutput, void 0, workspaceInfo.packageManager);
5377
+ if (shouldSetupHooks) installGitHooks(fullPath, compactOutput, void 0, workspaceInfo.packageManager, workspaceInfo.packages);
5367
5378
  updateCreateProgress("Installing dependencies");
5368
5379
  const installSummary = await runViteInstall(fullPath, options.interactive, installArgs, {
5369
5380
  silent: compactOutput,
@@ -5442,7 +5453,7 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5442
5453
  template: generatorTemplatePath
5443
5454
  }, compactOutput);
5444
5455
  } catch (error) {
5445
- log.warn(`Could not register the generator in create.templates (${error.message}).\nAdd it by hand: { name: '${generatorName || path.basename(projectDir)}', template: '${generatorTemplatePath}' }`);
5456
+ log$1.warn(`Could not register the generator in create.templates (${error.message}).\nAdd it by hand: { name: '${generatorName || path.basename(projectDir)}', template: '${generatorTemplatePath}' }`);
5446
5457
  }
5447
5458
  resumeCreateProgress();
5448
5459
  }
@@ -5497,7 +5508,7 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5497
5508
  resumeCreateProgress();
5498
5509
  };
5499
5510
  if (isMonorepo) {
5500
- if (!compactOutput) log.step("Monorepo integration...");
5511
+ if (!compactOutput) log$1.step("Monorepo integration...");
5501
5512
  if (workspaceInfo.packages.length > 0) {
5502
5513
  if (options.interactive) {
5503
5514
  pauseCreateProgress();
@@ -5532,7 +5543,8 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5532
5543
  updateWorkspaceConfig(projectDir, workspaceInfo);
5533
5544
  if (shouldMigrateLintFmtTools) await installAndMigrate(workspaceInfo.rootDir);
5534
5545
  updateCreateProgress("Integrating into monorepo");
5535
- rewriteMonorepoProject(fullPath, workspaceInfo.packageManager, void 0, compactOutput);
5546
+ const skipStagedMigration = shouldSkipStagedMigrationForHooks(fullPath, shouldSetupHooks, workspaceInfo.packageManager);
5547
+ rewriteMonorepoProject(fullPath, workspaceInfo.packageManager, skipStagedMigration, compactOutput);
5536
5548
  for (const framework of detectFramework(fullPath)) if (!hasFrameworkShim(fullPath, framework)) addFrameworkShim(fullPath, framework);
5537
5549
  updateCreateProgress("Installing dependencies");
5538
5550
  installSummary = await runViteInstall(workspaceInfo.rootDir, options.interactive, installArgs, {
@@ -5546,14 +5558,15 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5546
5558
  const fmtPaths = registeredConfigPath ? [projectDir, path.relative(workspaceInfo.rootDir, registeredConfigPath)] : [projectDir];
5547
5559
  await runViteFmt(workspaceInfo.rootDir, options.interactive, fmtPaths, { silent: compactOutput });
5548
5560
  } else {
5549
- if (shouldMigrateLintFmtTools) await installAndMigrate(fullPath);
5550
- updateCreateProgress("Applying Vite+ project setup");
5551
- rewriteStandaloneProject(fullPath, workspaceInfo, void 0, compactOutput);
5552
- for (const framework of detectFramework(fullPath)) if (!hasFrameworkShim(fullPath, framework)) addFrameworkShim(fullPath, framework);
5553
5561
  if (shouldSetupGit) {
5554
5562
  updateCreateProgress("Initializing git repository");
5555
5563
  if (await initGitRepository(fullPath)) ensureDefaultGitignoreEntries(fullPath);
5556
5564
  }
5565
+ if (shouldMigrateLintFmtTools) await installAndMigrate(fullPath);
5566
+ updateCreateProgress("Applying Vite+ project setup");
5567
+ const skipStagedMigration = shouldSkipStagedMigrationForHooks(fullPath, shouldSetupHooks, workspaceInfo.packageManager);
5568
+ rewriteStandaloneProject(fullPath, workspaceInfo, skipStagedMigration, compactOutput);
5569
+ for (const framework of detectFramework(fullPath)) if (!hasFrameworkShim(fullPath, framework)) addFrameworkShim(fullPath, framework);
5557
5570
  if (shouldSetupHooks) installGitHooks(fullPath, compactOutput, void 0, workspaceInfo.packageManager);
5558
5571
  updateCreateProgress("Installing dependencies");
5559
5572
  installSummary = await runViteInstall(fullPath, options.interactive, installArgs, {
@@ -5578,10 +5591,10 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
5578
5591
  }
5579
5592
  async function showAvailableTemplates() {
5580
5593
  printHeader();
5581
- log$1(listTemplatesMessage);
5594
+ log(listTemplatesMessage);
5582
5595
  }
5583
5596
  main().catch((err) => {
5584
- log.error(err.message);
5597
+ log$1.error(err.message);
5585
5598
  console.error(err);
5586
5599
  cancelAndExit(`Failed to generate code: ${err.message}`, 1);
5587
5600
  });
@@ -37,7 +37,7 @@ let node_module = require("node:module");
37
37
  let node_url = require("node:url");
38
38
  let vitest_config = require("vitest/config");
39
39
  //#region package.json
40
- var version = "0.2.6", VITE_PLUS_VERSION, VITEST_VERSION, CONFIG_METADATA_ENV;
40
+ var version = "0.2.8", VITE_PLUS_VERSION, VITEST_VERSION, CONFIG_METADATA_ENV;
41
41
  var init_constants = __esmMin((() => {
42
42
  VITE_PLUS_VERSION = process.env.VP_VERSION || version;
43
43
  VITEST_VERSION = "4.1.10";
@@ -1,10 +1,10 @@
1
- import { o as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-CaXMuYUG.js";
1
+ import { o as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-BppDcRc1.js";
2
2
  import { createRequire } from "node:module";
3
3
  import path from "node:path";
4
4
  import { readFileSync } from "node:fs";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { defineConfig, defineProject } from "vitest/config";
7
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/esm-shims.js
7
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/esm-shims.js
8
8
  const getFilename = () => fileURLToPath(import.meta.url);
9
9
  const getDirname = () => path.dirname(getFilename());
10
10
  const __dirname = /* @__PURE__ */ getDirname();
@@ -195,6 +195,22 @@ declare module '@voidzero-dev/vite-plus-core' {
195
195
  lint?: boolean;
196
196
  };
197
197
  pack?: PackUserConfig | PackUserConfig[];
198
+ /**
199
+ * Default target directory for `vp dev` / `build` / `preview` / `pack`
200
+ * when invoked bare in the directory containing this config (an implicit
201
+ * `vp -C <dir>`). A string targets all four commands; an object maps
202
+ * commands individually, and a command absent from the object falls
203
+ * through to the normal picker/listing resolution. Paths are relative to
204
+ * the config file's directory. vp reads them without executing the
205
+ * config, so this also works at roots with no vite-plus dependency; the
206
+ * static read is why the values must stay plain string literals.
207
+ */
208
+ defaultPackage?: string | {
209
+ dev?: string;
210
+ build?: string;
211
+ preview?: string;
212
+ pack?: string;
213
+ };
198
214
  run?: RunConfig;
199
215
  staged?: StagedConfig;
200
216
  /**
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_define_config = require("./define-config-iGV0CGUk.cjs");
2
+ const require_define_config = require("./define-config-CEm_MtvJ.cjs");
3
3
  require_define_config.init_define_config();
4
4
  exports.AUTO_INLINE_DEPS = require_define_config.AUTO_INLINE_DEPS;
5
5
  exports.assertCoverageProviderVersionMatch = require_define_config.assertCoverageProviderVersionMatch;
@@ -1,2 +1,2 @@
1
- import { a as defineConfig, c as lazyPlugins, i as computeAutoInlineList, l as resolveCoverageProviderToCheck, n as assertCoverageProviderVersionMatch, o as defineProject, r as checkCoverageProviderVersion, s as isVitestFamilySpecifier, t as AUTO_INLINE_DEPS, u as withConfigMetadataResolution } from "./define-config-eLQH9us2.js";
1
+ import { a as defineConfig, c as lazyPlugins, i as computeAutoInlineList, l as resolveCoverageProviderToCheck, n as assertCoverageProviderVersionMatch, o as defineProject, r as checkCoverageProviderVersion, s as isVitestFamilySpecifier, t as AUTO_INLINE_DEPS, u as withConfigMetadataResolution } from "./define-config-DWoAkNdp.js";
2
2
  export { AUTO_INLINE_DEPS, assertCoverageProviderVersionMatch, checkCoverageProviderVersion, computeAutoInlineList, defineConfig, defineProject, isVitestFamilySpecifier, lazyPlugins, resolveCoverageProviderToCheck, withConfigMetadataResolution };
@@ -1,2 +1,2 @@
1
- import { a as defineConfig, c as lazyPlugins, i as computeAutoInlineList, l as resolveCoverageProviderToCheck, n as assertCoverageProviderVersionMatch, o as defineProject, r as checkCoverageProviderVersion, s as isVitestFamilySpecifier, t as AUTO_INLINE_DEPS, u as withConfigMetadataResolution } from "./define-config-hV8qyU8p.js";
1
+ import { a as defineConfig, c as lazyPlugins, i as computeAutoInlineList, l as resolveCoverageProviderToCheck, n as assertCoverageProviderVersionMatch, o as defineProject, r as checkCoverageProviderVersion, s as isVitestFamilySpecifier, t as AUTO_INLINE_DEPS, u as withConfigMetadataResolution } from "./define-config-DPnHe1Mx.js";
2
2
  export { AUTO_INLINE_DEPS, assertCoverageProviderVersionMatch, checkCoverageProviderVersion, computeAutoInlineList, defineConfig, defineProject, isVitestFamilySpecifier, lazyPlugins, resolveCoverageProviderToCheck, withConfigMetadataResolution };
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJSMin } from "./rolldown-runtime-C7HZzL1F.js";
1
+ import { n as __require, t as __commonJSMin } from "./rolldown-runtime-CMFfr-1z.js";
2
2
  //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
3
3
  var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
4
4
  const ALIAS = Symbol.for("yaml.alias");
@@ -286,7 +286,6 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
286
286
  version: "1.2"
287
287
  };
288
288
  this.tags = Object.assign({}, Directives.defaultTags);
289
- break;
290
289
  }
291
290
  return res;
292
291
  }
@@ -2464,9 +2463,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
2464
2463
  case 8:
2465
2464
  str = `0o${str}`;
2466
2465
  break;
2467
- case 16:
2468
- str = `0x${str}`;
2469
- break;
2466
+ case 16: str = `0x${str}`;
2470
2467
  }
2471
2468
  const n = BigInt(str);
2472
2469
  return sign === "-" ? BigInt(-1) * n : n;
@@ -3995,9 +3992,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
3995
3992
  badChar = `block scalar indicator ${source[0]}`;
3996
3993
  break;
3997
3994
  case "@":
3998
- case "`":
3999
- badChar = `reserved character ${source[0]}`;
4000
- break;
3995
+ case "`": badChar = `reserved character ${source[0]}`;
4001
3996
  }
4002
3997
  if (badChar) onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
4003
3998
  return foldLines(source);
@@ -0,0 +1,3 @@
1
+ import { t as require_dist } from "./dist-CSQWHI6y.js";
2
+ export default require_dist();
3
+ export {};