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.
- package/LICENSE +5 -1
- package/bin/vpr +3 -2
- package/binding/index.cjs +193 -80
- package/binding/index.d.cts +99 -8
- package/dist/agent-CI79DuSy.js +600 -0
- package/dist/bin.js +1368 -13
- package/dist/{cli-truncate-BVOlIIPy.js → cli-truncate-Bg3RDXpi.js} +0 -2
- package/dist/client/bundledDevClient.mjs +1 -0
- package/dist/config/bin.js +13 -126
- package/dist/{constants-BsuzPowC.js → constants-BppDcRc1.js} +1 -1
- package/dist/create/bin.js +90 -77
- package/dist/{define-config-DLh9fE95.cjs → define-config-CEm_MtvJ.cjs} +1 -1
- package/dist/{define-config-C2KfLHpC.js → define-config-DPnHe1Mx.js} +2 -2
- package/dist/{define-config-eLQH9us2.d.ts → define-config-DWoAkNdp.d.ts} +16 -0
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{dist-CKz3vcoG.js → dist-CSQWHI6y.js} +3 -8
- package/dist/dist-DT25H9pj.js +3 -0
- package/dist/{agent-CPwWJ4qf.js → editor-CGWdbLgD.js} +690 -579
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-DiRs8ceZ.js → json-BU88uu6o.js} +2 -6
- package/dist/migration/bin.js +58 -48
- package/dist/{oxlint-plugin-config-Bxgc4cwF.js → oxlint-plugin-config-BHOzlwMw.js} +1 -1
- package/dist/oxlint-plugin.js +1 -1
- package/dist/pack-bin.js +1 -1
- package/dist/{package-Ds3uThLb.js → package-hV-77cBb.js} +2 -2
- package/dist/{tsconfig-Jia2vgMG.js → prompts-DYap08te.js} +32 -174
- package/dist/{resolve-vite-config-BiuLZnn8.js → resolve-vite-config-EWXclqvV.js} +1 -1
- package/dist/{rolldown-runtime-C7HZzL1F.js → rolldown-runtime-CMFfr-1z.js} +1 -1
- package/dist/staged/bin.js +20 -23
- package/dist/{help-YP84FSEz.js → terminal-CrqqK8WT.js} +39 -2
- package/dist/tsconfig-CVUKLfL8.js +151 -0
- package/dist/{tsgolint-path-B-yOos8p.js → tsgolint-path-eMZT-oea.js} +4 -2
- package/dist/tsgolint-path.js +1 -1
- package/dist/version.js +5 -5
- package/dist/versions.js +4 -4
- package/docs/config/index.md +13 -0
- package/docs/config/staged.md +2 -1
- package/docs/guide/commit-hooks.md +38 -20
- package/docs/guide/env.md +8 -4
- package/docs/guide/index.md +1 -1
- package/docs/guide/install.md +2 -0
- package/docs/guide/installer-env-vars.md +3 -3
- package/docs/guide/migrate.md +10 -2
- package/docs/guide/monorepo.md +94 -6
- package/docs/guide/troubleshooting.md +3 -2
- package/package.json +17 -23
- package/dist/dist-CtM2JRbM.js +0 -3
- package/dist/editor-BbT1lTNc.js +0 -675
- package/dist/terminal-uTv0ZaMr.js +0 -33
- 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;
|