Skip to content

🎥 Make videos programmatically with React

remove lambda version script

Jonny Burgercac89ef5e94a
diff --git a/packages/lambda/ensure-version-match.js b/packages/lambda/ensure-version-match.js
deleted file mode 100644
index 20841fc1df..0000000000
--- a/packages/lambda/ensure-version-match.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const cp = require('node:child_process');
-const fs = require('node:fs');
-
-cp.execSync('unzip -o remotionlambda.zip -d extracted');
-const contents = fs.readFileSync('extracted/index.js', 'utf-8');
-fs.rmSync('extracted', {recursive: true});
-const [, inLambda] = contents.match(/CURRENT_VERSION = "(.*)"/);
-
-const inConstants = fs.readFileSync('dist/shared/constants.js', 'utf-8');
-const [, inPkg] = inConstants.match(/CURRENT_VERSION = '(.*)'/);
-
-if (inLambda !== inPkg) {
- console.error(
- `Version in Lambda is ${inLambda}, and in package ${inPkg}. Align the versions.`
- );
- process.exit(1);
-}
-
-console.log(`Lambda version ${inLambda} aligns.`);
diff --git a/packages/lambda/package.json b/packages/lambda/package.json
index c1e840ab06..444f19ccb1 100644
--- a/packages/lambda/package.json
+++ b/packages/lambda/package.json
@@ -9,7 +9,6 @@
},
"module": "true",
"scripts": {
- "prepublish": "node ensure-version-match.js",
"testintegration": "jest src/test/integration --runInBand",
"lint": "eslint src --ext ts,tsx",
"test": "jest src/test/unit",