Skip to content

🎥 Make videos programmatically with React

hmm yeah

JonnyBurger48e7bf92a2c2
diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json
index dce8aa3e13..6d0b66598c 100644
--- a/packages/eslint-plugin/package.json
+++ b/packages/eslint-plugin/package.json
@@ -6,7 +6,7 @@
"version": "4.0.372",
"description": "Rules for writing Remotion code",
"scripts": {
- "test": "vitest --run",
+ "test": "node src/tests/execute.mjs",
"make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
},
"main": "dist/index.js",
diff --git a/packages/eslint-plugin/src/tests/execute.mjs b/packages/eslint-plugin/src/tests/execute.mjs
new file mode 100644
index 0000000000..e246cd3960
--- /dev/null
+++ b/packages/eslint-plugin/src/tests/execute.mjs
@@ -0,0 +1,12 @@
+import {execSync} from 'child_process';
+
+const [maj] = process.versions.node.split('.').map(Number);
+
+if (maj < 18) {
+ console.log('Node version is less than 18, skipping');
+ process.exit(0);
+}
+
+execSync('bunx vitest --run', {
+ stdio: 'inherit',
+});