vite-plus 0.1.21-alpha.0 → 0.1.21-alpha.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.
@@ -1,6 +1,6 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "./chunk-q7NCDQ7-.js";
2
2
  import { c as VITE_PLUS_VERSION, i as BASEURL_TSCONFIG_WARNING, l as isForceOverrideMode, o as VITE_PLUS_NAME, s as VITE_PLUS_OVERRIDE_PACKAGES } from "./main-A6UrSTYb.js";
3
- import { a as require_cross_spawn, i as runCommandSilently, n as hasBaseUrlInTsconfig, r as removeDeprecatedTsconfigFalseOption, t as findTsconfigFiles } from "./tsconfig-DQTf06oN.js";
3
+ import { a as runCommandSilently, n as hasBaseUrlInTsconfig, o as require_cross_spawn, r as removeDeprecatedTsconfigFalseOption, t as findTsconfigFiles } from "./tsconfig-BQeK6Jxp.js";
4
4
  import { t as accent } from "./terminal-CxTMfsxZ.js";
5
5
  import { t as require_dist } from "./dist-DjG9AYbK.js";
6
6
  import { c as editJsonFile, l as isJsonFile, n as detectPackageMetadata, u as readJsonFile } from "./package-CrKanQYM.js";
package/dist/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as DEFAULT_ENVS, i as BASEURL_TSCONFIG_WARNING, o as VITE_PLUS_NAME, u as resolve$1 } from "./main-A6UrSTYb.js";
2
- import { i as runCommandSilently, n as hasBaseUrlInTsconfig } from "./tsconfig-DQTf06oN.js";
2
+ import { a as runCommandSilently, n as hasBaseUrlInTsconfig } from "./tsconfig-BQeK6Jxp.js";
3
3
  import { n as errorMsg, r as log, s as warnMsg, t as accent } from "./terminal-CxTMfsxZ.js";
4
4
  import { r as resolveUniversalViteConfig } from "./resolve-vite-config-C1KX9CZU.js";
5
5
  import path, { dirname, join } from "node:path";
@@ -1,5 +1,5 @@
1
1
  import { a as printHeader, r as log } from "../terminal-CxTMfsxZ.js";
2
- import { L as defaultInteractive, _ as hasStagedConfigInViteConfig, h as ensurePreCommitHook, i as updateExistingAgentInstructions, z as promptGitHooks } from "../agent-C8Me6C5u.js";
2
+ import { L as defaultInteractive, _ as hasStagedConfigInViteConfig, h as ensurePreCommitHook, i as updateExistingAgentInstructions, z as promptGitHooks } from "../agent-YSH78B1d.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,11 +1,11 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "../chunk-q7NCDQ7-.js";
2
- import { a as require_cross_spawn } from "../tsconfig-DQTf06oN.js";
2
+ import { a as runCommandSilently, i as runCommand$1, o as require_cross_spawn } from "../tsconfig-BQeK6Jxp.js";
3
3
  import { a as printHeader, i as muted, o as success, r as log, t as accent } from "../terminal-CxTMfsxZ.js";
4
4
  import { i as resolveViteConfig, n as hasViteConfig, t as findWorkspaceRoot } from "../resolve-vite-config-C1KX9CZU.js";
5
- import { $ as multiselect, A as setPackageManager, B as runViteFmt, D as rewriteMonorepo, E as promptPrettierMigration, G as templatesDir, H as selectPackageManager, K as DependencyType, L as defaultInteractive, O as rewriteMonorepoProject, Q as log$1, R as downloadPackageManager$1, T as promptEslintMigration, V as runViteInstall, W as displayRelative, X as confirm, Y as cancel, Z as intro, a as writeAgentInstructions, at as q, d as detectEslintProject, f as detectFramework, g as hasFrameworkShim, it as require_picocolors, k as rewriteStandaloneProject, m as detectPrettierProject, n as detectExistingAgentTargetPaths, nt as spinner, o as addFrameworkShim, q as PackageManager, r as selectAgentTargetPaths, rt as text, tt as select, v as injectCreateDefaultTemplate, y as installGitHooks, z as promptGitHooks } from "../agent-C8Me6C5u.js";
5
+ import { $ as multiselect, A as setPackageManager, B as runViteFmt, D as rewriteMonorepo, E as promptPrettierMigration, G as templatesDir, H as selectPackageManager, K as DependencyType, L as defaultInteractive, O as rewriteMonorepoProject, Q as log$1, R as downloadPackageManager$1, T as promptEslintMigration, V as runViteInstall, W as displayRelative, X as confirm, Y as cancel, Z as intro, a as writeAgentInstructions, at as q, d as detectEslintProject, f as detectFramework, g as hasFrameworkShim, it as require_picocolors, k as rewriteStandaloneProject, m as detectPrettierProject, n as detectExistingAgentTargetPaths, nt as spinner, o as addFrameworkShim, q as PackageManager, r as selectAgentTargetPaths, rt as text, tt as select, v as injectCreateDefaultTemplate, y as installGitHooks, z as promptGitHooks } from "../agent-YSH78B1d.js";
6
6
  import { t as lib_default } from "../lib-BamM40b7.js";
7
7
  import { c as editJsonFile, o as fetchNpmResource, s as getNpmRegistry, t as checkNpmPackageExists, u as readJsonFile } from "../package-CrKanQYM.js";
8
- import { a as detectExistingEditors, c as writeEditorConfigs, n as updatePackageJsonWithDeps, r as updateWorkspaceConfig, s as selectEditors, t as detectWorkspace$1 } from "../workspace-BSMGz0AZ.js";
8
+ import { a as detectExistingEditors, c as writeEditorConfigs, n as updatePackageJsonWithDeps, r as updateWorkspaceConfig, s as selectEditors, t as detectWorkspace$1 } from "../workspace-9Zx76HPn.js";
9
9
  import { t as renderCliDoc } from "../help-BtkjXtRM.js";
10
10
  import path from "node:path";
11
11
  import { runCommand, vitePlusHeader } from "../../binding/index.js";
@@ -49,48 +49,6 @@ async function runCommandAndDetectProjectDir(options, parentDir) {
49
49
  projectDir
50
50
  };
51
51
  }
52
- async function runCommandSilently(options) {
53
- const child = (0, import_cross_spawn.default)(options.command, options.args, {
54
- stdio: "pipe",
55
- cwd: options.cwd,
56
- env: options.envs
57
- });
58
- return await new Promise((resolve, reject) => {
59
- const stdout = [];
60
- const stderr = [];
61
- child.stdout?.on("data", (data) => {
62
- stdout.push(data);
63
- });
64
- child.stderr?.on("data", (data) => {
65
- stderr.push(data);
66
- });
67
- child.on("close", (code) => {
68
- resolve({
69
- exitCode: code ?? 0,
70
- stdout: Buffer.concat(stdout),
71
- stderr: Buffer.concat(stderr)
72
- });
73
- });
74
- child.on("error", (err) => {
75
- reject(err);
76
- });
77
- });
78
- }
79
- async function runCommand$1(options) {
80
- const child = (0, import_cross_spawn.default)(options.command, options.args, {
81
- stdio: "inherit",
82
- cwd: options.cwd,
83
- env: options.envs
84
- });
85
- return await new Promise((resolve, reject) => {
86
- child.on("close", (code) => {
87
- resolve({ exitCode: code ?? 0 });
88
- });
89
- child.on("error", (err) => {
90
- reject(err);
91
- });
92
- });
93
- }
94
52
  function getPackageRunner(workspaceInfo) {
95
53
  switch (workspaceInfo.packageManager) {
96
54
  case "pnpm": return {
@@ -1,11 +1,11 @@
1
1
  import { r as __toESM } from "../chunk-q7NCDQ7-.js";
2
2
  import { l as isForceOverrideMode } from "../main-A6UrSTYb.js";
3
3
  import { a as printHeader, i as muted, r as log, t as accent } from "../terminal-CxTMfsxZ.js";
4
- import { C as migratePrettierToOxfmt, D as rewriteMonorepo, E as promptPrettierMigration, H as selectPackageManager, I as cancelAndExit, J as require_semver, L as defaultInteractive, M as warnPackageLevelEslint, N as warnPackageLevelPrettier, Q as log$1, R as downloadPackageManager, S as migrateNodeVersionManagerFile, T as promptEslintMigration, U as upgradeYarn, V as runViteInstall, W as displayRelative, X as confirm, a as writeAgentInstructions, at as q, b as mergeViteConfigFiles, c as checkVitestVersion, d as detectEslintProject, et as outro, f as detectFramework, g as hasFrameworkShim, j as warnLegacyEslintConfig, k as rewriteStandaloneProject, l as confirmEslintMigration, m as detectPrettierProject, n as detectExistingAgentTargetPaths, nt as spinner, o as addFrameworkShim, p as detectNodeVersionManagerFile, q as PackageManager, r as selectAgentTargetPaths, s as checkViteVersion, t as detectAgentConflicts, tt as select, u as confirmPrettierMigration, w as preflightGitHooksSetup, x as migrateEslintToOxlint, y as installGitHooks, z as promptGitHooks } from "../agent-C8Me6C5u.js";
4
+ import { C as migratePrettierToOxfmt, D as rewriteMonorepo, E as promptPrettierMigration, H as selectPackageManager, I as cancelAndExit, J as require_semver, L as defaultInteractive, M as warnPackageLevelEslint, N as warnPackageLevelPrettier, Q as log$1, R as downloadPackageManager, S as migrateNodeVersionManagerFile, T as promptEslintMigration, U as upgradeYarn, V as runViteInstall, W as displayRelative, X as confirm, a as writeAgentInstructions, at as q, b as mergeViteConfigFiles, c as checkVitestVersion, d as detectEslintProject, et as outro, f as detectFramework, g as hasFrameworkShim, j as warnLegacyEslintConfig, k as rewriteStandaloneProject, l as confirmEslintMigration, m as detectPrettierProject, n as detectExistingAgentTargetPaths, nt as spinner, o as addFrameworkShim, p as detectNodeVersionManagerFile, q as PackageManager, r as selectAgentTargetPaths, s as checkViteVersion, t as detectAgentConflicts, tt as select, u as confirmPrettierMigration, w as preflightGitHooksSetup, x as migrateEslintToOxlint, y as installGitHooks, z as promptGitHooks } from "../agent-YSH78B1d.js";
5
5
  import { t as lib_default } from "../lib-BamM40b7.js";
6
6
  import { a as readNearestPackageJson, i as hasVitePlusDependency } from "../package-CrKanQYM.js";
7
7
  import { r as createMigrationReport } from "../report-DbrfjWiP.js";
8
- import { c as writeEditorConfigs, i as detectEditorConflicts, o as selectEditor, t as detectWorkspace } from "../workspace-BSMGz0AZ.js";
8
+ import { c as writeEditorConfigs, i as detectEditorConflicts, o as selectEditor, t as detectWorkspace } from "../workspace-9Zx76HPn.js";
9
9
  import { t as renderCliDoc } from "../help-BtkjXtRM.js";
10
10
  import path from "node:path";
11
11
  import { styleText } from "node:util";
@@ -402,7 +402,11 @@ var require_cross_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
402
402
  var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
403
403
  async function runCommandSilently(options) {
404
404
  const child = (0, import_cross_spawn.default)(options.command, options.args, {
405
- stdio: "pipe",
405
+ stdio: [
406
+ "ignore",
407
+ "pipe",
408
+ "pipe"
409
+ ],
406
410
  cwd: options.cwd,
407
411
  env: options.envs
408
412
  });
@@ -427,6 +431,21 @@ async function runCommandSilently(options) {
427
431
  });
428
432
  });
429
433
  }
434
+ async function runCommand(options) {
435
+ const child = (0, import_cross_spawn.default)(options.command, options.args, {
436
+ stdio: "inherit",
437
+ cwd: options.cwd,
438
+ env: options.envs
439
+ });
440
+ return new Promise((resolve, reject) => {
441
+ child.on("close", (code) => {
442
+ resolve({ exitCode: code ?? 0 });
443
+ });
444
+ child.on("error", (err) => {
445
+ reject(err);
446
+ });
447
+ });
448
+ }
430
449
  //#endregion
431
450
  //#region src/utils/tsconfig.ts
432
451
  /**
@@ -464,4 +483,4 @@ function removeDeprecatedTsconfigFalseOption(filePath, optionName) {
464
483
  return true;
465
484
  }
466
485
  //#endregion
467
- export { require_cross_spawn as a, runCommandSilently as i, hasBaseUrlInTsconfig as n, removeDeprecatedTsconfigFalseOption as r, findTsconfigFiles as t };
486
+ export { runCommandSilently as a, runCommand as i, hasBaseUrlInTsconfig as n, require_cross_spawn as o, removeDeprecatedTsconfigFalseOption as r, findTsconfigFiles as t };
@@ -1,4 +1,4 @@
1
- import { $ as multiselect, F as readYamlFile, P as editYamlFile, Q as log, at as q, q as PackageManager, tt as select } from "./agent-C8Me6C5u.js";
1
+ import { $ as multiselect, F as readYamlFile, P as editYamlFile, Q as log, at as q, q as PackageManager, tt as select } from "./agent-YSH78B1d.js";
2
2
  import { t as require_dist } from "./dist-DjG9AYbK.js";
3
3
  import { c as editJsonFile, d as writeJsonFile, r as getScopeFromPackageName, u as readJsonFile } from "./package-CrKanQYM.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.21-alpha.0",
3
+ "version": "0.1.21-alpha.1",
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.46.0",
323
323
  "oxlint": "=1.61.0",
324
324
  "oxlint-tsgolint": "=0.22.0",
325
- "@voidzero-dev/vite-plus-test": "0.1.21-alpha.0",
326
- "@voidzero-dev/vite-plus-core": "0.1.21-alpha.0"
325
+ "@voidzero-dev/vite-plus-core": "0.1.21-alpha.1",
326
+ "@voidzero-dev/vite-plus-test": "0.1.21-alpha.1"
327
327
  },
328
328
  "devDependencies": {
329
329
  "@napi-rs/cli": "^3.6.1",
@@ -348,9 +348,9 @@
348
348
  "tsdown": "^0.21.10",
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
351
  "@voidzero-dev/vite-plus-tools": "0.0.0",
353
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.21-alpha.0"
352
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.1.21-alpha.1",
353
+ "@voidzero-dev/vite-plus-prompts": "0.0.0"
354
354
  },
355
355
  "napi": {
356
356
  "binaryName": "vite-plus",
@@ -370,14 +370,14 @@
370
370
  "node": "^20.19.0 || >=22.12.0"
371
371
  },
372
372
  "optionalDependencies": {
373
- "@voidzero-dev/vite-plus-darwin-arm64": "0.1.21-alpha.0",
374
- "@voidzero-dev/vite-plus-darwin-x64": "0.1.21-alpha.0",
375
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.21-alpha.0",
376
- "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.21-alpha.0",
377
- "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.21-alpha.0",
378
- "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.21-alpha.0",
379
- "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.21-alpha.0",
380
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.21-alpha.0"
373
+ "@voidzero-dev/vite-plus-darwin-arm64": "0.1.21-alpha.1",
374
+ "@voidzero-dev/vite-plus-darwin-x64": "0.1.21-alpha.1",
375
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.21-alpha.1",
376
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.21-alpha.1",
377
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.21-alpha.1",
378
+ "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.21-alpha.1",
379
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.21-alpha.1",
380
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.21-alpha.1"
381
381
  },
382
382
  "scripts": {
383
383
  "build": "oxnode -C dev ./build.ts",