Skip to content

🎥 Make videos programmatically with React

Update build.mjs

Jonny Burger85b5720bd23c
diff --git a/packages/astro-example/build.mjs b/packages/astro-example/build.mjs
index 7d7ce6f885..8e5691bdf3 100644
--- a/packages/astro-example/build.mjs
+++ b/packages/astro-example/build.mjs
@@ -1,20 +1,20 @@
-import { execSync } from "child_process";
+import {execSync} from 'child_process';
-const nodeVersion = execSync("node -v");
+const nodeVersion = execSync('node -v');
const str = nodeVersion.toString().trim();
const version = str.match(/v([0-9]+)./);
if (!version) {
- console.log("Node not installed, skipping");
- process.exit(0);
+ console.log('Node not installed, skipping');
+ process.exit(0);
}
const majorVersion = parseInt(version[1], 10);
-if (majorVersion < 16) {
- console.log("Astro does not support this version, skipping build.");
- process.exit(0);
+if (majorVersion < 18) {
+ console.log('Astro does not support this version, skipping build.');
+ process.exit(0);
}
-execSync("bun x astro build", {
- stdio: "inherit",
+execSync('bun x astro build', {
+ stdio: 'inherit',
});