vite-plus 0.2.7 → 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 (54) hide show
  1. package/LICENSE +5 -1
  2. package/bin/vpr +3 -2
  3. package/binding/index.cjs +193 -80
  4. package/binding/index.d.cts +99 -8
  5. package/dist/agent-CI79DuSy.js +600 -0
  6. package/dist/bin.js +1368 -13
  7. package/dist/{cli-truncate-BVOlIIPy.js → cli-truncate-Bg3RDXpi.js} +0 -2
  8. package/dist/client/bundledDevClient.mjs +1 -0
  9. package/dist/config/bin.js +13 -126
  10. package/dist/{constants-BsuzPowC.js → constants-BppDcRc1.js} +1 -1
  11. package/dist/create/bin.js +90 -77
  12. package/dist/{define-config-DLh9fE95.cjs → define-config-CEm_MtvJ.cjs} +1 -1
  13. package/dist/{define-config-C2KfLHpC.js → define-config-DPnHe1Mx.js} +2 -2
  14. package/dist/{define-config-eLQH9us2.d.ts → define-config-DWoAkNdp.d.ts} +16 -0
  15. package/dist/define-config.cjs +1 -1
  16. package/dist/define-config.d.ts +1 -1
  17. package/dist/define-config.js +1 -1
  18. package/dist/{dist-CKz3vcoG.js → dist-CSQWHI6y.js} +3 -8
  19. package/dist/dist-DT25H9pj.js +3 -0
  20. package/dist/{agent-CPwWJ4qf.js → editor-CGWdbLgD.js} +690 -579
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/{json-DiRs8ceZ.js → json-BU88uu6o.js} +2 -6
  25. package/dist/migration/bin.js +58 -48
  26. package/dist/{oxlint-plugin-config-Bxgc4cwF.js → oxlint-plugin-config-BHOzlwMw.js} +1 -1
  27. package/dist/oxlint-plugin.js +1 -1
  28. package/dist/pack-bin.js +1 -1
  29. package/dist/{package-Ds3uThLb.js → package-hV-77cBb.js} +2 -2
  30. package/dist/{tsconfig-Jia2vgMG.js → prompts-DYap08te.js} +32 -174
  31. package/dist/{resolve-vite-config-BiuLZnn8.js → resolve-vite-config-EWXclqvV.js} +1 -1
  32. package/dist/{rolldown-runtime-C7HZzL1F.js → rolldown-runtime-CMFfr-1z.js} +1 -1
  33. package/dist/staged/bin.js +20 -23
  34. package/dist/{help-YP84FSEz.js → terminal-CrqqK8WT.js} +39 -2
  35. package/dist/tsconfig-CVUKLfL8.js +151 -0
  36. package/dist/{tsgolint-path-B-yOos8p.js → tsgolint-path-eMZT-oea.js} +4 -2
  37. package/dist/tsgolint-path.js +1 -1
  38. package/dist/version.js +5 -5
  39. package/dist/versions.js +4 -4
  40. package/docs/config/index.md +13 -0
  41. package/docs/config/staged.md +2 -1
  42. package/docs/guide/commit-hooks.md +38 -20
  43. package/docs/guide/env.md +8 -4
  44. package/docs/guide/index.md +1 -1
  45. package/docs/guide/install.md +2 -0
  46. package/docs/guide/installer-env-vars.md +3 -3
  47. package/docs/guide/migrate.md +10 -2
  48. package/docs/guide/monorepo.md +94 -6
  49. package/docs/guide/troubleshooting.md +3 -2
  50. package/package.json +17 -23
  51. package/dist/dist-CtM2JRbM.js +0 -3
  52. package/dist/editor-BbT1lTNc.js +0 -675
  53. package/dist/terminal-uTv0ZaMr.js +0 -33
  54. package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
@@ -1,33 +0,0 @@
1
- import { shouldPrintVitePlusHeader, vitePlusHeader } from "../binding/index.js";
2
- import { styleText } from "node:util";
3
- //#region src/utils/terminal.ts
4
- function log(message) {
5
- console.log(message);
6
- }
7
- /**
8
- * Emit the Vite+ banner (header line + trailing blank line) to stdout.
9
- * Gating (non-TTY, git hooks) lives in `shouldPrintVitePlusHeader` on the
10
- * Rust side so both CLIs stay in sync.
11
- */
12
- function printHeader() {
13
- if (!shouldPrintVitePlusHeader()) return;
14
- log(vitePlusHeader());
15
- log("");
16
- }
17
- function accent(text) {
18
- return styleText("blue", text);
19
- }
20
- function muted(text) {
21
- return styleText("gray", text);
22
- }
23
- function success(text) {
24
- return styleText("green", text);
25
- }
26
- function warnMsg(msg) {
27
- console.error(styleText(["yellow", "bold"], "warn:"), msg);
28
- }
29
- function errorMsg(msg) {
30
- console.error(styleText(["red", "bold"], "error:"), msg);
31
- }
32
- //#endregion
33
- export { printHeader as a, muted as i, errorMsg as n, success as o, log as r, warnMsg as s, accent as t };
@@ -1,8 +1,8 @@
1
1
  import { a as ansiStyles, t as stripAnsi } from "./strip-ansi-C3wrWz9t.js";
2
2
  import { t as isFullwidthCodePoint } from "./is-fullwidth-code-point-BUNlIICg.js";
3
3
  import { t as wrapAnsi } from "./wrap-ansi-DNjkuBEp.js";
4
- import process$1 from "node:process";
5
4
  import os from "node:os";
5
+ import process$1 from "node:process";
6
6
  //#region ../../node_modules/.pnpm/environment@1.1.0/node_modules/environment/index.js
7
7
  const isBrowser = globalThis.window?.document !== void 0;
8
8
  globalThis.process?.versions?.node;