vite-plus 0.1.21 → 0.1.23
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/AGENTS.md +1 -0
- package/binding/index.cjs +120 -52
- package/binding/index.d.cts +3232 -2
- package/dist/agent-aSGY0osq.js +2461 -0
- package/dist/bin.js +9 -14
- package/dist/cli-truncate-CWsmbK3p.js +867 -0
- package/dist/{compat-DdC7fHjB.js → compat-DXZgnEyq.js} +1 -1
- package/dist/config/bin.js +18 -5
- package/dist/constants-DCBWlNrn.js +33 -0
- package/dist/create/bin.js +215 -77
- package/dist/{define-config-cWg3Z2bC.d.ts → define-config-COdn-tsn.d.ts} +7 -5
- 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-Bapm49IR.js +3 -0
- package/dist/{dist-DjG9AYbK.js → dist-BgQuvbtq.js} +136 -110
- package/dist/fmt.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/is-fullwidth-code-point-BUNlIICg.js +8 -0
- package/dist/lint.d.ts +1 -1
- package/dist/{log-update-CLxR0iRf.js → log-update-lyIiuflf.js} +111 -24
- package/dist/{main-A6UrSTYb.js → main-DpJl3LoU.js} +1 -28
- package/dist/migration/bin.js +71 -30
- package/dist/oxlint-plugin-config-B89iKTKN.js +37 -0
- package/dist/oxlint-plugin.d.ts +6 -0
- package/dist/oxlint-plugin.js +91 -0
- package/dist/pack-bin.js +1 -1
- package/dist/pack.d.ts +1 -1
- package/dist/{package-CrKanQYM.js → package-PmBUZ-ve.js} +2 -1
- package/dist/staged/bin.js +10 -10
- package/dist/strip-ansi-C3wrWz9t.js +853 -0
- package/dist/{agent-D2ocSU01.js → tsconfig-DlUVXT3J.js} +666 -2090
- package/dist/version.js +5 -5
- package/dist/versions.js +6 -6
- package/dist/{workspace-QXeJWs3P.js → workspace-DElv730L.js} +15 -15
- package/dist/wrap-ansi-CeQuiQ31.js +2 -0
- package/dist/{wrap-ansi-Dy0LjO7Q.js → wrap-ansi-k7Dn4VtV.js} +1 -1
- package/docs/config/run.md +39 -4
- package/docs/guide/cache.md +10 -1
- package/docs/guide/create.md +3 -1
- package/docs/guide/env.md +26 -1
- package/docs/guide/ide-integration.md +2 -2
- package/docs/guide/install.md +6 -0
- package/docs/guide/run.md +2 -0
- package/docs/guide/troubleshooting.md +5 -2
- package/docs/package.json +3 -1
- package/docs/pnpm-lock.yaml +798 -62
- package/package.json +27 -19
- package/templates/monorepo/_gitignore +1 -0
- package/dist/cli-truncate-DJcN4dJ8.js +0 -138
- package/dist/dist-D2_BiE1V.js +0 -3
- package/dist/slice-ansi-CwJYd1aw.js +0 -113
- package/dist/strip-ansi-D86nYqKl.js +0 -198
- package/dist/tsconfig-lBAWm4sf.js +0 -517
- package/dist/wrap-ansi-DbY7Idw_.js +0 -2
- /package/dist/{chunk-q7NCDQ7-.js → chunk-DnnnRqeS.js} +0 -0
- /package/dist/{define-config-GqLoRwH9.cjs → define-config-BR1Y88zz.cjs} +0 -0
- /package/dist/{define-config-B62DkkqH.js → define-config-BRC7qPNE.js} +0 -0
- /package/dist/{help-BtkjXtRM.js → help-YP84FSEz.js} +0 -0
- /package/dist/{lib-BamM40b7.js → lib-L3DWSRQp.js} +0 -0
- /package/dist/{pack-BcBvbQgt.d.ts → pack-Ciiho0Tq.d.ts} +0 -0
- /package/dist/{report-DbrfjWiP.js → report-DgSBQUdz.js} +0 -0
- /package/dist/{resolve-vite-config-C1KX9CZU.js → resolve-vite-config-TTvhycU1.js} +0 -0
- /package/dist/{terminal-CxTMfsxZ.js → terminal-uTv0ZaMr.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PackUserConfig } from "./pack-
|
|
1
|
+
import { t as PackUserConfig } from "./pack-Ciiho0Tq.js";
|
|
2
2
|
import { ConfigEnv } from "@voidzero-dev/vite-plus-test/config";
|
|
3
3
|
import { PluginOption, UserConfig } from "@voidzero-dev/vite-plus-core";
|
|
4
4
|
import { OxfmtConfig } from "oxfmt";
|
|
@@ -11,6 +11,7 @@ type AutoInput = {
|
|
|
11
11
|
*/
|
|
12
12
|
auto: boolean;
|
|
13
13
|
};
|
|
14
|
+
type Command = string | Array<string>;
|
|
14
15
|
type GlobWithBase = {
|
|
15
16
|
/**
|
|
16
17
|
* The glob pattern (positive or negative starting with `!`)
|
|
@@ -24,9 +25,9 @@ type GlobWithBase = {
|
|
|
24
25
|
type InputBase = "package" | "workspace";
|
|
25
26
|
type Task = {
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* Command to run, or an array of commands to run in order.
|
|
28
29
|
*/
|
|
29
|
-
command:
|
|
30
|
+
command: Command;
|
|
30
31
|
/**
|
|
31
32
|
* The working directory for the task, relative to the package root (not workspace root).
|
|
32
33
|
*/
|
|
@@ -74,6 +75,7 @@ type Task = {
|
|
|
74
75
|
*/
|
|
75
76
|
cache: false;
|
|
76
77
|
});
|
|
78
|
+
type TaskDefinition = Task | Command;
|
|
77
79
|
type UserGlobalCacheConfig = boolean | {
|
|
78
80
|
/**
|
|
79
81
|
* Enable caching for package.json scripts not defined in the `tasks` map.
|
|
@@ -104,9 +106,9 @@ type RunConfig = {
|
|
|
104
106
|
*/
|
|
105
107
|
cache?: UserGlobalCacheConfig;
|
|
106
108
|
/**
|
|
107
|
-
* Task definitions
|
|
109
|
+
* Task definitions: full task objects, command strings, or command string arrays.
|
|
108
110
|
*/
|
|
109
|
-
tasks?: { [key in string]:
|
|
111
|
+
tasks?: { [key in string]: TaskDefinition };
|
|
110
112
|
/**
|
|
111
113
|
* Whether to automatically run `preX`/`postX` package.json scripts as
|
|
112
114
|
* lifecycle hooks when script `X` is executed.
|
package/dist/define-config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_define_config = require("./define-config-
|
|
2
|
+
const require_define_config = require("./define-config-BR1Y88zz.cjs");
|
|
3
3
|
require_define_config.init_define_config();
|
|
4
4
|
exports.defineConfig = require_define_config.defineConfig;
|
|
5
5
|
exports.lazyPlugins = require_define_config.lazyPlugins;
|
package/dist/define-config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as lazyPlugins, t as defineConfig } from "./define-config-
|
|
1
|
+
import { n as lazyPlugins, t as defineConfig } from "./define-config-COdn-tsn.js";
|
|
2
2
|
export { defineConfig, lazyPlugins };
|
package/dist/define-config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as lazyPlugins, t as defineConfig } from "./define-config-
|
|
1
|
+
import { n as lazyPlugins, t as defineConfig } from "./define-config-BRC7qPNE.js";
|
|
2
2
|
export { defineConfig, lazyPlugins };
|