add nodejs update scripts
This commit is contained in:
@@ -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(`--------------------------------`);
|
||||
}
|
||||
Reference in New Issue
Block a user