🎥 Make videos programmatically with React
v4.0.305
Jonny Burger0d8b014291d8
diff --git a/packages/lambda-go/publish.mjs b/packages/lambda-go/publish.mjsindex cbdec408ea..51c91a5311 100644--- a/packages/lambda-go/publish.mjs+++ b/packages/lambda-go/publish.mjs@@ -1,69 +1,72 @@-import { VERSION } from "remotion/version";-import { execSync } from "node:child_process";+import {execSync} from 'node:child_process';import {- copyFileSync,- mkdirSync,- cpSync,- existsSync,- rmSync,- writeFileSync,- readdirSync,-} from "node:fs";-import { tmpdir } from "node:os";-import path from "node:path";+ copyFileSync,+ existsSync,+ mkdirSync,+ readdirSync,+ rmSync,+ writeFileSync,+} from 'node:fs';+import {tmpdir} from 'node:os';+import path from 'node:path';+import {VERSION} from 'remotion/version';const tmpDir = tmpdir();const workingDir = path.join(tmpDir, `lambda_go_sdk_${Math.random()}`);if (existsSync(workingDir)) {- rmSync(workingDir, { recursive: true });+ rmSync(workingDir, {recursive: true});}mkdirSync(workingDir);console.log(tmpDir);execSync(- `git clone [email protected]:remotion-dev/lambda_go_sdk.git ${workingDir}`,- {- cwd: tmpDir,- }+ `git clone [email protected]:remotion-dev/lambda_go_sdk.git ${workingDir}`,+ {+ cwd: tmpDir,+ },);const filesInWorkingDir = readdirSync(workingDir);for (const file of filesInWorkingDir) {- if (file !== ".git") {- rmSync(path.join(workingDir, file), { recursive: true });- }+ if (file !== '.git') {+ rmSync(path.join(workingDir, file), {recursive: true});+ }}-const dir = readdirSync(".");+const dir = readdirSync('.');for (const file of dir) {- if (file.endsWith(".go") && !file.endsWith("_test.go")) {- copyFileSync(file, path.join(workingDir, file));- }+ if (file.endsWith('.go') && !file.endsWith('_test.go')) {+ copyFileSync(file, path.join(workingDir, file));+ }}-copyFileSync("go.mod", path.join(workingDir, "go.mod"));-copyFileSync("go.sum", path.join(workingDir, "go.sum"));+copyFileSync('go.mod', path.join(workingDir, 'go.mod'));+copyFileSync('go.sum', path.join(workingDir, 'go.sum'));writeFileSync(- path.join(workingDir, "README.md"),- [- "# Remotion Lambda Go SDK",- "This repository exists because the Go SDK must be in a separate repository.",- "The actual source code is located in the [Remotion repository](https://remotion.dev/github).",- "This repository is automatically updated when a new version of Remotion is released.",- "Do not open issues or pull requests here.",- "",- "## Installation",- "Visit https://www.remotion.dev/docs/lambda/go to learn how to install the Remotion Lambda Go SDK.",- ].join("\n")+ path.join(workingDir, 'README.md'),+ [+ '# Remotion Lambda Go SDK',+ 'This repository exists because the Go SDK must be in a separate repository.',+ 'The actual source code is located in the [Remotion repository](https://remotion.dev/github).',+ 'This repository is automatically updated when a new version of Remotion is released.',+ 'Do not open issues or pull requests here.',+ '',+ '## Installation',+ 'Visit https://www.remotion.dev/docs/lambda/go to learn how to install the Remotion Lambda Go SDK.',+ ].join('\n'),);-execSync("git add .", { cwd: workingDir, stdio: "inherit" });+execSync('git add .', {cwd: workingDir, stdio: 'inherit'});execSync(`git commit --allow-empty -m 'Release ${VERSION}'`, {- cwd: workingDir,- stdio: "inherit",+ cwd: workingDir,+ stdio: 'inherit',});-execSync(`git tag ${VERSION}`, { cwd: workingDir, stdio: "inherit" });-execSync("git push", { cwd: workingDir, stdio: "inherit" });-execSync(`git push origin ${VERSION}`, { cwd: workingDir, stdio: "inherit" });-execSync("git push --tags", { cwd: workingDir, stdio: "inherit" });+execSync(`git tag -d ${VERSION} 2>/dev/null || true`, {+ cwd: workingDir,+ stdio: 'inherit',+});+execSync(`git tag ${VERSION}`, {cwd: workingDir, stdio: 'inherit'});+execSync('git push', {cwd: workingDir, stdio: 'inherit'});+execSync(`git push origin ${VERSION}`, {cwd: workingDir, stdio: 'inherit'});+execSync('git push --tags', {cwd: workingDir, stdio: 'inherit'});diff --git a/packages/lambda-php/publish.mjs b/packages/lambda-php/publish.mjsindex 17c54a3108..e9a582f4fd 100644--- a/packages/lambda-php/publish.mjs+++ b/packages/lambda-php/publish.mjs@@ -1,54 +1,58 @@-import { VERSION } from "remotion/version";-import { execSync } from "node:child_process";+import {execSync} from 'node:child_process';import {- copyFileSync,- mkdirSync,- cpSync,- existsSync,- rmSync,- writeFileSync,-} from "node:fs";-import { tmpdir } from "node:os";-import path from "node:path";+ copyFileSync,+ cpSync,+ existsSync,+ mkdirSync,+ rmSync,+ writeFileSync,+} from 'node:fs';+import {tmpdir} from 'node:os';+import path from 'node:path';+import {VERSION} from 'remotion/version';const tmpDir = tmpdir();const workingDir = path.join(tmpDir, `lambda-php-sdk-${Math.random()}`);if (existsSync(workingDir)) {- rmSync(workingDir, { recursive: true });+ rmSync(workingDir, {recursive: true});}mkdirSync(workingDir);console.log(tmpDir);execSync(- `git clone [email protected]:remotion-dev/lambda-php-sdk.git ${workingDir}`,- {- cwd: tmpDir,- }+ `git clone [email protected]:remotion-dev/lambda-php-sdk.git ${workingDir}`,+ {+ cwd: tmpDir,+ },);-copyFileSync("composer.json", path.join(workingDir, "composer.json"));-copyFileSync("composer.lock", path.join(workingDir, "composer.lock"));-cpSync("src", path.join(workingDir, "src"), { recursive: true });+copyFileSync('composer.json', path.join(workingDir, 'composer.json'));+copyFileSync('composer.lock', path.join(workingDir, 'composer.lock'));+cpSync('src', path.join(workingDir, 'src'), {recursive: true});writeFileSync(- path.join(workingDir, "README.md"),- [- "# Remotion Lambda PHP SDK",- "This repository exists because Composer packages need to have a composer.json file placed in the root of the repository.",- "The actual source code is located in the [Remotion repository](https://remotion.dev/github).",- "This repository is automatically updated when a new version of Remotion is released.",- "Do not open issues or pull requests here.",- "",- "## Installation",- "Visit https://www.remotion.dev/docs/lambda/php to learn how to install the Remotion Lambda PHP SDK.",- ].join("\n")+ path.join(workingDir, 'README.md'),+ [+ '# Remotion Lambda PHP SDK',+ 'This repository exists because Composer packages need to have a composer.json file placed in the root of the repository.',+ 'The actual source code is located in the [Remotion repository](https://remotion.dev/github).',+ 'This repository is automatically updated when a new version of Remotion is released.',+ 'Do not open issues or pull requests here.',+ '',+ '## Installation',+ 'Visit https://www.remotion.dev/docs/lambda/php to learn how to install the Remotion Lambda PHP SDK.',+ ].join('\n'),);-execSync("git add .", { cwd: workingDir, stdio: "inherit" });+execSync('git add .', {cwd: workingDir, stdio: 'inherit'});execSync(`git commit --allow-empty -m 'Release ${VERSION}'`, {- cwd: workingDir,- stdio: "inherit",+ cwd: workingDir,+ stdio: 'inherit',});-execSync(`git tag ${VERSION}`, { cwd: workingDir, stdio: "inherit" });-execSync("git push", { cwd: workingDir, stdio: "inherit" });-execSync(`git push origin ${VERSION}`, { cwd: workingDir, stdio: "inherit" });-execSync("git push --tags", { cwd: workingDir, stdio: "inherit" });+execSync(`git tag -d ${VERSION} 2>/dev/null || true`, {+ cwd: workingDir,+ stdio: 'inherit',+});+execSync(`git tag ${VERSION}`, {cwd: workingDir, stdio: 'inherit'});+execSync('git push', {cwd: workingDir, stdio: 'inherit'});+execSync(`git push origin ${VERSION}`, {cwd: workingDir, stdio: 'inherit'});+execSync('git push --tags', {cwd: workingDir, stdio: 'inherit'});diff --git a/packages/lambda-ruby/publish.ts b/packages/lambda-ruby/publish.tsindex 7df332bbde..1a2d25a7da 100644--- a/packages/lambda-ruby/publish.ts+++ b/packages/lambda-ruby/publish.ts@@ -49,6 +49,10 @@ execSync(`git commit --allow-empty -m 'Release ${VERSION}'`, {stdio: 'inherit',});try {+ execSync(`git tag -d ${VERSION} 2>/dev/null || true`, {+ cwd: workingDir,+ stdio: 'inherit',+ });execSync(`git tag ${VERSION}`, {cwd: workingDir, stdio: 'inherit'});} catch (e) {}execSync('git push', {cwd: workingDir, stdio: 'inherit'});diff --git a/set-version.ts b/set-version.tsindex 61c41ea2c1..9fccebb4ce 100644--- a/set-version.ts+++ b/set-version.ts@@ -91,5 +91,9 @@ execSync('bun build.ts --all', {if (!noCommit) {execSync('git add .', {stdio: 'inherit'});execSync(`git commit --allow-empty -m "v${version}"`, {stdio: 'inherit'});- execSync(`git tag v${version}`, {stdio: 'inherit'});+ execSync(`git tag -d v${version} 2>/dev/null || true`, {+ stdio: 'inherit',+ });++ execSync(`git tag v${version} 2>/dev/null || true`, {stdio: 'inherit'});}