Skip to content

Commit

Permalink
feat(tools): add/update deploy/publish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 10, 2025
1 parent 8ff902f commit 5b4d2c9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/deploy-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { execFileSync } from "node:child_process";

for (let pkg of [
"core",
"wasm",
"adapter-editart",
"adapter-fxhash",
"adapter-layer",
Expand Down
22 changes: 22 additions & 0 deletions tools/publish.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { execFileSync } from "node:child_process";

for (let pkg of [
"core",
"wasm",
"adapter-editart",
"adapter-fxhash",
"adapter-layer",
"adapter-urlparams",
"time-fps-overlay",
]) {
console.log("publishing pkg:", pkg);
try {
console.log(
execFileSync("yarn", ["publish"], {
cwd: `packages/${pkg}`,
}).toString()
);
} catch (e) {
console.log(e);
}
}

0 comments on commit 5b4d2c9

Please sign in to comment.