@vibeo/cli 0.3.1 → 0.3.3
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/bin/vibeo.mjs +18 -1
- package/dist/commands/create.js +1 -1
- package/package.json +1 -1
- package/src/commands/create.ts +1 -1
package/bin/vibeo.mjs
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Vibeo requires Bun APIs (Bun.build, Bun.serve). If we're running under
|
|
4
|
+
// Node (e.g. because npm/bun rewrote the shebang), re-exec under bun.
|
|
5
|
+
if (typeof globalThis.Bun === "undefined") {
|
|
6
|
+
const { execFileSync } = await import("node:child_process");
|
|
7
|
+
try {
|
|
8
|
+
execFileSync("bun", ["run", ...process.argv.slice(1)], {
|
|
9
|
+
stdio: "inherit",
|
|
10
|
+
env: process.env,
|
|
11
|
+
});
|
|
12
|
+
} catch (e) {
|
|
13
|
+
if (e && typeof e === "object" && "status" in e) process.exit(e.status);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
process.exit(0);
|
|
17
|
+
}
|
|
18
|
+
|
|
2
19
|
import "../dist/index.js";
|
package/dist/commands/create.js
CHANGED
|
@@ -241,7 +241,7 @@ export async function createProject(name, template) {
|
|
|
241
241
|
"@vibeo/extras": "^0.1.0",
|
|
242
242
|
"@vibeo/player": "^0.1.0",
|
|
243
243
|
"@vibeo/renderer": "^0.1.0",
|
|
244
|
-
"@vibeo/cli": "^0.
|
|
244
|
+
"@vibeo/cli": "^0.3.0",
|
|
245
245
|
react: "^19.0.0",
|
|
246
246
|
"react-dom": "^19.0.0",
|
|
247
247
|
},
|
package/package.json
CHANGED
package/src/commands/create.ts
CHANGED