vibedgames 0.9.0 → 0.10.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/README.md +3 -2
- package/assets/align-framing.py +242 -0
- package/assets/render-model.py +406 -0
- package/assets/tilemap-editor.html +630 -0
- package/dist/THIRD_PARTY_NOTICES.txt +2 -2
- package/dist/{chunk-56OY4TEP.js → chunk-2SBBKY5C.js} +1361 -4493
- package/dist/{chunk-FC233UKH.js → chunk-2ZKS7V72.js} +16 -16
- package/dist/chunk-37LLKM73.js +124 -0
- package/dist/{chunk-BMTHAVMS.js → chunk-3HGBIUM5.js} +22 -19
- package/dist/chunk-3UGGMFJJ.js +22 -0
- package/dist/{chunk-3HUWAJQH.js → chunk-42K3BJJH.js} +93 -76
- package/dist/{chunk-ST5FC2W3.js → chunk-43P4U7CB.js} +20 -11
- package/dist/chunk-4RYTTD4D.js +53 -0
- package/dist/{chunk-WSRIF6K4.js → chunk-4UU622RK.js} +5 -4
- package/dist/chunk-52E6EKZV.js +72 -0
- package/dist/chunk-6IUFHPMV.js +62 -0
- package/dist/chunk-6KXXZXSO.js +475 -0
- package/dist/chunk-72KHWZMN.js +87 -0
- package/dist/{chunk-ZCYWDKYP.js → chunk-A556KALN.js} +14 -13
- package/dist/{chunk-UFR6G6BL.js → chunk-ABTUEIRC.js} +554 -254
- package/dist/chunk-ALPTHSUT.js +132 -0
- package/dist/{chunk-PEUP4MZR.js → chunk-AWJNAGPE.js} +6 -3
- package/dist/chunk-BJAN3RMY.js +48 -0
- package/dist/{chunk-HNRVSBRK.js → chunk-BN3Q7UEC.js} +20 -17
- package/dist/chunk-BZOMEG3X.js +412 -0
- package/dist/{chunk-ZYCSYJWX.js → chunk-COSLGSVO.js} +14 -24
- package/dist/{chunk-KZBZNTM4.js → chunk-CTY2WZQK.js} +9 -13
- package/dist/chunk-DH6WPL3X.js +47 -0
- package/dist/chunk-DPLFCKXP.js +80 -0
- package/dist/{chunk-K2U7L4RU.js → chunk-E3FJUPLT.js} +15 -21
- package/dist/chunk-E7NDOZ27.js +428 -0
- package/dist/{chunk-TBQ5BU3Q.js → chunk-F42QKWBB.js} +18 -18
- package/dist/chunk-F4J6XCHT.js +73 -0
- package/dist/chunk-FB3UDZAV.js +168 -0
- package/dist/chunk-FJXPMA63.js +48 -0
- package/dist/chunk-FNJL6Z5C.js +71 -0
- package/dist/chunk-G63MXDX2.js +45 -0
- package/dist/{chunk-VFFOT7KD.js → chunk-G66HRVDW.js} +1 -1
- package/dist/{chunk-AXTLPJ2F.js → chunk-H2C4QUTG.js} +8 -7
- package/dist/{chunk-H3IPLBXQ.js → chunk-HRKVAXNN.js} +17 -14
- package/dist/chunk-HSCTPDEU.js +126 -0
- package/dist/{chunk-UXCWSWWX.js → chunk-HSMG6U7J.js} +8 -7
- package/dist/chunk-I5LELJSK.js +22 -0
- package/dist/{chunk-7CXMMC5S.js → chunk-JN4WZCR7.js} +5 -4
- package/dist/{chunk-7QZSDU52.js → chunk-K36EOII3.js} +5 -4
- package/dist/chunk-KLFBAFXD.js +25 -0
- package/dist/{chunk-355VG7EO.js → chunk-LONQWRTR.js} +107 -77
- package/dist/{chunk-Z5TFZQ5U.js → chunk-LORGE2NB.js} +68 -62
- package/dist/{chunk-LY2GQ32S.js → chunk-MEAO33XW.js} +22 -20
- package/dist/{chunk-OD2MNYXD.js → chunk-MR5KIFI7.js} +23 -22
- package/dist/{chunk-2VUUMXAQ.js → chunk-N2UHAQXC.js} +18 -11
- package/dist/chunk-NG2X3SMF.js +91 -0
- package/dist/chunk-OFJIG4K3.js +6482 -0
- package/dist/chunk-P74GTK23.js +91 -0
- package/dist/chunk-PKM3JOKQ.js +62 -0
- package/dist/{chunk-NDHXM4PL.js → chunk-Q3XQPNF6.js} +12 -12
- package/dist/{chunk-RXHTGX7C.js → chunk-Q5NZNXJE.js} +6 -10
- package/dist/chunk-QEKVZ7BX.js +57 -0
- package/dist/chunk-QNWCBPVO.js +215 -0
- package/dist/{chunk-US6QZICZ.js → chunk-RPJR3S5S.js} +32 -18
- package/dist/chunk-RPSUFZAG.js +3307 -0
- package/dist/chunk-RRI23NK2.js +40 -0
- package/dist/{chunk-6EWHKL7Z.js → chunk-SXYQL4GK.js} +7 -6
- package/dist/{chunk-ZI6PKVXG.js → chunk-TMPBGXT4.js} +6 -5
- package/dist/{chunk-UZM6OSW5.js → chunk-UPHB5HWO.js} +15 -13
- package/dist/chunk-UTSSDFQL.js +64 -0
- package/dist/chunk-V5ADM3WC.js +741 -0
- package/dist/{chunk-25BAMW5X.js → chunk-VIEKOGKG.js} +18 -2
- package/dist/chunk-VUV5U4J5.js +117 -0
- package/dist/{chunk-LXS3NJYD.js → chunk-VZEJ2ZHE.js} +14 -15
- package/dist/chunk-W2QPNAZ3.js +58 -0
- package/dist/chunk-YLUB6252.js +45 -0
- package/dist/{chunk-Z4Z24FWO.js → chunk-YNCYMWER.js} +8 -5
- package/dist/chunk-YXOGRERG.js +91 -0
- package/dist/index.js +39 -36
- package/package.json +31 -16
- package/templates/none/src/main.ts +4 -0
- package/templates/none/vite.config.ts +0 -2
- package/templates/phaser/src/main.ts +0 -1
- package/templates/phaser/src/scenes/game-scene.ts +10 -8
- package/templates/phaser/vite.config.ts +0 -2
- package/templates/react-r3f/src/app.tsx +3 -1
- package/templates/react-r3f/src/main.tsx +1 -0
- package/templates/react-r3f/vite.config.ts +0 -2
- package/templates/threejs/src/main.ts +10 -1
- package/templates/threejs/vite.config.ts +0 -2
- package/LICENSE +0 -21
- package/dist/chunk-J6PKNPI2.js +0 -26
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module";
|
|
2
|
+
import { dirname as __pathDirname } from "node:path";
|
|
3
|
+
import { fileURLToPath as __fileURLToPath } from "node:url";
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
rawTool,
|
|
9
|
+
runRawTool
|
|
10
|
+
} from "./chunk-G63MXDX2.js";
|
|
11
|
+
import {
|
|
12
|
+
defineCommand
|
|
13
|
+
} from "./chunk-MBXCVCC4.js";
|
|
14
|
+
import "./chunk-D2RF35HJ.js";
|
|
15
|
+
import "./chunk-GKDUYJ7R.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/asset.ts
|
|
18
|
+
var ASSET_TOOLS = {
|
|
19
|
+
"align-framing": {
|
|
20
|
+
description: "Crop or align a reference image to a render's framing (needs uv).",
|
|
21
|
+
load: rawTool(async () => await import("./chunk-3UGGMFJJ.js"))
|
|
22
|
+
},
|
|
23
|
+
"aseprite-inspect": {
|
|
24
|
+
description: "Parse an .aseprite file into JSON: frames, layers, tags, optional cel decode.",
|
|
25
|
+
load: rawTool(async () => await import("./chunk-FNJL6Z5C.js"))
|
|
26
|
+
},
|
|
27
|
+
"build-sequence-gif": {
|
|
28
|
+
description: "Assemble ordered frames into an animated GIF preview.",
|
|
29
|
+
load: rawTool(async () => await import("./chunk-F4J6XCHT.js"))
|
|
30
|
+
},
|
|
31
|
+
"chroma-clean": {
|
|
32
|
+
description: "Key out a chroma background, trim fringe and despill.",
|
|
33
|
+
load: rawTool(async () => await import("./chunk-QNWCBPVO.js"))
|
|
34
|
+
},
|
|
35
|
+
"image-util": {
|
|
36
|
+
description: "Report PNG sizes, nearest-neighbour upscale, or Lanczos resize.",
|
|
37
|
+
load: rawTool(async () => await import("./chunk-NG2X3SMF.js"))
|
|
38
|
+
},
|
|
39
|
+
"manifest-check": {
|
|
40
|
+
description: "Check an asset manifest against the files on disk.",
|
|
41
|
+
load: rawTool(async () => await import("./chunk-PKM3JOKQ.js"))
|
|
42
|
+
},
|
|
43
|
+
"manifest-export-json": {
|
|
44
|
+
description: "Convert an assets_index.lua manifest to JSON.",
|
|
45
|
+
load: rawTool(async () => await import("./chunk-YLUB6252.js"))
|
|
46
|
+
},
|
|
47
|
+
"normalize-canvas": {
|
|
48
|
+
description: "Pad frames to one canvas size with a shared baseline.",
|
|
49
|
+
load: rawTool(async () => await import("./chunk-52E6EKZV.js"))
|
|
50
|
+
},
|
|
51
|
+
"normalize-factory": {
|
|
52
|
+
description: "Strip generator metadata from image-to-threejs factory output.",
|
|
53
|
+
load: rawTool(async () => await import("./chunk-72KHWZMN.js"))
|
|
54
|
+
},
|
|
55
|
+
"pack-spritesheet": {
|
|
56
|
+
description: "Pack a folder of frames into a spritesheet plus JSON.",
|
|
57
|
+
load: rawTool(async () => await import("./chunk-DH6WPL3X.js"))
|
|
58
|
+
},
|
|
59
|
+
"pixel-snapper": {
|
|
60
|
+
description: "Snap a generated image onto a true pixel grid with a reduced palette.",
|
|
61
|
+
load: rawTool(async () => await import("./chunk-4RYTTD4D.js"))
|
|
62
|
+
},
|
|
63
|
+
"pixel-snapper-sheet": {
|
|
64
|
+
description: "Pixel-snap each cell of a known-layout spritesheet.",
|
|
65
|
+
load: rawTool(async () => await import("./chunk-QEKVZ7BX.js"))
|
|
66
|
+
},
|
|
67
|
+
"process-sheet": {
|
|
68
|
+
description: "Turn a generated pose board into clean, aligned animation frames.",
|
|
69
|
+
load: rawTool(async () => await import("./chunk-37LLKM73.js"))
|
|
70
|
+
},
|
|
71
|
+
"recover-component-frames": {
|
|
72
|
+
description: "Recover frames from a pose board by connected components.",
|
|
73
|
+
load: rawTool(async () => await import("./chunk-UTSSDFQL.js"))
|
|
74
|
+
},
|
|
75
|
+
"ref-sxs": {
|
|
76
|
+
description: "Put a reference shot beside a capture, plus a blurred twin.",
|
|
77
|
+
load: rawTool(async () => await import("./chunk-YXOGRERG.js"))
|
|
78
|
+
},
|
|
79
|
+
"render-model": {
|
|
80
|
+
description: "Render a three.js factory from fixed cameras for review (needs uv).",
|
|
81
|
+
load: rawTool(async () => await import("./chunk-I5LELJSK.js"))
|
|
82
|
+
},
|
|
83
|
+
"sheet-probe": {
|
|
84
|
+
description: "Probe a spritesheet or folder for frame grid and empty cells.",
|
|
85
|
+
load: rawTool(async () => await import("./chunk-W2QPNAZ3.js"))
|
|
86
|
+
},
|
|
87
|
+
"sheet-qc": {
|
|
88
|
+
description: "Quality-check a spritesheet: frame drift, clipping, jitter.",
|
|
89
|
+
load: rawTool(async () => await import("./chunk-6IUFHPMV.js"))
|
|
90
|
+
},
|
|
91
|
+
"size-contract": {
|
|
92
|
+
description: "Derive, audit or prompt for a sprite size contract.",
|
|
93
|
+
load: rawTool(async () => await import("./chunk-HSCTPDEU.js"))
|
|
94
|
+
},
|
|
95
|
+
sizes: {
|
|
96
|
+
description: "List every image's dimensions under a folder (CSV/JSON).",
|
|
97
|
+
load: rawTool(async () => await import("./chunk-FJXPMA63.js"))
|
|
98
|
+
},
|
|
99
|
+
"sprite-baseline": {
|
|
100
|
+
description: "Measure or fix sprites' feet baseline and centre.",
|
|
101
|
+
load: rawTool(async () => await import("./chunk-DPLFCKXP.js"))
|
|
102
|
+
},
|
|
103
|
+
"sprite-presets": {
|
|
104
|
+
description: "List animation presets: frames, timing and poses per action.",
|
|
105
|
+
load: rawTool(async () => await import("./chunk-P74GTK23.js"))
|
|
106
|
+
},
|
|
107
|
+
"sprite-prompt": {
|
|
108
|
+
description: "Write the generation prompt for a sprite anchor or pose board.",
|
|
109
|
+
load: rawTool(async () => await import("./chunk-VUV5U4J5.js"))
|
|
110
|
+
},
|
|
111
|
+
"tilemap-editor": {
|
|
112
|
+
description: "Edit a tilemap in the browser, or export tileset grids and map renders.",
|
|
113
|
+
load: rawTool(async () => await import("./chunk-FB3UDZAV.js"))
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var runAsset = async (argv) => {
|
|
117
|
+
await runRawTool("asset", ASSET_TOOLS, argv);
|
|
118
|
+
};
|
|
119
|
+
var assetCommand = defineCommand({
|
|
120
|
+
meta: {
|
|
121
|
+
description: "Local image, sprite and tilemap tools the skills run (`vg asset --help` lists them). All arguments pass through to the tool.",
|
|
122
|
+
name: "asset"
|
|
123
|
+
},
|
|
124
|
+
run: async ({ rawArgs }) => {
|
|
125
|
+
await runAsset(rawArgs);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
export {
|
|
129
|
+
ASSET_TOOLS,
|
|
130
|
+
assetCommand,
|
|
131
|
+
runAsset
|
|
132
|
+
};
|
|
@@ -9,14 +9,13 @@ var __dirname = __pathDirname(__filename);
|
|
|
9
9
|
var PKG_NAME = "vibedgames";
|
|
10
10
|
var SIGNATURES = [
|
|
11
11
|
["bun", /[/\\]\.bun[/\\]/u],
|
|
12
|
-
// pnpm's global store, not a project-local `node_modules/.pnpm`.
|
|
13
12
|
["pnpm", /[/\\](?:pnpm[/\\]global|\.pnpm-global|Library[/\\]pnpm)[/\\]/u],
|
|
14
13
|
["yarn", /[/\\](?:\.yarn|yarn[/\\]global|\.config[/\\]yarn)[/\\]/u],
|
|
15
14
|
["npm", /[/\\]lib[/\\]node_modules[/\\]/u],
|
|
16
15
|
["npm", /[/\\]npm[/\\]node_modules[/\\]/u]
|
|
17
16
|
];
|
|
18
17
|
var fromUserAgent = (userAgent) => {
|
|
19
|
-
if (
|
|
18
|
+
if (userAgent === void 0 || userAgent === "") {
|
|
20
19
|
return null;
|
|
21
20
|
}
|
|
22
21
|
const [name] = userAgent.split("/");
|
|
@@ -44,9 +43,13 @@ var globalInstallArgs = (manager, pkg = PKG_NAME) => {
|
|
|
44
43
|
case "bun": {
|
|
45
44
|
return ["add", "-g", pkg];
|
|
46
45
|
}
|
|
47
|
-
|
|
46
|
+
case "npm": {
|
|
48
47
|
return ["install", "-g", pkg];
|
|
49
48
|
}
|
|
49
|
+
default: {
|
|
50
|
+
const exhaustive = manager;
|
|
51
|
+
throw new Error(`Unknown package manager: ${String(exhaustive)}`);
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
};
|
|
52
55
|
var globalInstallCommand = (manager, pkg = PKG_NAME) => `${manager} ${globalInstallArgs(manager, pkg).join(" ")}`;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module";
|
|
2
|
+
import { dirname as __pathDirname } from "node:path";
|
|
3
|
+
import { fileURLToPath as __fileURLToPath } from "node:url";
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
rawTool,
|
|
9
|
+
runRawTool
|
|
10
|
+
} from "./chunk-G63MXDX2.js";
|
|
11
|
+
import {
|
|
12
|
+
defineCommand
|
|
13
|
+
} from "./chunk-MBXCVCC4.js";
|
|
14
|
+
import "./chunk-D2RF35HJ.js";
|
|
15
|
+
import "./chunk-GKDUYJ7R.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/check.ts
|
|
18
|
+
var CHECK_TOOLS = {
|
|
19
|
+
canvas: {
|
|
20
|
+
description: "Fail on a blank canvas or uncaught page error (needs playwright in the project).",
|
|
21
|
+
load: rawTool(async () => await import("./chunk-6KXXZXSO.js"))
|
|
22
|
+
},
|
|
23
|
+
net: {
|
|
24
|
+
description: "Measure multiplayer smoothness across simulated clients (needs playwright in the project).",
|
|
25
|
+
load: rawTool(async () => await import("./chunk-BZOMEG3X.js"))
|
|
26
|
+
},
|
|
27
|
+
"scripted-playtest": {
|
|
28
|
+
description: "Drive a fixed input sweep through vg playtest and report progression.",
|
|
29
|
+
load: rawTool(async () => await import("./chunk-V5ADM3WC.js"))
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var runCheck = async (argv) => {
|
|
33
|
+
await runRawTool("check", CHECK_TOOLS, argv);
|
|
34
|
+
};
|
|
35
|
+
var checkCommand = defineCommand({
|
|
36
|
+
meta: {
|
|
37
|
+
description: "Headless checks for a build: canvas, net, scripted-playtest (`vg check --help` lists them). All arguments pass through to the check.",
|
|
38
|
+
name: "check"
|
|
39
|
+
},
|
|
40
|
+
run: async ({ rawArgs }) => {
|
|
41
|
+
await runCheck(rawArgs);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
CHECK_TOOLS,
|
|
46
|
+
checkCommand,
|
|
47
|
+
runCheck
|
|
48
|
+
};
|
|
@@ -6,27 +6,29 @@ var __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
So
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
PACKAGE_ROOT
|
|
12
|
-
} from "./chunk-Z4Z24FWO.js";
|
|
13
|
-
import "./chunk-PEUP4MZR.js";
|
|
9
|
+
} from "./chunk-G66HRVDW.js";
|
|
14
10
|
import {
|
|
15
11
|
SLUG_RE
|
|
16
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TMPBGXT4.js";
|
|
17
13
|
import {
|
|
18
14
|
assertKnownFlags
|
|
19
15
|
} from "./chunk-RZ4DIJQW.js";
|
|
16
|
+
import {
|
|
17
|
+
defineCommand
|
|
18
|
+
} from "./chunk-MBXCVCC4.js";
|
|
20
19
|
import {
|
|
21
20
|
consola
|
|
22
21
|
} from "./chunk-D2RF35HJ.js";
|
|
23
22
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
PACKAGE_ROOT
|
|
24
|
+
} from "./chunk-YNCYMWER.js";
|
|
25
|
+
import "./chunk-AWJNAGPE.js";
|
|
27
26
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
isJsonObject,
|
|
28
|
+
isJsonString,
|
|
29
|
+
parseJson
|
|
30
|
+
} from "./chunk-RPSUFZAG.js";
|
|
31
|
+
import "./chunk-2SBBKY5C.js";
|
|
30
32
|
import "./chunk-GKDUYJ7R.js";
|
|
31
33
|
|
|
32
34
|
// src/commands/new.ts
|
|
@@ -58,12 +60,12 @@ var parseTemplateSpec = (spec) => {
|
|
|
58
60
|
return { owner, ref, repo, subdir: subdir.join("/") };
|
|
59
61
|
};
|
|
60
62
|
var templateTarballUrl = ({ owner, repo, ref }) => `https://codeload.github.com/${owner}/${repo}/tar.gz/${ref.split("/").map(encodeURIComponent).join("/")}`;
|
|
61
|
-
var fetchTemplate = async (template, target, force
|
|
63
|
+
var fetchTemplate = async (template, target, force) => {
|
|
62
64
|
if (!force && readdirSync(target).length > 0) {
|
|
63
65
|
throw new Error(`${target} is not empty. Pass --force to scaffold into it anyway.`);
|
|
64
66
|
}
|
|
65
67
|
const url = templateTarballUrl(template);
|
|
66
|
-
const res = await
|
|
68
|
+
const res = await fetch(url, { signal: AbortSignal.timeout(12e4) });
|
|
67
69
|
if (res.status === 404) {
|
|
68
70
|
throw new Error(
|
|
69
71
|
`GitHub has no ${template.owner}/${template.repo} at ${template.ref} (or the repo is private).`
|
|
@@ -243,7 +245,7 @@ var ensureTypecheckScript = (target) => {
|
|
|
243
245
|
return;
|
|
244
246
|
}
|
|
245
247
|
try {
|
|
246
|
-
const pkg =
|
|
248
|
+
const pkg = parseJson(readFileSync2(pkgPath, "utf-8"));
|
|
247
249
|
if (!isJsonObject(pkg)) {
|
|
248
250
|
return;
|
|
249
251
|
}
|
|
@@ -255,7 +257,8 @@ var ensureTypecheckScript = (target) => {
|
|
|
255
257
|
pkg.scripts = scripts;
|
|
256
258
|
writeFileSync2(pkgPath, `${JSON.stringify(pkg, null, 2)}
|
|
257
259
|
`);
|
|
258
|
-
} catch {
|
|
260
|
+
} catch (error) {
|
|
261
|
+
consola.warn(`Left package.json without a typecheck script: ${String(error)}`);
|
|
259
262
|
}
|
|
260
263
|
};
|
|
261
264
|
var rewritePackageName = (target, slug) => {
|
|
@@ -265,7 +268,7 @@ var rewritePackageName = (target, slug) => {
|
|
|
265
268
|
}
|
|
266
269
|
try {
|
|
267
270
|
const raw = readFileSync2(pkgPath, "utf-8");
|
|
268
|
-
const pkg =
|
|
271
|
+
const pkg = parseJson(raw);
|
|
269
272
|
if (!isJsonObject(pkg)) {
|
|
270
273
|
throw new Error("package.json is not a JSON object");
|
|
271
274
|
}
|
|
@@ -335,7 +338,7 @@ var newCommand = defineCommand({
|
|
|
335
338
|
}
|
|
336
339
|
let template;
|
|
337
340
|
try {
|
|
338
|
-
template = args.template ? parseTemplateSpec(args.template) : void 0;
|
|
341
|
+
template = args.template !== void 0 && args.template !== "" ? parseTemplateSpec(args.template) : void 0;
|
|
339
342
|
} catch (error) {
|
|
340
343
|
consola.error(error instanceof Error ? error.message : String(error));
|
|
341
344
|
process.exit(1);
|