@elizaos/plugin-video 2.0.3-beta.6 → 2.0.3-beta.7
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/build.ts +19 -2
- package/package.json +3 -3
package/build.ts
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import {
|
|
2
|
+
import { spawnSync } from "node:child_process";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
3
4
|
import { $ } from "bun";
|
|
4
5
|
import { externalsFromPackageJson } from "../plugin-build-externals.ts";
|
|
5
6
|
|
|
7
|
+
const RM_RECURSIVE_SCRIPT = fileURLToPath(
|
|
8
|
+
new URL("../../packages/scripts/rm-path-recursive.mjs", import.meta.url),
|
|
9
|
+
);
|
|
10
|
+
|
|
6
11
|
const external = await externalsFromPackageJson("./package.json", {
|
|
7
12
|
extra: ["node:*", "bun:*"],
|
|
8
13
|
});
|
|
9
14
|
|
|
15
|
+
function rmRecursive(target: string) {
|
|
16
|
+
const result = spawnSync(process.execPath, [RM_RECURSIVE_SCRIPT, target], {
|
|
17
|
+
stdio: "inherit",
|
|
18
|
+
});
|
|
19
|
+
if (result.error) throw result.error;
|
|
20
|
+
if (result.status !== 0) {
|
|
21
|
+
throw new Error(
|
|
22
|
+
`rm-path-recursive failed for ${target} with status ${result.status}`,
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
10
27
|
console.log("🔨 Building @elizaos/plugin-video...");
|
|
11
28
|
const start = Date.now();
|
|
12
29
|
|
|
13
|
-
|
|
30
|
+
rmRecursive("dist");
|
|
14
31
|
|
|
15
32
|
const result = await Bun.build({
|
|
16
33
|
entrypoints: ["src/index.ts"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/plugin-video",
|
|
3
|
-
"version": "2.0.3-beta.
|
|
3
|
+
"version": "2.0.3-beta.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build.ts"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elizaos/core": "2.0.3-beta.
|
|
39
|
+
"@elizaos/core": "2.0.3-beta.7",
|
|
40
40
|
"ffmpeg-static": "^5.3.0",
|
|
41
41
|
"fluent-ffmpeg": "2.1.3",
|
|
42
42
|
"youtube-dl-exec": "^3.1.5"
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "61094f10458d11055c75b3dd0bae374e3f66bac5"
|
|
63
63
|
}
|