@vttforge/cli 0.16.0 → 0.17.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.
- package/CHANGELOG.md +40 -0
- package/README.md +1 -1
- package/dist/bin.mjs +75 -6
- package/dist/bin.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-DK2hXzBk.mjs → src-wuBV0ItE.mjs} +8 -4
- package/dist/{src-DK2hXzBk.mjs.map → src-wuBV0ItE.mjs.map} +1 -1
- package/package.json +1 -1
- package/templates/module-js/package.json +1 -1
- package/templates/module-ts/package.json +1 -1
- package/templates/system-js/package.json +1 -1
- package/templates/system-ts/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as runManifestRules, _ as SEVERITY_RANK, a as runDev, c as emitZip, d as formatReport, f as runAudit, i as runInit, l as readManifest, n as runLintCommand, o as emitReleaseZip, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, y as runSourceRules } from "./src-
|
|
1
|
+
import { S as runManifestRules, _ as SEVERITY_RANK, a as runDev, c as emitZip, d as formatReport, f as runAudit, i as runInit, l as readManifest, n as runLintCommand, o as emitReleaseZip, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, y as runSourceRules } from "./src-wuBV0ItE.mjs";
|
|
2
2
|
export { SEVERITY_RANK, ScaffoldError, VTTFORGE_CLI_VERSION, emitReleaseZip, emitZip, formatReport, readManifest, runAudit, runAuditCommand, runBuild, runDev, runInit, runLintCommand, runManifestRules, runSourceRules };
|
|
@@ -11,7 +11,7 @@ import { createServer } from "node:http";
|
|
|
11
11
|
import { homedir } from "node:os";
|
|
12
12
|
import { promisify } from "node:util";
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.
|
|
14
|
+
var version = "0.17.1";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/audit/manifest-rules.ts
|
|
17
17
|
/**
|
|
@@ -3463,8 +3463,10 @@ async function runInit(options = {}) {
|
|
|
3463
3463
|
} else if (!PACKAGE_ID_RE.test(name)) bail(`Invalid name "${name}": use only lowercase letters, digits, and dashes (no spaces, slashes, dots).`);
|
|
3464
3464
|
const dest = resolve(cwd, name);
|
|
3465
3465
|
if (existsSync(dest)) bail(`Directory already exists: ${dest}`);
|
|
3466
|
+
const requestedType = options.type;
|
|
3467
|
+
if (requestedType !== void 0 && requestedType !== "system" && requestedType !== "module") bail(`--type expects \`system\` or \`module\`, got \`${requestedType}\`.`);
|
|
3466
3468
|
let type = options.type;
|
|
3467
|
-
if (type
|
|
3469
|
+
if (type === void 0 && !interactive) type = "system";
|
|
3468
3470
|
if (type !== "system" && type !== "module") {
|
|
3469
3471
|
const answer = await p.select({
|
|
3470
3472
|
message: "What are you building?",
|
|
@@ -3480,8 +3482,10 @@ async function runInit(options = {}) {
|
|
|
3480
3482
|
if (isCancelled(answer)) bail("Scaffold cancelled.");
|
|
3481
3483
|
type = answer;
|
|
3482
3484
|
}
|
|
3485
|
+
const requestedLang = options.lang;
|
|
3486
|
+
if (requestedLang !== void 0 && requestedLang !== "ts" && requestedLang !== "js") bail(`--lang expects \`ts\` or \`js\`, got \`${requestedLang}\`.`);
|
|
3483
3487
|
let lang = options.lang;
|
|
3484
|
-
if (lang
|
|
3488
|
+
if (lang === void 0 && !interactive) lang = "ts";
|
|
3485
3489
|
if (lang !== "ts" && lang !== "js") {
|
|
3486
3490
|
const answer = await p.select({
|
|
3487
3491
|
message: "Language",
|
|
@@ -3773,4 +3777,4 @@ const VTTFORGE_CLI_VERSION = version;
|
|
|
3773
3777
|
//#endregion
|
|
3774
3778
|
export { runManifestRules as S, SEVERITY_RANK as _, runDev as a, maskComments as b, emitZip as c, formatReport as d, runAudit as f, definesName as g, bareUsePattern as h, runInit as i, readManifest as l, LEGACY_GLOBALS as m, runLintCommand as n, emitReleaseZip as o, REMOVED_UTILS as p, ScaffoldError as r, runBuild as s, VTTFORGE_CLI_VERSION as t, runAuditCommand as u, _internal as v, runReleaseRules as x, runSourceRules as y };
|
|
3775
3779
|
|
|
3776
|
-
//# sourceMappingURL=src-
|
|
3780
|
+
//# sourceMappingURL=src-wuBV0ItE.mjs.map
|