vite-plus 0.1.18 → 0.1.19-alpha.0

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.
@@ -1379,6 +1379,7 @@ const multiselect = (opts) => {
1379
1379
  return withMarkerAndCheckbox(import_picocolors.default.dim(" "), import_picocolors.default.dim(S_CHECKBOX_INACTIVE), S_CHECKBOX_INACTIVE.length, label, import_picocolors.default.dim);
1380
1380
  };
1381
1381
  const required = opts.required ?? true;
1382
+ const hint = " " + import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`));
1382
1383
  return new it({
1383
1384
  options: opts.options,
1384
1385
  signal: opts.signal,
@@ -1388,7 +1389,7 @@ const multiselect = (opts) => {
1388
1389
  required,
1389
1390
  cursorAt: opts.cursorAt,
1390
1391
  validate(selected) {
1391
- if (required && (selected === void 0 || selected.length === 0)) return `Please select at least one option.\n${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`))}`;
1392
+ if (required && (selected === void 0 || selected.length === 0)) return `Please select at least one option.\n${hint}`;
1392
1393
  },
1393
1394
  render() {
1394
1395
  const hasGuide = opts.withGuide ?? false;
@@ -1432,7 +1433,7 @@ const multiselect = (opts) => {
1432
1433
  columnPadding: prefix.length,
1433
1434
  rowPadding: titleLineCount + footerLineCount,
1434
1435
  style: styleOption
1435
- }).join(`\n${prefix}`)}\n${footer}\n`;
1436
+ }).join(`\n${prefix}`)}\n${hint}\n${footer}\n`;
1436
1437
  }
1437
1438
  default: {
1438
1439
  const prefix = hasGuide ? `${import_picocolors.default.blue(S_BAR)} ` : nestedPrefix;
@@ -1446,7 +1447,7 @@ const multiselect = (opts) => {
1446
1447
  columnPadding: prefix.length,
1447
1448
  rowPadding: titleLineCount + footerLineCount,
1448
1449
  style: styleOption
1449
- }).join(`\n${prefix}`)}\n${hasGuide ? import_picocolors.default.blue(S_BAR_END) : ""}\n`;
1450
+ }).join(`\n${prefix}`)}\n${hint}\n${hasGuide ? import_picocolors.default.blue(S_BAR_END) : ""}\n`;
1450
1451
  }
1451
1452
  }
1452
1453
  }
@@ -1,5 +1,5 @@
1
1
  import { r as log } from "../terminal-P9aw9Fib.js";
2
- import { D as promptGitHooks, T as defaultInteractive, d as ensurePreCommitHook, f as hasStagedConfigInViteConfig, i as updateExistingAgentInstructions } from "../agent-BcSb6dt_.js";
2
+ import { D as promptGitHooks, T as defaultInteractive, d as ensurePreCommitHook, f as hasStagedConfigInViteConfig, i as updateExistingAgentInstructions } from "../agent-SsJdhby3.js";
3
3
  import { t as lib_default } from "../lib-BamM40b7.js";
4
4
  import { t as renderCliDoc } from "../help-BtkjXtRM.js";
5
5
  import { join } from "node:path";
@@ -1,10 +1,10 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "../chunk-DsIazq42.js";
2
2
  import { a as require_cross_spawn } from "../tsconfig-Do47YXpz.js";
3
3
  import { a as success, i as muted, r as log, t as accent } from "../terminal-P9aw9Fib.js";
4
- import { A as selectPackageManager, B as log$1, D as promptGitHooks, E as downloadPackageManager$1, F as PackageManager, G as text, K as require_picocolors, L as cancel, M as displayRelative, N as templatesDir, O as runViteFmt, P as DependencyType, R as confirm, T as defaultInteractive, U as select, V as multiselect, W as spinner, a as writeAgentInstructions, b as rewriteMonorepoProject, k as runViteInstall, n as detectExistingAgentTargetPaths, p as installGitHooks, q, r as selectAgentTargetPaths, x as rewriteStandaloneProject, y as rewriteMonorepo, z as intro } from "../agent-BcSb6dt_.js";
4
+ import { A as selectPackageManager, B as log$1, D as promptGitHooks, E as downloadPackageManager$1, F as PackageManager, G as text, K as require_picocolors, L as cancel, M as displayRelative, N as templatesDir, O as runViteFmt, P as DependencyType, R as confirm, T as defaultInteractive, U as select, V as multiselect, W as spinner, a as writeAgentInstructions, b as rewriteMonorepoProject, k as runViteInstall, n as detectExistingAgentTargetPaths, p as installGitHooks, q, r as selectAgentTargetPaths, x as rewriteStandaloneProject, y as rewriteMonorepo, z as intro } from "../agent-SsJdhby3.js";
5
5
  import { t as lib_default } from "../lib-BamM40b7.js";
6
6
  import { c as readJsonFile, o as editJsonFile, t as checkNpmPackageExists } from "../package-DhXOF9Xm.js";
7
- import { a as detectExistingEditor, n as updatePackageJsonWithDeps, o as selectEditor, r as updateWorkspaceConfig, s as writeEditorConfigs, t as detectWorkspace$1 } from "../workspace-DEScrNRl.js";
7
+ import { a as detectExistingEditor, n as updatePackageJsonWithDeps, o as selectEditor, r as updateWorkspaceConfig, s as writeEditorConfigs, t as detectWorkspace$1 } from "../workspace-DC4M0yWx.js";
8
8
  import { t as renderCliDoc } from "../help-BtkjXtRM.js";
9
9
  import path from "node:path";
10
10
  import { runCommand, vitePlusHeader } from "../../binding/index.js";
@@ -1,11 +1,11 @@
1
1
  import { r as __toESM } from "../chunk-DsIazq42.js";
2
2
  import { l as isForceOverrideMode } from "../main-GHdRghJ-.js";
3
3
  import { i as muted, r as log, t as accent } from "../terminal-P9aw9Fib.js";
4
- import { A as selectPackageManager, B as log$1, D as promptGitHooks, E as downloadPackageManager$1, F as PackageManager, H as outro, I as require_semver, M as displayRelative, R as confirm, T as defaultInteractive, U as select, W as spinner, _ as migratePrettierToOxfmt, a as writeAgentInstructions, c as detectEslintProject, g as migrateNodeVersionManagerFile, h as migrateEslintToOxlint, j as upgradeYarn, k as runViteInstall, l as detectNodeVersionManagerFile, m as mergeViteConfigFiles, n as detectExistingAgentTargetPaths, o as checkViteVersion, p as installGitHooks, q, r as selectAgentTargetPaths, s as checkVitestVersion, t as detectAgentConflicts, u as detectPrettierProject, v as preflightGitHooksSetup, w as cancelAndExit, x as rewriteStandaloneProject, y as rewriteMonorepo } from "../agent-BcSb6dt_.js";
4
+ import { A as selectPackageManager, B as log$1, D as promptGitHooks, E as downloadPackageManager$1, F as PackageManager, H as outro, I as require_semver, M as displayRelative, R as confirm, T as defaultInteractive, U as select, W as spinner, _ as migratePrettierToOxfmt, a as writeAgentInstructions, c as detectEslintProject, g as migrateNodeVersionManagerFile, h as migrateEslintToOxlint, j as upgradeYarn, k as runViteInstall, l as detectNodeVersionManagerFile, m as mergeViteConfigFiles, n as detectExistingAgentTargetPaths, o as checkViteVersion, p as installGitHooks, q, r as selectAgentTargetPaths, s as checkVitestVersion, t as detectAgentConflicts, u as detectPrettierProject, v as preflightGitHooksSetup, w as cancelAndExit, x as rewriteStandaloneProject, y as rewriteMonorepo } from "../agent-SsJdhby3.js";
5
5
  import { t as lib_default } from "../lib-BamM40b7.js";
6
6
  import { a as readNearestPackageJson, i as hasVitePlusDependency } from "../package-DhXOF9Xm.js";
7
7
  import { r as createMigrationReport } from "../report-DHdnkZbA.js";
8
- import { i as detectEditorConflicts, o as selectEditor, s as writeEditorConfigs, t as detectWorkspace$1 } from "../workspace-DEScrNRl.js";
8
+ import { i as detectEditorConflicts, o as selectEditor, s as writeEditorConfigs, t as detectWorkspace$1 } from "../workspace-DC4M0yWx.js";
9
9
  import { t as renderCliDoc } from "../help-BtkjXtRM.js";
10
10
  import path from "node:path";
11
11
  import { vitePlusHeader } from "../../binding/index.js";
package/dist/versions.js CHANGED
@@ -5,5 +5,5 @@ export const versions = {
5
5
  "vitest": "4.1.4",
6
6
  "oxlint": "1.60.0",
7
7
  "oxfmt": "0.45.0",
8
- "oxlint-tsgolint": "0.20.0"
8
+ "oxlint-tsgolint": "0.21.0"
9
9
  };
@@ -1,4 +1,4 @@
1
- import { B as log, C as readYamlFile, F as PackageManager, S as editYamlFile, U as select, q } from "./agent-BcSb6dt_.js";
1
+ import { B as log, C as readYamlFile, F as PackageManager, S as editYamlFile, U as select, q } from "./agent-SsJdhby3.js";
2
2
  import { t as require_dist } from "./dist-DPsDLqya.js";
3
3
  import { c as readJsonFile, l as writeJsonFile, o as editJsonFile, r as getScopeFromPackageName } from "./package-DhXOF9Xm.js";
4
4
  import path, { posix, win32 } from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plus",
3
- "version": "0.1.18",
3
+ "version": "0.1.19-alpha.0",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -321,9 +321,9 @@
321
321
  "@oxc-project/types": "=0.124.0",
322
322
  "oxfmt": "=0.45.0",
323
323
  "oxlint": "=1.60.0",
324
- "oxlint-tsgolint": "=0.20.0",
325
- "@voidzero-dev/vite-plus-core": "0.1.18",
326
- "@voidzero-dev/vite-plus-test": "0.1.18"
324
+ "oxlint-tsgolint": "=0.21.0",
325
+ "@voidzero-dev/vite-plus-core": "0.1.19-alpha.0",
326
+ "@voidzero-dev/vite-plus-test": "0.1.19-alpha.0"
327
327
  },
328
328
  "devDependencies": {
329
329
  "@napi-rs/cli": "^3.6.1",
@@ -348,8 +348,8 @@
348
348
  "tsdown": "^0.21.8",
349
349
  "validate-npm-package-name": "^7.0.2",
350
350
  "yaml": "^2.8.1",
351
- "@voidzero-dev/vite-plus-prompts": "0.0.0",
352
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.18"
351
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.1.19-alpha.0",
352
+ "@voidzero-dev/vite-plus-prompts": "0.0.0"
353
353
  },
354
354
  "napi": {
355
355
  "binaryName": "vite-plus",
@@ -369,14 +369,14 @@
369
369
  "node": "^20.19.0 || >=22.12.0"
370
370
  },
371
371
  "optionalDependencies": {
372
- "@voidzero-dev/vite-plus-darwin-arm64": "0.1.18",
373
- "@voidzero-dev/vite-plus-darwin-x64": "0.1.18",
374
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.18",
375
- "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.18",
376
- "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.18",
377
- "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.18",
378
- "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.18",
379
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.18"
372
+ "@voidzero-dev/vite-plus-darwin-arm64": "0.1.19-alpha.0",
373
+ "@voidzero-dev/vite-plus-darwin-x64": "0.1.19-alpha.0",
374
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.19-alpha.0",
375
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.19-alpha.0",
376
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.19-alpha.0",
377
+ "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.19-alpha.0",
378
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.19-alpha.0",
379
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.19-alpha.0"
380
380
  },
381
381
  "scripts": {
382
382
  "build": "oxnode -C dev ./build.ts",
@@ -18,7 +18,7 @@ curl -fsSL https://vite.plus | bash
18
18
  irm https://vite.plus/ps1 | iex
19
19
  ```
20
20
 
21
- Alternatively, download and run [`vp-setup.exe`](https://viteplus.dev/vp-setup).
21
+ Alternatively, download and run [`vp-setup.exe`](https://setup.viteplus.dev).
22
22
 
23
23
  ::: tip SmartScreen warning
24
24
  The `vp-setup.exe` is not yet code-signed. Your browser may show a warning when downloading. Click **"..."** → **"Keep"** → **"Keep anyway"** to proceed. If Windows Defender SmartScreen blocks the file when you run it, click **"More info"** → **"Run anyway"**.
@@ -60,6 +60,7 @@ Vite+ provides all the familiar package management commands:
60
60
  - `vp list` shows installed packages
61
61
  - `vp why <pkg>` explains why a package is present
62
62
  - `vp info <pkg>` shows registry metadata for a package
63
+ - `vp rebuild` rebuilds native modules (e.g. after switching Node.js versions)
63
64
  - `vp link` and `vp unlink` manage local package links
64
65
  - `vp dlx <pkg>` runs a package binary without adding it to the project
65
66
  - `vp pm <command>` forwards a raw package-manager-specific command when you need behavior outside the normalized `vp` command set
@@ -115,6 +116,20 @@ Use these when you need to understand the current state of dependencies.
115
116
  - `vp why react` explains why `react` is installed
116
117
  - `vp info react` shows registry metadata such as versions and dist-tags
117
118
 
119
+ #### Rebuild
120
+
121
+ Use `vp rebuild` when native modules need to be recompiled, for example after switching Node.js versions or when a C/C++ addon fails to load.
122
+
123
+ - `vp rebuild` rebuilds all native modules
124
+ - `vp rebuild -- <args>` passes extra arguments to the underlying package manager
125
+
126
+ ```bash
127
+ vp rebuild
128
+ vp rebuild -- --update-binary
129
+ ```
130
+
131
+ `vp rebuild` is a shorthand for `vp pm rebuild`.
132
+
118
133
  #### Advanced
119
134
 
120
135
  Use these when you need lower-level package-manager behavior.