add nodejs update scripts

This commit is contained in:
Andrei Canta
2024-12-04 15:16:47 +02:00
parent e9a2778e17
commit 9c2502c8d8
10 changed files with 861 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { execa } from "execa";
import { glob } from "glob";
import path from "path";
const files = await glob("*/update.js", { absolute: true });
for (const file of files) {
console.log(`Executing ${file}`);
await execa("node", ["update.js"], {
stdio: "inherit",
cwd: path.dirname(file),
});
console.log(`--------------------------------`);
}