vize 0.717.0 → 0.719.0
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/dist/cli.mjs +3 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-DGQbYEUm.d.mts → config-BaSFJWUp.d.mts} +5 -1
- package/dist/{config-DGQbYEUm.d.mts.map → config-BaSFJWUp.d.mts.map} +1 -1
- package/dist/{config-b4e9G6N2.mjs → config-DP9TSlv2.mjs} +5 -1
- package/dist/{config-b4e9G6N2.mjs.map → config-DP9TSlv2.mjs.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/generated/content-mapper-types.d.ts +34 -9
- package/package.json +8 -4
- package/src/config.ts +4 -0
- package/src/corsa-runtime.ts +3 -0
- package/src/init.ts +8 -0
- package/src/setup.ts +8 -0
- package/src/types/rules.ts +1 -1
- package/virtual-ts-checker-strict.d.ts +23 -0
- package/virtual-ts-checker.d.ts +1 -15
- package/virtual-ts-emit-overloads.d.ts +49 -9
- package/virtual-ts-globals.d.ts +33 -9
- package/virtual-ts.d.cts +1 -11
- package/virtual-ts.d.mts +1 -11
- package/virtual-ts.d.ts +1 -11
package/dist/cli.mjs
CHANGED
|
@@ -1745,6 +1745,7 @@ async function initProject(options) {
|
|
|
1745
1745
|
if (selection.editor) output(renderEditors());
|
|
1746
1746
|
return plan;
|
|
1747
1747
|
}
|
|
1748
|
+
/** Runs the `init` command and maps refusal or blocked features to a failing exit code. */
|
|
1748
1749
|
async function runInitCli(args) {
|
|
1749
1750
|
if (parseInitArgs(args).help) {
|
|
1750
1751
|
process.stdout.write(initHelp());
|
|
@@ -1909,6 +1910,7 @@ function escapeRegExp(value) {
|
|
|
1909
1910
|
}
|
|
1910
1911
|
//#endregion
|
|
1911
1912
|
//#region src/setup.ts
|
|
1913
|
+
/** Configures Vize in an existing Vite or Vite+ project. */
|
|
1912
1914
|
function setupProject(options) {
|
|
1913
1915
|
const root = path.resolve(options.root);
|
|
1914
1916
|
const packagePath = path.join(root, "package.json");
|
|
@@ -1977,6 +1979,7 @@ function setupProject(options) {
|
|
|
1977
1979
|
removeCommand
|
|
1978
1980
|
};
|
|
1979
1981
|
}
|
|
1982
|
+
/** Runs the `setup` command against parsed CLI arguments. */
|
|
1980
1983
|
function runSetupCli(args) {
|
|
1981
1984
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1982
1985
|
process.stdout.write(setupHelp());
|