Skip to content

Commit 5b4d2c9

Browse files
feat(tools): add/update deploy/publish scripts
1 parent 8ff902f commit 5b4d2c9

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

tools/deploy-docs.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { execFileSync } from "node:child_process";
22

33
for (let pkg of [
44
"core",
5+
"wasm",
56
"adapter-editart",
67
"adapter-fxhash",
78
"adapter-layer",

tools/publish.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { execFileSync } from "node:child_process";
2+
3+
for (let pkg of [
4+
"core",
5+
"wasm",
6+
"adapter-editart",
7+
"adapter-fxhash",
8+
"adapter-layer",
9+
"adapter-urlparams",
10+
"time-fps-overlay",
11+
]) {
12+
console.log("publishing pkg:", pkg);
13+
try {
14+
console.log(
15+
execFileSync("yarn", ["publish"], {
16+
cwd: `packages/${pkg}`,
17+
}).toString()
18+
);
19+
} catch (e) {
20+
console.log(e);
21+
}
22+
}

0 commit comments

Comments
 (0)