@vibeo/cli 0.4.3 → 0.4.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/commands/editor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/commands/editor.ts"],"names":[],"mappings":"AAAA,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6B5E"}
|
package/dist/commands/editor.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { bundleForEditor } from "@vibeo/renderer";
|
|
2
1
|
export async function startEditor(entry, port) {
|
|
3
2
|
console.log(`Starting editor server...`);
|
|
4
3
|
console.log(` Entry: ${entry}`);
|
|
4
|
+
// Import renderer and get bundleForEditor
|
|
5
|
+
const renderer = await import("@vibeo/renderer");
|
|
6
|
+
const bundleForEditor = renderer.bundleForEditor ?? renderer.default?.bundleForEditor;
|
|
7
|
+
if (typeof bundleForEditor !== "function") {
|
|
8
|
+
console.error("Error: @vibeo/renderer does not export bundleForEditor.");
|
|
9
|
+
console.error("Please update @vibeo/renderer: bun add @vibeo/renderer@latest");
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
5
12
|
const bundleResult = await bundleForEditor(entry, port);
|
|
6
13
|
console.log(`\n Editor running at ${bundleResult.url}`);
|
|
7
14
|
console.log(` Press Ctrl+C to stop\n`);
|
|
@@ -12,7 +19,6 @@ export async function startEditor(entry, port) {
|
|
|
12
19
|
};
|
|
13
20
|
process.on("SIGINT", shutdown);
|
|
14
21
|
process.on("SIGTERM", shutdown);
|
|
15
|
-
// Block forever
|
|
16
22
|
await new Promise(() => { });
|
|
17
23
|
}
|
|
18
24
|
//# sourceMappingURL=editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/commands/editor.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/commands/editor.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,KAAa,EAAE,IAAY;IAC3D,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,EAAE,CAAC,CAAC;IAEjC,0CAA0C;IAC1C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACjD,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,IAAI,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAEtF,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;QACzE,OAAO,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;QAC/E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAExD,OAAO,CAAC,GAAG,CAAC,yBAAyB,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IAExC,MAAM,QAAQ,GAAG,KAAK,IAAI,EAAE;QAC1B,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;QAChD,MAAM,YAAY,CAAC,OAAO,EAAE,CAAC;QAC7B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEhC,MAAM,IAAI,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibeo/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@vibeo/audio": "0.1.0",
|
|
18
18
|
"@vibeo/core": "0.1.0",
|
|
19
19
|
"@vibeo/player": "0.1.0",
|
|
20
|
-
"@vibeo/renderer": "0.
|
|
20
|
+
"@vibeo/renderer": "^0.2.0",
|
|
21
21
|
"incur": "^0.3.13"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
package/src/commands/editor.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import { bundleForEditor } from "@vibeo/renderer";
|
|
2
|
-
|
|
3
1
|
export async function startEditor(entry: string, port: number): Promise<void> {
|
|
4
2
|
console.log(`Starting editor server...`);
|
|
5
3
|
console.log(` Entry: ${entry}`);
|
|
6
4
|
|
|
5
|
+
// Import renderer and get bundleForEditor
|
|
6
|
+
const renderer = await import("@vibeo/renderer");
|
|
7
|
+
const bundleForEditor = renderer.bundleForEditor ?? renderer.default?.bundleForEditor;
|
|
8
|
+
|
|
9
|
+
if (typeof bundleForEditor !== "function") {
|
|
10
|
+
console.error("Error: @vibeo/renderer does not export bundleForEditor.");
|
|
11
|
+
console.error("Please update @vibeo/renderer: bun add @vibeo/renderer@latest");
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
|
|
7
15
|
const bundleResult = await bundleForEditor(entry, port);
|
|
8
16
|
|
|
9
17
|
console.log(`\n Editor running at ${bundleResult.url}`);
|
|
@@ -18,6 +26,5 @@ export async function startEditor(entry: string, port: number): Promise<void> {
|
|
|
18
26
|
process.on("SIGINT", shutdown);
|
|
19
27
|
process.on("SIGTERM", shutdown);
|
|
20
28
|
|
|
21
|
-
// Block forever
|
|
22
29
|
await new Promise(() => {});
|
|
23
30
|
}
|