vite-plus 0.1.17-alpha.5 → 0.1.17

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.
@@ -11,7 +11,7 @@ import fs from "node:fs";
11
11
  import { styleText } from "node:util";
12
12
  import process$1, { stdin, stdout } from "node:process";
13
13
  import * as _ from "node:readline";
14
- import u from "node:readline";
14
+ import P from "node:readline";
15
15
  import { ReadStream } from "node:tty";
16
16
  import fsPromises from "node:fs/promises";
17
17
  //#region ../../node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
@@ -392,7 +392,7 @@ function d(r, t, e) {
392
392
  const s = r + t, i = Math.max(e.length - 1, 0), n = s < 0 ? i : s > i ? 0 : s;
393
393
  return e[n].disabled ? d(n, t < 0 ? -1 : 1, e) : n;
394
394
  }
395
- const u$1 = {
395
+ const u = {
396
396
  actions: new Set([
397
397
  "up",
398
398
  "down",
@@ -440,7 +440,7 @@ const u$1 = {
440
440
  }
441
441
  };
442
442
  function V(r, t) {
443
- if (typeof r == "string") return u$1.aliases.get(r) === t;
443
+ if (typeof r == "string") return u.aliases.get(r) === t;
444
444
  for (const e of r) if (e !== void 0 && V(e, t)) return !0;
445
445
  return !1;
446
446
  }
@@ -551,7 +551,7 @@ let p = class {
551
551
  this.state = "cancel", this.close();
552
552
  }, { once: !0 });
553
553
  }
554
- this.rl = u.createInterface({
554
+ this.rl = P.createInterface({
555
555
  input: this.input,
556
556
  tabSize: 2,
557
557
  prompt: "",
@@ -583,7 +583,7 @@ let p = class {
583
583
  if (this._track && e.name !== "return" && (e.name && this._isActionKey(t, e) && this.rl?.write(null, {
584
584
  ctrl: !0,
585
585
  name: "h"
586
- }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && u$1.aliases.has(e.name) && this.emit("cursor", u$1.aliases.get(e.name)), u$1.actions.has(e.name) && this.emit("cursor", e.name)), t && (t.toLowerCase() === "y" || t.toLowerCase() === "n") && this.emit("confirm", t.toLowerCase() === "y"), this.emit("key", t?.toLowerCase(), e), e?.name === "return") {
586
+ }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && u.aliases.has(e.name) && this.emit("cursor", u.aliases.get(e.name)), u.actions.has(e.name) && this.emit("cursor", e.name)), t && (t.toLowerCase() === "y" || t.toLowerCase() === "n") && this.emit("confirm", t.toLowerCase() === "y"), this.emit("key", t?.toLowerCase(), e), e?.name === "return") {
587
587
  if (this.opts.validate) {
588
588
  const s = this.opts.validate(this.value);
589
589
  s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.userInput));
@@ -1489,7 +1489,7 @@ const spinner = ({ indicator = "dots", onCancel, output = process.stdout, cancel
1489
1489
  return _elapsedMs + (performance.now() - _origin);
1490
1490
  };
1491
1491
  const handleExit = (code) => {
1492
- const msg = code > 1 ? errorMessage ?? u$1.messages.error : cancelMessage ?? u$1.messages.cancel;
1492
+ const msg = code > 1 ? errorMessage ?? u.messages.error : cancelMessage ?? u.messages.cancel;
1493
1493
  isCancelled = code === 1;
1494
1494
  if (isSpinnerActive) {
1495
1495
  _stop(msg, code);
@@ -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-ang3olbu.js";
2
+ import { D as promptGitHooks, T as defaultInteractive, d as ensurePreCommitHook, f as hasStagedConfigInViteConfig, i as updateExistingAgentInstructions } from "../agent-BcSb6dt_.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-ang3olbu.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";
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-WGxJ43iy.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";
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-ang3olbu.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";
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-WGxJ43iy.js";
8
+ import { i as detectEditorConflicts, o as selectEditor, s as writeEditorConfigs, t as detectWorkspace$1 } from "../workspace-DEScrNRl.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";
@@ -10,7 +10,7 @@ import { constants } from "node:fs";
10
10
  import { formatWithOptions, inspect, promisify } from "node:util";
11
11
  import { pathToFileURL } from "node:url";
12
12
  import { cwd } from "node:process";
13
- import u from "node:readline";
13
+ import P from "node:readline";
14
14
  import nodeTty from "node:tty";
15
15
  import fsPromises, { constants as constants$1 } from "node:fs/promises";
16
16
  import { PassThrough, Writable } from "node:stream";
@@ -638,7 +638,7 @@ var V = class {
638
638
  if (this._streamErr) t.push(this._streamErr);
639
639
  if (this._streamOut) t.push(this._streamOut);
640
640
  const n = v(t);
641
- const r = u.createInterface({ input: n });
641
+ const r = P.createInterface({ input: n });
642
642
  for await (const e of r) yield e.toString();
643
643
  await this._processClosed;
644
644
  e.removeAllListeners();
@@ -1,4 +1,4 @@
1
- import { B as log, C as readYamlFile, F as PackageManager, S as editYamlFile, U as select, q } from "./agent-ang3olbu.js";
1
+ import { B as log, C as readYamlFile, F as PackageManager, S as editYamlFile, U as select, q } from "./agent-BcSb6dt_.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.17-alpha.5",
3
+ "version": "0.1.17",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -322,8 +322,8 @@
322
322
  "oxfmt": "=0.45.0",
323
323
  "oxlint": "=1.60.0",
324
324
  "oxlint-tsgolint": "=0.20.0",
325
- "@voidzero-dev/vite-plus-core": "0.1.17-alpha.5",
326
- "@voidzero-dev/vite-plus-test": "0.1.17-alpha.5"
325
+ "@voidzero-dev/vite-plus-test": "0.1.17",
326
+ "@voidzero-dev/vite-plus-core": "0.1.17"
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
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.17-alpha.5",
352
- "@voidzero-dev/vite-plus-prompts": "0.0.0"
351
+ "@voidzero-dev/vite-plus-prompts": "0.0.0",
352
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.1.17"
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.17-alpha.5",
373
- "@voidzero-dev/vite-plus-darwin-x64": "0.1.17-alpha.5",
374
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.17-alpha.5",
375
- "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.17-alpha.5",
376
- "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.17-alpha.5",
377
- "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.17-alpha.5",
378
- "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.17-alpha.5",
379
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.17-alpha.5"
372
+ "@voidzero-dev/vite-plus-darwin-arm64": "0.1.17",
373
+ "@voidzero-dev/vite-plus-darwin-x64": "0.1.17",
374
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.17",
375
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.17",
376
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.17",
377
+ "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.17",
378
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.17",
379
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.17"
380
380
  },
381
381
  "scripts": {
382
382
  "build": "oxnode -C dev ./build.ts",