vite-plus 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/LICENSE +29 -29
  2. package/README.md +2 -2
  3. package/binding/index.cjs +60 -55
  4. package/binding/index.d.cts +125 -14
  5. package/dist/{agent-Wqx0MPk0.js → agent-C5jMYVfB.js} +3 -2
  6. package/dist/bin.js +89 -58
  7. package/dist/cli-parse-DHE8NrBU.js +13 -0
  8. package/dist/client/bundledDevClient.mjs +1 -1
  9. package/dist/client/client.mjs +1 -1
  10. package/dist/client/env.mjs +1 -1
  11. package/dist/client.d.ts +1 -1
  12. package/dist/config/bin.js +83 -55
  13. package/dist/{constants-Bn-U8o4v.js → constants-0IAVgpox.js} +3 -3
  14. package/dist/create/bin.d.ts +13 -5
  15. package/dist/create/bin.js +37 -190
  16. package/dist/{define-config-WiVlryJ2.cjs → define-config-DIE9de46.cjs} +1 -1
  17. package/dist/{define-config-DWoAkNdp.d.ts → define-config-DPNEJxPz.d.ts} +5 -9
  18. package/dist/{define-config-GXUdVT-0.js → define-config-U3_xg7i-.js} +2 -2
  19. package/dist/define-config.cjs +1 -1
  20. package/dist/define-config.d.ts +1 -1
  21. package/dist/define-config.js +1 -1
  22. package/dist/dist-DfmT__Aw.js +619 -0
  23. package/dist/{editor-CC4DqODz.js → editor-B5-lvRaU.js} +68 -40
  24. package/dist/hooks/bin.js +9 -114
  25. package/dist/{hooks-DFqViZqZ.js → hooks-C-4gykWR.js} +1 -1
  26. package/dist/index.cjs +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +2 -2
  29. package/dist/internal.d.ts +1 -1
  30. package/dist/internal.js +1 -1
  31. package/dist/migration/bin.js +24 -143
  32. package/dist/migration/compat/worker.js +1 -1
  33. package/dist/module-runner.d.ts +1 -1
  34. package/dist/module-runner.js +1 -1
  35. package/dist/{oxlint-plugin-config-DX5ezKbB.js → oxlint-plugin-config-Drdl67Xp.js} +1 -1
  36. package/dist/oxlint-plugin.d.ts +2 -2
  37. package/dist/oxlint-plugin.js +1 -1
  38. package/dist/{pack-PvUg_xpv.d.ts → pack-BK38MLVZ.d.ts} +1 -1
  39. package/dist/pack-bin.d.ts +2 -3
  40. package/dist/pack-bin.js +5 -622
  41. package/dist/pack-client.d.ts +1 -1
  42. package/dist/pack.d.ts +2 -2
  43. package/dist/pack.js +1 -1
  44. package/dist/{package-CBe9EWPY.js → package-BZz2Ij68.js} +1 -1
  45. package/dist/{prompts-DF3yU-eU.js → prompts-CtzEgFY-.js} +3 -1400
  46. package/dist/{report-ZNR1Mk6h.js → report-CK5TnTsr.js} +1 -0
  47. package/dist/{resolve-vite-config-ipGb39Jo.js → resolve-vite-config-CGks1xR7.js} +3 -3
  48. package/dist/resolve-vite-config-Dnmc-lBc.js +2 -0
  49. package/dist/semver-CaDAb8vV.js +1400 -0
  50. package/dist/staged/bin.js +83 -218
  51. package/dist/sync-versions/bin.d.ts +1 -0
  52. package/dist/sync-versions/bin.js +3884 -0
  53. package/dist/sync-versions/bin.mjs +13323 -0
  54. package/dist/toolchain.js +9 -9
  55. package/dist/toolchain.json +9 -9
  56. package/dist/{tsconfig-LD2QhQ0O.js → tsconfig-CUggNuJR.js} +2 -2
  57. package/dist/{tsconfig-BVHG3DpR.js → tsconfig-VAbm4ZzJ.js} +1 -1
  58. package/dist/tsgolint-path.d.ts +3 -4
  59. package/dist/types/customEvent.d.ts +1 -1
  60. package/dist/types/hmrPayload.d.ts +1 -1
  61. package/dist/types/hot.d.ts +1 -1
  62. package/dist/types/import-meta.d.ts +1 -1
  63. package/dist/types/importGlob.d.ts +1 -1
  64. package/dist/types/importMeta.d.ts +1 -1
  65. package/dist/types/metadata.d.ts +1 -1
  66. package/dist/version.d.ts +2 -3
  67. package/dist/version.js +2 -2
  68. package/dist/versions.js +4 -4
  69. package/dist/vitest-ecosystem-BiRqcaRI.js +23 -0
  70. package/docs/guide/check.md +1 -0
  71. package/docs/guide/ci.md +42 -2
  72. package/docs/guide/env.md +124 -52
  73. package/docs/guide/ide-integration.md +14 -2
  74. package/docs/guide/index.md +1 -1
  75. package/docs/guide/install.md +3 -1
  76. package/docs/guide/installer-env-vars.md +10 -0
  77. package/docs/guide/migrate-rules.md +57 -2
  78. package/package.json +17 -19
  79. package/dist/lib-L3DWSRQp.js +0 -75
  80. package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
@@ -1,15 +1,17 @@
1
1
  import { r as __toESM } from "./rolldown-runtime-CMFfr-1z.js";
2
- import { a as TSDOWN_MIGRATE_VERSION, c as VITEST_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, l as VITE_CONFIG_FILES, m as isForceOverrideMode, n as BASEURL_TSCONFIG_WARNING, o as TSDOWN_MIGRATION_SKILL_URL, s as VITEST_AGE_GATE_EXEMPT_PACKAGES, u as VITE_PLUS_NAME } from "./constants-Bn-U8o4v.js";
3
- import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-DX5ezKbB.js";
4
- import { A as isCancel, C as log, E as select, _ as getSpinner, b as require_semver, d as readYamlFile, f as scalarString, g as getSilentSpinner, t as cancelAndExit, u as editYamlFile, w as multiselect, x as confirm, y as PackageManager } from "./prompts-DF3yU-eU.js";
2
+ import { a as SETUP_VP_VERSION, c as VITEST_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, l as VITE_CONFIG_FILES, m as isForceOverrideMode, n as BASEURL_TSCONFIG_WARNING, o as TSDOWN_MIGRATION_SKILL_URL, s as VITEST_AGE_GATE_EXEMPT_PACKAGES, u as VITE_PLUS_NAME } from "./constants-0IAVgpox.js";
3
+ import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-Drdl67Xp.js";
5
4
  import { a as writeJsonFile, c as parse, i as readJsonFile, n as editJsonFile, o as applyEdits, r as isJsonFile, s as modify, t as detectFormattingOptions } from "./json-cULBl7Pi.js";
6
- import { n as detectPackageMetadata, r as getScopeFromPackageName } from "./package-CBe9EWPY.js";
7
- import { l as displayRelative, u as rulesDir } from "./agent-Wqx0MPk0.js";
8
- import { n as addMigrationWarning, t as addManualStep } from "./report-ZNR1Mk6h.js";
5
+ import { n as detectPackageMetadata, r as getScopeFromPackageName } from "./package-BZz2Ij68.js";
6
+ import { C as multiselect, S as log, T as select, _ as getSpinner, b as confirm, d as readYamlFile, f as scalarString, g as getSilentSpinner, k as isCancel, t as cancelAndExit, u as editYamlFile, y as PackageManager } from "./prompts-CtzEgFY-.js";
7
+ import { t as require_semver } from "./semver-CaDAb8vV.js";
8
+ import { l as displayRelative, u as rulesDir } from "./agent-C5jMYVfB.js";
9
+ import { n as addMigrationWarning, t as addManualStep } from "./report-CK5TnTsr.js";
9
10
  import { n as runCommandSilently, r as require_cross_spawn } from "./command-CguLh2KL.js";
10
11
  import { t as require_dist } from "./dist-BDYZP12R.js";
11
- import { a as hasBaseUrlInTsconfig, c as hasVitestTypesInTsconfig, l as removeDeprecatedTsconfigFalseOption, n as findTsconfigFiles, s as hasTypesToRewriteInTsconfig, u as rewriteTypesInTsconfig } from "./tsconfig-LD2QhQ0O.js";
12
- import { a as findUnsafeHookInstallPath, n as SUPPORTED_GIT_HOOK_NAMES } from "./hooks-DFqViZqZ.js";
12
+ import { a as hasBaseUrlInTsconfig, c as hasVitestTypesInTsconfig, l as removeDeprecatedTsconfigFalseOption, n as findTsconfigFiles, s as hasTypesToRewriteInTsconfig, u as rewriteTypesInTsconfig } from "./tsconfig-CUggNuJR.js";
13
+ import { n as extractOverrideTargetName, t as isAlignableVitestEcosystemPackage } from "./vitest-ecosystem-BiRqcaRI.js";
14
+ import { i as findUnsafeHookInstallPath, t as SUPPORTED_GIT_HOOK_NAMES } from "./hooks-C-4gykWR.js";
13
15
  import path, { posix, win32 } from "node:path";
14
16
  import { fileURLToPath } from "node:url";
15
17
  import { detectWorkspace, getVpDirs, hasConfigKey, mergeJsonConfig, mergeTsdownConfig, rewriteEslint, rewriteImportsInDirectory, rewritePrettier, rewriteScripts, wrapLazyPlugins } from "../binding/index.js";
@@ -19,6 +21,7 @@ import fs from "node:fs";
19
21
  import os from "node:os";
20
22
  import "oxlint";
21
23
  import { lstatSync as lstatSync$1, readdir, readdirSync as readdirSync$1, readlinkSync, realpathSync as realpathSync$1 } from "fs";
24
+ import corePkg from "vite/package.json" with { type: "json" };
22
25
  import fsPromises, { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
23
26
  import { EventEmitter } from "node:events";
24
27
  import Stream from "node:stream";
@@ -1150,7 +1153,7 @@ async function runTsdownMigrateStep(vpBin, cwd, packageManager) {
1150
1153
  command: vpBin,
1151
1154
  args: [
1152
1155
  "dlx",
1153
- `tsdown-migrate@${TSDOWN_MIGRATE_VERSION}`,
1156
+ `tsdown-migrate@${corePkg.bundledVersions.tsdown}`,
1154
1157
  "--yes",
1155
1158
  "--package-manager",
1156
1159
  packageManager,
@@ -1416,7 +1419,6 @@ function addFrameworkShim(projectPath, framework, report) {
1416
1419
  //#endregion
1417
1420
  //#region src/migration/migrator/vitest-ecosystem.ts
1418
1421
  var import_dist = require_dist();
1419
- const VITEST_ALIGN_EXCLUDED = /* @__PURE__ */ new Set(["@vitest/eslint-plugin", "@vitest/coverage-c8"]);
1420
1422
  const VITEST_DIRECT_USAGE_EXCLUDED = /* @__PURE__ */ new Set([
1421
1423
  "@vitest/eslint-plugin",
1422
1424
  "@vitest/expect",
@@ -1428,24 +1430,6 @@ const VITEST_DIRECT_USAGE_EXCLUDED = /* @__PURE__ */ new Set([
1428
1430
  "@vitest/utils",
1429
1431
  "@vitest/ws-client"
1430
1432
  ]);
1431
- function isAlignableVitestEcosystemPackage(name) {
1432
- return name.startsWith("@vitest/") && !VITEST_ALIGN_EXCLUDED.has(name);
1433
- }
1434
- function extractOverrideTargetName(key) {
1435
- let target = key.trim();
1436
- for (let delim = target.search(/[^ |@]>/); delim !== -1; delim = target.search(/[^ |@]>/)) target = target.slice(delim + 2).trim();
1437
- if (!target) return target;
1438
- if (target.includes("/")) {
1439
- const segments = target.split("/");
1440
- const last = segments[segments.length - 1];
1441
- const scope = segments[segments.length - 2];
1442
- target = scope?.startsWith("@") ? `${scope}/${last}` : last;
1443
- }
1444
- const nameStart = target.startsWith("@") ? target.indexOf("/") + 1 : 0;
1445
- const versionAt = target.indexOf("@", nameStart);
1446
- if (versionAt > 0) target = target.slice(0, versionAt);
1447
- return target;
1448
- }
1449
1433
  function isRemovePackageOverrideKey(key) {
1450
1434
  return PROVIDER_OVERRIDE_DROP_NAMES.includes(extractOverrideTargetName(key));
1451
1435
  }
@@ -9088,6 +9072,7 @@ function rewriteAllImports(projectPath, silent = false, report, preserveNuxtVite
9088
9072
  const modified = result.modifiedFiles.length;
9089
9073
  const preserved = result.preservedVitestFiles.length;
9090
9074
  const errors = result.errors.length;
9075
+ for (const warning of result.warnings) warnMigration(`${displayRelative(warning.path)}: ${warning.message}`, report);
9091
9076
  if (report) {
9092
9077
  report.rewrittenImportFileCount += modified;
9093
9078
  report.preservedUpstreamVitestImportFileCount += preserved;
@@ -9402,20 +9387,64 @@ function parseNvmrcVersion(alias) {
9402
9387
  * are touched, so shell `cat .nvmrc` and comments are left alone.
9403
9388
  */
9404
9389
  const NODE_VERSION_FILE_NVMRC_RE = /(node-version-file:[ \t]*)(['"]?)(\.\/)?\.nvmrc\2(?=\s|$)/gm;
9390
+ function isCompositeActionFile(filePath) {
9391
+ try {
9392
+ const action = (0, import_dist.parse)(fs.readFileSync(filePath, "utf8"));
9393
+ return isPlainRecord(action) && isPlainRecord(action.runs) && action.runs.using === "composite";
9394
+ } catch {
9395
+ return false;
9396
+ }
9397
+ }
9405
9398
  /**
9406
- * Collect GitHub Actions YAML files that may carry a `node-version-file:`
9407
- * reference: top-level workflows (`.github/workflows/*.{yml,yaml}`, which GitHub
9408
- * runs only when flat in that directory) and composite action definitions
9409
- * (`.github/actions/**\/action.{yml,yaml}`, which may nest at any depth). Returns
9410
- * absolute paths; a missing `.github` tree just yields an empty list. `nocase`
9411
- * keeps the match case-insensitive on case-sensitive filesystems.
9399
+ * Collect top-level workflows and composite action definitions under `.github`.
9400
+ * Action metadata must declare `runs.using: composite`. Paths are absolute, and
9401
+ * filename matching is case-insensitive.
9412
9402
  */
9413
9403
  function collectGithubActionFiles(projectPath) {
9414
- return globSync(["workflows/*.{yml,yaml}", "actions/**/action.{yml,yaml}"], {
9404
+ const globOptions = {
9415
9405
  cwd: path.join(projectPath, ".github"),
9416
9406
  absolute: true,
9417
- nocase: true
9418
- });
9407
+ nocase: true,
9408
+ nodir: true
9409
+ };
9410
+ const workflows = globSync("workflows/*.{yml,yaml}", globOptions);
9411
+ const compositeActions = globSync("**/action.{yml,yaml}", {
9412
+ ...globOptions,
9413
+ dot: true
9414
+ }).filter(isCompositeActionFile);
9415
+ return [.../* @__PURE__ */ new Set([...workflows, ...compositeActions])];
9416
+ }
9417
+ /**
9418
+ * Match an exact `voidzero-dev/setup-vp@v1` action reference while preserving
9419
+ * indentation, list syntax, quote style, and trailing comments. The end guard
9420
+ * prevents prefix matches such as `@v1.2.3` or `@v10`.
9421
+ */
9422
+ const SETUP_VP_V1_RE = /^([ \t]*(?:-[ \t]*)?uses[ \t]*:[ \t]*)(['"]?)voidzero-dev\/setup-vp@v1\2(?=[ \t]*(?:#.*)?\r?$)/gm;
9423
+ /**
9424
+ * Replace the frozen `voidzero-dev/setup-vp@v1` tag with the latest exact
9425
+ * release known to this Vite+ version. GitHub workflow files and composite
9426
+ * action definitions are both covered. Existing exact versions, commit SHAs,
9427
+ * and commented-out steps are left unchanged.
9428
+ *
9429
+ * Returns the project-relative paths of the updated files.
9430
+ */
9431
+ function migrateSetupVpVersion(projectPath, report) {
9432
+ const updatedFiles = [];
9433
+ for (const filePath of collectGithubActionFiles(projectPath)) {
9434
+ const relativePath = path.relative(projectPath, filePath);
9435
+ try {
9436
+ const original = fs.readFileSync(filePath, "utf8");
9437
+ const rewritten = original.replace(SETUP_VP_V1_RE, `$1$2voidzero-dev/setup-vp@${SETUP_VP_VERSION}$2`);
9438
+ if (rewritten !== original) {
9439
+ fs.writeFileSync(filePath, rewritten);
9440
+ updatedFiles.push(relativePath);
9441
+ }
9442
+ } catch (error) {
9443
+ warnMigration(`Could not update the setup-vp version in ${relativePath}: ${error instanceof Error ? error.message : String(error)}`, report);
9444
+ }
9445
+ }
9446
+ if (report) report.setupVpVersionUpdatedFileCount += updatedFiles.length;
9447
+ return updatedFiles;
9419
9448
  }
9420
9449
  /**
9421
9450
  * After `.nvmrc` is converted to `.node-version`, rewrite any GitHub Actions
@@ -9783,8 +9812,7 @@ const ZED_SETTINGS = {
9783
9812
  ].map((language) => [language, {
9784
9813
  format_on_save: "on",
9785
9814
  prettier: { allowed: false },
9786
- formatter: [{ language_server: { name: "oxfmt" } }],
9787
- ...language === "JavaScript" ? { code_action: "source.fixAll.oxc" } : {}
9815
+ formatter: [{ language_server: { name: "oxfmt" } }, ...language === "JavaScript" ? [{ code_action: "source.fixAll.oxc" }] : []]
9788
9816
  }]))
9789
9817
  };
9790
9818
  const JETBRAINS_EXTERNAL_DEPENDENCIES = `<?xml version="1.0" encoding="UTF-8"?>
@@ -10091,4 +10119,4 @@ function resolveEditorIds(editors) {
10091
10119
  return uniqueEditorIds.length === 0 ? void 0 : uniqueEditorIds;
10092
10120
  }
10093
10121
  //#endregion
10094
- export { warnLegacyEslintConfig as $, detectWorkspace$1 as A, promptTsupMigration as B, mergeTsdownConfigFile as C, ensureVitePlusBootstrap as D, detectVitePlusBootstrapPending as E, detectFramework as F, promptPrettierMigration as G, confirmPrettierMigration as H, hasFrameworkShim as I, detectEslintProject as J, warnPackageLevelPrettier as K, confirmTsupMigration as L, updatePackageJsonWithDeps as M, updateWorkspaceConfig as N, configureYarnNodeModulesMode as O, addFrameworkShim as P, warnIncompatibleEslintIntegration as Q, detectTsupProject as R, injectLintTypeCheckDefaults as S, collectToolchainVersionChanges as T, detectPrettierProject as U, warnMissingTsupConfig as V, migratePrettierToOxfmt as W, migrateEslintToOxlint as X, detectIncompatibleEslintIntegration as Y, promptEslintMigration as Z, preflightGitHooksSetup as _, selectEditors as a, initGitRepository as b, rewriteMonorepoProject as c, finalizeCoreMigrationForExistingVitePlus as d, warnPackageLevelEslint as et, detectNodeVersionManagerFile as f, installGitHooks as g, detectLegacyGitHooksMigrationCandidate as h, selectEditor as i, isBingoTemplate as j, detectYarnPnpMode as k, rewriteStandaloneProject as l, setPackageManager as m, detectExistingEditors as n, checkVitestVersion as nt, writeEditorConfigs as o, migrateNodeVersionManagerFile as p, confirmEslintMigration as q, isJsonLikeFile as r, rewriteMonorepo as s, detectEditorConflicts as t, checkViteVersion as tt, detectPendingCoreMigration as u, shouldSkipStagedMigrationForHooks as v, mergeViteConfigFiles as w, injectCreateDefaultTemplate as x, findGitRoot as y, migrateTsupToTsdown as z };
10122
+ export { warnIncompatibleEslintIntegration as $, detectYarnPnpMode as A, migrateTsupToTsdown as B, injectLintTypeCheckDefaults as C, detectVitePlusBootstrapPending as D, collectToolchainVersionChanges as E, addFrameworkShim as F, migratePrettierToOxfmt as G, warnMissingTsupConfig as H, detectFramework as I, confirmEslintMigration as J, promptPrettierMigration as K, hasFrameworkShim as L, isBingoTemplate as M, updatePackageJsonWithDeps as N, ensureVitePlusBootstrap as O, updateWorkspaceConfig as P, promptEslintMigration as Q, confirmTsupMigration as R, injectCreateDefaultTemplate as S, mergeViteConfigFiles as T, confirmPrettierMigration as U, promptTsupMigration as V, detectPrettierProject as W, detectIncompatibleEslintIntegration as X, detectEslintProject as Y, migrateEslintToOxlint as Z, installGitHooks as _, selectEditors as a, findGitRoot as b, rewriteMonorepoProject as c, finalizeCoreMigrationForExistingVitePlus as d, warnLegacyEslintConfig as et, detectNodeVersionManagerFile as f, detectLegacyGitHooksMigrationCandidate as g, setPackageManager as h, selectEditor as i, detectWorkspace$1 as j, configureYarnNodeModulesMode as k, rewriteStandaloneProject as l, migrateSetupVpVersion as m, detectExistingEditors as n, checkViteVersion as nt, writeEditorConfigs as o, migrateNodeVersionManagerFile as p, warnPackageLevelPrettier as q, isJsonLikeFile as r, checkVitestVersion as rt, rewriteMonorepo as s, detectEditorConflicts as t, warnPackageLevelEslint as tt, detectPendingCoreMigration as u, preflightGitHooksSetup as v, mergeTsdownConfigFile as w, initGitRepository as x, shouldSkipStagedMigrationForHooks as y, detectTsupProject as z };
package/dist/hooks/bin.js CHANGED
@@ -1,128 +1,23 @@
1
- import { t as renderCliDoc } from "../help-BmKpeOP9.js";
2
- import { i as log, o as printHeader } from "../terminal-MKGAuy-p.js";
3
- import { t as lib_default } from "../lib-L3DWSRQp.js";
4
- import { i as enable, r as disable, t as DEFAULT_HOOKS_DIR, u as status } from "../hooks-DFqViZqZ.js";
5
- //#region src/hooks/args.ts
6
- const KNOWN_HOOKS_ARG_KEYS = /* @__PURE__ */ new Set([
7
- "_",
8
- "help",
9
- "h",
10
- "hooks-dir"
11
- ]);
12
- /**
13
- * Reject leftover positionals and unknown flags before enable/disable mutate state.
14
- */
15
- function unexpectedHooksArgsError(args) {
16
- const extra = args._.map(String).filter((value) => value !== "");
17
- if (extra.length > 0) return `Unexpected argument "${extra[0]}". Use --hooks-dir <path> to set a custom hooks directory.`;
18
- for (const key of Object.keys(args)) if (!KNOWN_HOOKS_ARG_KEYS.has(key)) return `Unknown option "--${key}".`;
19
- return null;
20
- }
21
- //#endregion
1
+ import { i as log } from "../terminal-MKGAuy-p.js";
2
+ import { l as status, n as disable, r as enable } from "../hooks-C-4gykWR.js";
3
+ import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
4
+ import { parseHooksArgs } from "../../binding/index.js";
22
5
  //#region src/hooks/bin.ts
23
- const SUBCOMMANDS = [
24
- "enable",
25
- "disable",
26
- "status"
27
- ];
28
- function isSubcommand(value) {
29
- return !!value && SUBCOMMANDS.includes(value);
30
- }
31
- function printHelp() {
32
- const helpMessage = renderCliDoc({
33
- usage: "vp hooks <COMMAND> [OPTIONS]",
34
- summary: "Manage the Vite+ Git hook dispatcher for this repository.",
35
- documentationUrl: "https://viteplus.dev/guide/commit-hooks",
36
- sections: [
37
- {
38
- title: "Commands",
39
- rows: [
40
- {
41
- label: "enable",
42
- description: "Install or refresh the hook dispatcher (sets core.hooksPath)"
43
- },
44
- {
45
- label: "disable",
46
- description: "Disable hooks: unset core.hooksPath, remove <dir>/_, persist preference"
47
- },
48
- {
49
- label: "status",
50
- description: "Show preference, core.hooksPath, and dispatcher state"
51
- }
52
- ]
53
- },
54
- {
55
- title: "Options",
56
- rows: [{
57
- label: "--hooks-dir <path>",
58
- description: `Custom hooks directory (default: ${DEFAULT_HOOKS_DIR}, or last used)`
59
- }, {
60
- label: "-h, --help",
61
- description: "Show this help message"
62
- }]
63
- },
64
- {
65
- title: "Environment",
66
- rows: [{
67
- label: "VP_GIT_HOOKS=0",
68
- description: "Skip dispatcher install in enable (and skip hooks at commit time)"
69
- }]
70
- },
71
- {
72
- title: "Examples",
73
- lines: [
74
- " vp hooks enable",
75
- " vp hooks enable --hooks-dir .custom-hooks",
76
- " vp hooks disable",
77
- " vp hooks status"
78
- ]
79
- }
80
- ]
81
- });
82
- printHeader();
83
- log(helpMessage);
84
- }
85
6
  function applyResult(result) {
86
7
  if (result.message) log(result.message);
87
8
  if (result.isError) process.exit(1);
88
9
  }
89
10
  async function main() {
90
- const raw = process.argv.slice(3);
91
- const first = raw[0];
92
- const wantsHelp = raw.includes("-h") || raw.includes("--help");
93
- if (!first || first === "-h" || first === "--help") {
94
- printHelp();
95
- return;
96
- }
97
- if (!isSubcommand(first)) {
98
- log(`Unknown hooks command "${first}". Expected one of: ${SUBCOMMANDS.join(", ")}`);
99
- process.exit(1);
100
- }
101
- const subcommand = first;
102
- const args = lib_default(raw.slice(1), {
103
- boolean: ["help"],
104
- string: ["hooks-dir"],
105
- alias: { h: "help" }
106
- });
107
- if (args.help || wantsHelp) {
108
- printHelp();
109
- return;
110
- }
111
- const unexpected = unexpectedHooksArgsError(args);
112
- if (unexpected) {
113
- log(unexpected);
114
- process.exit(1);
115
- }
116
- const dirFlag = args["hooks-dir"];
117
- switch (subcommand) {
11
+ const args = unwrapCliParseOutcome(parseHooksArgs(process.argv.slice(3)));
12
+ switch (args.command) {
118
13
  case "enable":
119
- applyResult(enable(dirFlag));
14
+ applyResult(enable(args.hooksDir));
120
15
  return;
121
16
  case "disable":
122
- applyResult(disable(dirFlag));
17
+ applyResult(disable(args.hooksDir));
123
18
  return;
124
19
  case "status":
125
- applyResult(status(dirFlag));
20
+ applyResult(status(args.hooksDir));
126
21
  return;
127
22
  }
128
23
  }
@@ -570,4 +570,4 @@ function status(dir) {
570
570
  };
571
571
  }
572
572
  //#endregion
573
- export { findUnsafeHookInstallPath as a, isHooksUserDisabled as c, enable as i, resolveHooksLocation as l, SUPPORTED_GIT_HOOK_NAMES as n, install as o, disable as r, isGitHooksEnvDisabled as s, DEFAULT_HOOKS_DIR as t, status as u };
573
+ export { install as a, resolveHooksLocation as c, findUnsafeHookInstallPath as i, status as l, disable as n, isGitHooksEnvDisabled as o, enable as r, isHooksUserDisabled as s, SUPPORTED_GIT_HOOK_NAMES as t };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
- const require_define_config = require("./define-config-WiVlryJ2.cjs");
1
+ const require_define_config = require("./define-config-DIE9de46.cjs");
2
2
  //#region src/index.cts
3
- const vite = require("@voidzero-dev/vite-plus-core");
3
+ const vite = require("vite");
4
4
  const { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } = require("vitest/config");
5
5
  const { defineConfig, defineProject, lazyPlugins } = (require_define_config.init_define_config(), require_define_config.__toCommonJS(require_define_config.define_config_exports));
6
6
  module.exports = {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-DWoAkNdp.js";
1
+ import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-DPNEJxPz.js";
2
2
  import { TestProjectConfiguration, TestProjectInlineConfiguration, TestTagDefinition, TestUserConfig, UserProjectConfigExport, UserProjectConfigFn, UserWorkspaceConfig, ViteUserConfig, ViteUserConfigExport, ViteUserConfigFn, ViteUserConfigFnObject, ViteUserConfigFnPromise, WatcherTriggerPattern, configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } from "vitest/config";
3
- export * from "@voidzero-dev/vite-plus-core";
3
+ export * from "vite";
4
4
  export { type TestProjectConfiguration, type TestProjectInlineConfiguration, type TestTagDefinition, type TestUserConfig, type UserProjectConfigExport, type UserProjectConfigFn, type UserWorkspaceConfig, type ViteUserConfig, type ViteUserConfigExport, type ViteUserConfigFn, type ViteUserConfigFnObject, type ViteUserConfigFnPromise, type WatcherTriggerPattern, configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, lazyPlugins };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-GXUdVT-0.js";
1
+ import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-U3_xg7i-.js";
2
2
  import { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } from "vitest/config";
3
- export * from "@voidzero-dev/vite-plus-core";
3
+ export * from "vite";
4
4
  export { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, lazyPlugins };
@@ -1 +1 @@
1
- export * from '@voidzero-dev/vite-plus-core/internal';
1
+ export * from 'vite/internal';
package/dist/internal.js CHANGED
@@ -1 +1 @@
1
- export * from '@voidzero-dev/vite-plus-core/internal';
1
+ export * from 'vite/internal';
@@ -1,19 +1,20 @@
1
1
  import { r as __toESM } from "../rolldown-runtime-CMFfr-1z.js";
2
- import { t as renderCliDoc } from "../help-BmKpeOP9.js";
3
2
  import { a as muted, c as warnMsg, i as log, o as printHeader, r as formatDuration, t as accent } from "../terminal-MKGAuy-p.js";
4
- import { f as VITE_PLUS_VERSION, m as isForceOverrideMode } from "../constants-Bn-U8o4v.js";
5
- import { A as isCancel, C as log$1, D as spinner, E as select, T as outro, b as require_semver, c as selectPackageManager, i as promptGitHooks, l as upgradeYarn, n as defaultInteractive, o as runViteFmt, r as downloadPackageManager, s as runViteInstall, t as cancelAndExit, x as confirm, y as PackageManager } from "../prompts-DF3yU-eU.js";
6
- import { t as lib_default } from "../lib-L3DWSRQp.js";
3
+ import { a as SETUP_VP_VERSION, f as VITE_PLUS_VERSION, m as isForceOverrideMode } from "../constants-0IAVgpox.js";
7
4
  import { a as writeJsonFile, i as readJsonFile } from "../json-cULBl7Pi.js";
8
- import { a as readNearestPackageJson, i as hasVitePlusDependency } from "../package-CBe9EWPY.js";
9
- import { i as selectAgentTargetPaths, l as displayRelative, n as detectAgentConflicts, r as detectExistingAgentTargetPaths, s as writeAgentInstructions } from "../agent-Wqx0MPk0.js";
10
- import { n as addMigrationWarning, r as createMigrationReport } from "../report-ZNR1Mk6h.js";
11
- import { $ as warnLegacyEslintConfig, A as detectWorkspace, C as mergeTsdownConfigFile, D as ensureVitePlusBootstrap, E as detectVitePlusBootstrapPending, F as detectFramework, H as confirmPrettierMigration, I as hasFrameworkShim, J as detectEslintProject, K as warnPackageLevelPrettier, L as confirmTsupMigration, O as configureYarnNodeModulesMode, P as addFrameworkShim, Q as warnIncompatibleEslintIntegration, R as detectTsupProject, S as injectLintTypeCheckDefaults, T as collectToolchainVersionChanges, U as detectPrettierProject, V as warnMissingTsupConfig, W as migratePrettierToOxfmt, X as migrateEslintToOxlint, Y as detectIncompatibleEslintIntegration, _ as preflightGitHooksSetup, d as finalizeCoreMigrationForExistingVitePlus, et as warnPackageLevelEslint, f as detectNodeVersionManagerFile, g as installGitHooks, h as detectLegacyGitHooksMigrationCandidate, i as selectEditor, k as detectYarnPnpMode, l as rewriteStandaloneProject, nt as checkVitestVersion, o as writeEditorConfigs, p as migrateNodeVersionManagerFile, q as confirmEslintMigration, r as isJsonLikeFile, s as rewriteMonorepo, t as detectEditorConflicts, tt as checkViteVersion, u as detectPendingCoreMigration, v as shouldSkipStagedMigrationForHooks, w as mergeViteConfigFiles, z as migrateTsupToTsdown } from "../editor-CC4DqODz.js";
5
+ import { a as readNearestPackageJson, i as hasVitePlusDependency } from "../package-BZz2Ij68.js";
6
+ import { E as spinner, S as log$1, T as select, b as confirm, c as selectPackageManager, i as promptGitHooks, k as isCancel, l as upgradeYarn, n as defaultInteractive, o as runViteFmt, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, w as outro, y as PackageManager } from "../prompts-CtzEgFY-.js";
7
+ import { t as require_semver } from "../semver-CaDAb8vV.js";
8
+ import { i as selectAgentTargetPaths, l as displayRelative, n as detectAgentConflicts, r as detectExistingAgentTargetPaths, s as writeAgentInstructions } from "../agent-C5jMYVfB.js";
9
+ import { n as addMigrationWarning, r as createMigrationReport } from "../report-CK5TnTsr.js";
10
+ import { $ as warnIncompatibleEslintIntegration, A as detectYarnPnpMode, B as migrateTsupToTsdown, C as injectLintTypeCheckDefaults, D as detectVitePlusBootstrapPending, E as collectToolchainVersionChanges, F as addFrameworkShim, G as migratePrettierToOxfmt, H as warnMissingTsupConfig, I as detectFramework, J as confirmEslintMigration, L as hasFrameworkShim, O as ensureVitePlusBootstrap, R as confirmTsupMigration, T as mergeViteConfigFiles, U as confirmPrettierMigration, W as detectPrettierProject, X as detectIncompatibleEslintIntegration, Y as detectEslintProject, Z as migrateEslintToOxlint, _ as installGitHooks, d as finalizeCoreMigrationForExistingVitePlus, et as warnLegacyEslintConfig, f as detectNodeVersionManagerFile, g as detectLegacyGitHooksMigrationCandidate, i as selectEditor, j as detectWorkspace$1, k as configureYarnNodeModulesMode, l as rewriteStandaloneProject, m as migrateSetupVpVersion, nt as checkViteVersion, o as writeEditorConfigs, p as migrateNodeVersionManagerFile, q as warnPackageLevelPrettier, r as isJsonLikeFile, rt as checkVitestVersion, s as rewriteMonorepo, t as detectEditorConflicts, tt as warnPackageLevelEslint, u as detectPendingCoreMigration, v as preflightGitHooksSetup, w as mergeTsdownConfigFile, y as shouldSkipStagedMigrationForHooks, z as detectTsupProject } from "../editor-B5-lvRaU.js";
12
11
  import { n as runCommandSilently } from "../command-CguLh2KL.js";
13
- import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig, t as confirmBaseUrlFix } from "../tsconfig-LD2QhQ0O.js";
12
+ import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig, t as confirmBaseUrlFix } from "../tsconfig-CUggNuJR.js";
13
+ import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
14
14
  import { t as ROLLDOWN_COMPAT_RESULT_PREFIX } from "../protocol-D99W10Qi.js";
15
15
  import path from "node:path";
16
16
  import { fileURLToPath } from "node:url";
17
+ import { parseMigrateArgs } from "../../binding/index.js";
17
18
  import { styleText } from "node:util";
18
19
  import fs, { existsSync } from "node:fs";
19
20
  //#region src/migration/compat/runner.ts
@@ -486,136 +487,12 @@ async function checkWorkspaceRolldownCompatibility(workspaceInfo, report, update
486
487
  await checkRolldownCompatibility(projectPath, report);
487
488
  }
488
489
  }
489
- const helpMessage = renderCliDoc({
490
- usage: "vp migrate [PATH] [OPTIONS]",
491
- summary: "Migrate standalone Vite, Vitest, Oxlint, Oxfmt, and Prettier projects to unified Vite+.",
492
- documentationUrl: "https://viteplus.dev/guide/migrate",
493
- sections: [
494
- {
495
- title: "Arguments",
496
- rows: [{
497
- label: "PATH",
498
- description: "Target directory to migrate (default: current directory)"
499
- }]
500
- },
501
- {
502
- title: "Options",
503
- rows: [
504
- {
505
- label: "--agent NAME",
506
- description: "Write coding agent instructions to AGENTS.md, CLAUDE.md, etc."
507
- },
508
- {
509
- label: "--no-agent",
510
- description: "Skip writing coding agent instructions"
511
- },
512
- {
513
- label: "--editor NAME",
514
- description: "Write editor config files into the project."
515
- },
516
- {
517
- label: "--no-editor",
518
- description: "Skip writing editor config files"
519
- },
520
- {
521
- label: "--hooks",
522
- description: "Set up pre-commit hooks (default in non-interactive mode)"
523
- },
524
- {
525
- label: "--no-hooks",
526
- description: "Skip pre-commit hooks setup"
527
- },
528
- {
529
- label: "--full",
530
- description: "Existing Vite+ projects: also run the full setup (hooks, editor, agent files, ESLint/Prettier migration, framework shims, tsconfig baseUrl, .node-version). Without it, `vp migrate` only upgrades the toolchain version."
531
- },
532
- {
533
- label: "--no-interactive",
534
- description: "Run in non-interactive mode (skip prompts and use defaults)"
535
- },
536
- {
537
- label: "-h, --help",
538
- description: "Show this help message"
539
- }
540
- ]
541
- },
542
- {
543
- title: "Examples",
544
- lines: [
545
- ` ${muted("# Migrate current package")}`,
546
- ` ${accent("vp migrate")}`,
547
- "",
548
- ` ${muted("# Migrate specific directory")}`,
549
- ` ${accent("vp migrate my-app")}`,
550
- "",
551
- ` ${muted("# Non-interactive mode")}`,
552
- ` ${accent("vp migrate --no-interactive")}`
553
- ]
554
- },
555
- {
556
- title: "Migration Prompt",
557
- lines: [
558
- " Give this to a coding agent when you want it to drive the migration:",
559
- "",
560
- " Migrate this project to Vite+.",
561
- " Vite+ replaces the current split tooling around runtime management, package",
562
- " management, dev/build/test commands, linting, formatting, and packaging.",
563
- " Run `vp help` and `vp help migrate` before making changes.",
564
- ` Use ${accent("vp migrate --no-interactive")} in the workspace root.`,
565
- " Make sure the project is using Vite 8+ and Vitest 4.1+ before migrating.",
566
- "",
567
- " After the migration:",
568
- " - Confirm `vite` imports were rewritten to `vite-plus` where needed",
569
- " - Confirm `vitest` imports were rewritten to `vite-plus/test` where needed",
570
- " - On pnpm, keep the `vite` / `vitest` entries that `vp migrate` aliased to",
571
- " the Vite+ packages so the workspace override stays effective; with other",
572
- " package managers you can remove them once those rewrites are confirmed",
573
- " - Move remaining tool-specific config into the appropriate blocks in",
574
- " `vite.config.ts`",
575
- "",
576
- " Command mapping:",
577
- " - `vp run <script>` is the equivalent of `pnpm run <script>`",
578
- " - `vp dev` and `vp test` always run the built-ins; `vp run dev` and",
579
- " `vp run test` run the `dev` and `test` scripts from `package.json`",
580
- " - `vp install`, `vp add`, and `vp remove` delegate through the package",
581
- " manager declared by `packageManager`",
582
- " - `vp dev`, `vp build`, `vp preview`, `vp lint`, `vp fmt`, `vp check`,",
583
- " and `vp pack` replace the corresponding standalone tools",
584
- " - Prefer `vp check` for validation loops",
585
- "",
586
- " Finally, verify the migration by running:",
587
- ` - ${accent("vp install")}`,
588
- ` - ${accent("vp check")}`,
589
- ` - ${accent("vp test")}`,
590
- ` - ${accent("vp build")}`,
591
- "",
592
- " Summarize the migration at the end and report any manual follow-up still",
593
- " required."
594
- ]
595
- }
596
- ]
597
- });
598
490
  function parseArgs() {
599
- const args = process.argv.slice(3);
600
- const parsed = lib_default(args, {
601
- alias: { h: "help" },
602
- boolean: [
603
- "help",
604
- "interactive",
605
- "hooks",
606
- "full"
607
- ],
608
- default: { interactive: defaultInteractive() }
609
- });
610
- const interactive = parsed.interactive;
611
- let projectPath = parsed._[0];
612
- if (projectPath) projectPath = path.resolve(process.cwd(), projectPath);
613
- else projectPath = process.cwd();
491
+ const parsed = unwrapCliParseOutcome(parseMigrateArgs(process.argv.slice(3)));
614
492
  return {
615
- projectPath,
493
+ projectPath: parsed.path ? path.resolve(process.cwd(), parsed.path) : process.cwd(),
616
494
  options: {
617
- interactive,
618
- help: parsed.help,
495
+ interactive: parsed.interactive ?? defaultInteractive(),
619
496
  agent: parsed.agent,
620
497
  editor: parsed.editor,
621
498
  hooks: parsed.hooks,
@@ -763,6 +640,11 @@ function showMigrationSummary(options) {
763
640
  if (report.prettierMigrated) log(`${styleText("gray", "•")} Prettier migrated to Oxfmt`);
764
641
  if (report.tsupMigrated) log(`${styleText("gray", "•")} tsup config migrated to tsdown (\`vp pack\`)`);
765
642
  if (report.nodeVersionFileMigrated) log(`${styleText("gray", "•")} Node version manager file migrated to .node-version`);
643
+ const setupVpFileCount = report.setupVpVersionUpdatedFileCount;
644
+ if (setupVpFileCount > 0) {
645
+ const fileLabel = setupVpFileCount === 1 ? "file" : "files";
646
+ log(`${styleText("gray", "•")} setup-vp updated to ${SETUP_VP_VERSION} in ${setupVpFileCount} GitHub Actions ${fileLabel}`);
647
+ }
766
648
  if (report.wrappedPluginConfigCount > 0) log(`${styleText("gray", "•")} Inline Vite plugins wrapped with lazyPlugins for check/lint/fmt`);
767
649
  if (report.gitHooksConfigured) log(`${styleText("gray", "•")} Git hooks configured`);
768
650
  if (report.frameworkShimAdded) log(`${styleText("gray", "•")} TypeScript shim added for framework component files`);
@@ -780,7 +662,7 @@ function showMigrationSummary(options) {
780
662
  async function downloadSupportedPackageManager(options) {
781
663
  const { rootDir, packageManager, packageManagerVersion, interactive, updateMigrationProgress, failMigrationProgress } = options;
782
664
  updateMigrationProgress("Preparing migration");
783
- const downloadResult = await downloadPackageManager(packageManager, packageManagerVersion, interactive, true);
665
+ const downloadResult = await downloadPackageManager$1(packageManager, packageManagerVersion, interactive, true);
784
666
  if (packageManager === PackageManager.yarn && import_semver.default.satisfies(downloadResult.version, ">=4.0.0 <4.10.0")) {
785
667
  updateMigrationProgress("Upgrading Yarn");
786
668
  await upgradeYarn(rootDir, interactive, true);
@@ -842,6 +724,8 @@ async function executeMigrationPlan(workspaceInfoOptional, plan, interactive, pr
842
724
  updateMigrationProgress("Migrating node version file");
843
725
  migrateNodeVersionManagerFile(workspaceInfo.rootDir, plan.nodeVersionDetection, report);
844
726
  }
727
+ updateMigrationProgress("Updating setup-vp workflows");
728
+ migrateSetupVpVersion(workspaceInfo.rootDir, report);
845
729
  updateMigrationProgress("Installing dependencies");
846
730
  const initialInstallSummary = await runViteInstall(workspaceInfo.rootDir, interactive, void 0, {
847
731
  silent: true,
@@ -936,13 +820,8 @@ async function executeMigrationPlan(workspaceInfoOptional, plan, interactive, pr
936
820
  }
937
821
  async function main() {
938
822
  const { projectPath, options } = parseArgs();
939
- if (options.help) {
940
- printHeader();
941
- log(helpMessage);
942
- return;
943
- }
944
823
  printHeader();
945
- const workspaceInfoOptional = await detectWorkspace(projectPath);
824
+ const workspaceInfoOptional = await detectWorkspace$1(projectPath);
946
825
  if (workspaceInfoOptional.isMonorepo && path.resolve(projectPath) !== path.resolve(workspaceInfoOptional.rootDir)) cancelAndExit(`Vite+ cannot migrate a workspace member. Run \`vp migrate\` from the workspace root at ${workspaceInfoOptional.rootDir}.`, 1);
947
826
  const initialChangedPaths = await collectChangedFormatPaths(workspaceInfoOptional.rootDir);
948
827
  const preExistingChangedPaths = initialChangedPaths ? new Set(initialChangedPaths) : void 0;
@@ -978,6 +857,8 @@ async function main() {
978
857
  migrationProgressStarted = false;
979
858
  }
980
859
  };
860
+ updateMigrationProgress("Updating setup-vp workflows");
861
+ if (migrateSetupVpVersion(workspaceInfoOptional.rootDir, report).length > 0) didMigrate = true;
981
862
  const pendingCoreMigration = detectPendingCoreMigration(workspaceInfoOptional);
982
863
  const vitePlusBootstrapPending = detectVitePlusBootstrapPending(workspaceInfoOptional.rootDir, workspaceInfoOptional.packageManager, workspaceInfoOptional.packages, workspaceInfoOptional.packageManagerVersion);
983
864
  let packageManager = vitePlusBootstrapPending ? workspaceInfoOptional.packageManager ?? await selectPackageManager(options.interactive, true) : workspaceInfoOptional.packageManager;
@@ -1,4 +1,4 @@
1
- import { n as addMigrationWarning, r as createMigrationReport } from "../../report-ZNR1Mk6h.js";
1
+ import { n as addMigrationWarning, r as createMigrationReport } from "../../report-CK5TnTsr.js";
2
2
  import { t as ROLLDOWN_COMPAT_RESULT_PREFIX } from "../../protocol-D99W10Qi.js";
3
3
  import { writeSync } from "node:fs";
4
4
  //#region src/migration/compat/manual-chunks.ts
@@ -1 +1 @@
1
- export * from '@voidzero-dev/vite-plus-core/module-runner';
1
+ export * from 'vite/module-runner';
@@ -1 +1 @@
1
- export * from '@voidzero-dev/vite-plus-core/module-runner';
1
+ export * from 'vite/module-runner';
@@ -1,4 +1,4 @@
1
- import { u as VITE_PLUS_NAME } from "./constants-Bn-U8o4v.js";
1
+ import { u as VITE_PLUS_NAME } from "./constants-0IAVgpox.js";
2
2
  //#region src/oxlint-plugin-config.ts
3
3
  const VITE_PLUS_OXLINT_PLUGIN_NAME = VITE_PLUS_NAME;
4
4
  const VITE_PLUS_OXLINT_PLUGIN_SPECIFIER = `${VITE_PLUS_NAME}/oxlint-plugin`;
@@ -1,6 +1,6 @@
1
1
  //#region src/oxlint-plugin.d.ts
2
2
  declare function rewriteVitePlusImportSpecifier(specifier: string): string | null;
3
- declare const preferVitePlusImportsRule: import("@oxlint/plugins").Rule;
3
+ export declare const preferVitePlusImportsRule: import("@oxlint/plugins").Rule;
4
4
  declare const plugin: import("@oxlint/plugins").Plugin;
5
5
  //#endregion
6
- export { plugin as default, preferVitePlusImportsRule, rewriteVitePlusImportSpecifier };
6
+ export { plugin as default, rewriteVitePlusImportSpecifier };
@@ -1,4 +1,4 @@
1
- import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-DX5ezKbB.js";
1
+ import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-Drdl67Xp.js";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs";
4
4
  import { definePlugin, defineRule } from "@oxlint/plugins";
@@ -1,4 +1,4 @@
1
- import { UserConfig } from "@voidzero-dev/vite-plus-core/pack";
1
+ import { UserConfig } from "vite/pack";
2
2
  //#region src/pack.d.ts
3
3
  interface PackUserConfig extends UserConfig {
4
4
  /**
@@ -1,4 +1,3 @@
1
1
  //#region src/pack-bin.d.ts
2
- declare function runCLI(): Promise<void>;
3
- //#endregion
4
- export { runCLI };
2
+ export declare function runCLI(): Promise<void>;
3
+ //#endregion