Skip to content

🎥 Make videos programmatically with React

same formatting for all package.json

Jonny Burgerca2220b3c406
diff --git a/packages/cloudrun/container/package.json b/packages/cloudrun/container/package.json
index 5db9b16e26..b4fe430af1 100644
--- a/packages/cloudrun/container/package.json
+++ b/packages/cloudrun/container/package.json
@@ -1,13 +1,13 @@
{
- "name": "cloud-run-render",
- "version": "4.0.177",
- "description": "Render media and stills on GCP Cloud Run",
- "main": "dist/index.js",
- "scripts": {
- "start": "functions-framework --target=renderOnCloudRun"
- },
- "dependencies": {
- "@google-cloud/functions-framework": "^3.1.3"
- },
- "private": true
+ "name": "cloud-run-render",
+ "version": "4.0.177",
+ "description": "Render media and stills on GCP Cloud Run",
+ "main": "dist/index.js",
+ "scripts": {
+ "start": "functions-framework --target=renderOnCloudRun"
+ },
+ "dependencies": {
+ "@google-cloud/functions-framework": "^3.1.3"
+ },
+ "private": true
}
diff --git a/packages/compositor-darwin-arm64/package.json b/packages/compositor-darwin-arm64/package.json
index eca5c50120..56eb92e113 100644
--- a/packages/compositor-darwin-arm64/package.json
+++ b/packages/compositor-darwin-arm64/package.json
@@ -1,21 +1,21 @@
{
- "version": "4.0.177",
- "name": "@remotion/compositor-darwin-arm64",
- "os": [
- "darwin"
- ],
- "cpu": [
- "arm64"
- ],
- "exports": {
- ".": {
- "require": "./index.js",
- "import": "./index.mjs",
- "types": "./index.d.ts"
- },
- "./package.json": "./package.json"
- },
- "publishConfig": {
- "access": "public"
- }
+ "version": "4.0.177",
+ "name": "@remotion/compositor-darwin-arm64",
+ "os": [
+ "darwin"
+ ],
+ "cpu": [
+ "arm64"
+ ],
+ "exports": {
+ ".": {
+ "require": "./index.js",
+ "import": "./index.mjs",
+ "types": "./index.d.ts"
+ },
+ "./package.json": "./package.json"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
}
diff --git a/packages/compositor-darwin-x64/package.json b/packages/compositor-darwin-x64/package.json
index 76ef6f811f..b729bc1d49 100644
--- a/packages/compositor-darwin-x64/package.json
+++ b/packages/compositor-darwin-x64/package.json
@@ -1,21 +1,21 @@
{
- "version": "4.0.177",
- "name": "@remotion/compositor-darwin-x64",
- "os": [
- "darwin"
- ],
- "cpu": [
- "x64"
- ],
- "exports": {
- ".": {
- "require": "./index.js",
- "import": "./index.mjs",
- "types": "./index.d.ts"
- },
- "./package.json": "./package.json"
- },
- "publishConfig": {
- "access": "public"
- }
+ "version": "4.0.177",
+ "name": "@remotion/compositor-darwin-x64",
+ "os": [
+ "darwin"
+ ],
+ "cpu": [
+ "x64"
+ ],
+ "exports": {
+ ".": {
+ "require": "./index.js",
+ "import": "./index.mjs",
+ "types": "./index.d.ts"
+ },
+ "./package.json": "./package.json"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
}
diff --git a/packages/compositor-linux-arm64-gnu/package.json b/packages/compositor-linux-arm64-gnu/package.json
index 2067dc084b..549a47b6ff 100644
--- a/packages/compositor-linux-arm64-gnu/package.json
+++ b/packages/compositor-linux-arm64-gnu/package.json
@@ -1,24 +1,24 @@
{
- "version": "4.0.177",
- "name": "@remotion/compositor-linux-arm64-gnu",
- "os": [
- "linux"
- ],
- "cpu": [
- "arm64"
- ],
- "libc": [
- "glibc"
- ],
- "exports": {
- ".": {
- "require": "./index.js",
- "import": "./index.mjs",
- "types": "./index.d.ts"
- },
- "./package.json": "./package.json"
- },
- "publishConfig": {
- "access": "public"
- }
+ "version": "4.0.177",
+ "name": "@remotion/compositor-linux-arm64-gnu",
+ "os": [
+ "linux"
+ ],
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "exports": {
+ ".": {
+ "require": "./index.js",
+ "import": "./index.mjs",
+ "types": "./index.d.ts"
+ },
+ "./package.json": "./package.json"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
}
diff --git a/packages/compositor-linux-arm64-musl/package.json b/packages/compositor-linux-arm64-musl/package.json
index 37a868ab80..7676e3f6f3 100644
--- a/packages/compositor-linux-arm64-musl/package.json
+++ b/packages/compositor-linux-arm64-musl/package.json
@@ -1,24 +1,24 @@
{
- "version": "4.0.177",
- "name": "@remotion/compositor-linux-arm64-musl",
- "os": [
- "linux"
- ],
- "cpu": [
- "arm64"
- ],
- "libc": [
- "musl"
- ],
- "exports": {
- ".": {
- "require": "./index.js",
- "import": "./index.mjs",
- "types": "./index.d.ts"
- },
- "./package.json": "./package.json"
- },
- "publishConfig": {
- "access": "public"
- }
+ "version": "4.0.177",
+ "name": "@remotion/compositor-linux-arm64-musl",
+ "os": [
+ "linux"
+ ],
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "exports": {
+ ".": {
+ "require": "./index.js",
+ "import": "./index.mjs",
+ "types": "./index.d.ts"
+ },
+ "./package.json": "./package.json"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
}
diff --git a/packages/compositor-linux-x64-gnu/package.json b/packages/compositor-linux-x64-gnu/package.json
index 6cad8d4390..a25e248903 100644
--- a/packages/compositor-linux-x64-gnu/package.json
+++ b/packages/compositor-linux-x64-gnu/package.json
@@ -1,24 +1,24 @@
{
- "version": "4.0.177",
- "name": "@remotion/compositor-linux-x64-gnu",
- "os": [
- "linux"
- ],
- "cpu": [
- "x64"
- ],
- "libc": [
- "glibc"
- ],
- "exports": {
- ".": {
- "require": "./index.js",
- "import": "./index.mjs",
- "types": "./index.d.ts"
- },
- "./package.json": "./package.json"
- },
- "publishConfig": {
- "access": "public"
- }
+ "version": "4.0.177",
+ "name": "@remotion/compositor-linux-x64-gnu",
+ "os": [
+ "linux"
+ ],
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "exports": {
+ ".": {
+ "require": "./index.js",
+ "import": "./index.mjs",
+ "types": "./index.d.ts"
+ },
+ "./package.json": "./package.json"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
}
diff --git a/packages/compositor-linux-x64-musl/package.json b/packages/compositor-linux-x64-musl/package.json
index ecd0af1bce..730223674a 100644
--- a/packages/compositor-linux-x64-musl/package.json
+++ b/packages/compositor-linux-x64-musl/package.json
@@ -1,24 +1,24 @@
{
- "version": "4.0.177",
- "name": "@remotion/compositor-linux-x64-musl",
- "os": [
- "linux"
- ],
- "cpu": [
- "x64"
- ],
- "libc": [
- "musl"
- ],
- "exports": {
- ".": {
- "require": "./index.js",
- "import": "./index.mjs",
- "types": "./index.d.ts"
- },
- "./package.json": "./package.json"
- },
- "publishConfig": {
- "access": "public"
- }
+ "version": "4.0.177",
+ "name": "@remotion/compositor-linux-x64-musl",
+ "os": [
+ "linux"
+ ],
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "exports": {
+ ".": {
+ "require": "./index.js",
+ "import": "./index.mjs",
+ "types": "./index.d.ts"
+ },
+ "./package.json": "./package.json"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
}
diff --git a/packages/compositor-win32-x64-msvc/package.json b/packages/compositor-win32-x64-msvc/package.json
index 9c0dc10f80..53a2cee960 100644
--- a/packages/compositor-win32-x64-msvc/package.json
+++ b/packages/compositor-win32-x64-msvc/package.json
@@ -1,21 +1,21 @@
{
- "version": "4.0.177",
- "name": "@remotion/compositor-win32-x64-msvc",
- "os": [
- "win32"
- ],
- "cpu": [
- "x64"
- ],
- "exports": {
- ".": {
- "require": "./index.js",
- "import": "./index.mjs",
- "types": "./index.d.ts"
- },
- "./package.json": "./package.json"
- },
- "publishConfig": {
- "access": "public"
- }
+ "version": "4.0.177",
+ "name": "@remotion/compositor-win32-x64-msvc",
+ "os": [
+ "win32"
+ ],
+ "cpu": [
+ "x64"
+ ],
+ "exports": {
+ ".": {
+ "require": "./index.js",
+ "import": "./index.mjs",
+ "types": "./index.d.ts"
+ },
+ "./package.json": "./package.json"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
}
diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json
index 09fb00ca61..086877c5c5 100644
--- a/packages/eslint-plugin/package.json
+++ b/packages/eslint-plugin/package.json
@@ -1,28 +1,28 @@
{
- "name": "@remotion/eslint-plugin",
- "version": "4.0.177",
- "description": "A set of rules helping you avoid common pitfalls in Remotion.",
- "scripts": {
- "test": "vitest --run"
- },
- "main": "dist/index.js",
- "bugs": {
- "url": "https://github.com/remotion-dev/remotion/issues"
- },
- "author": "Jonny Burger <[email protected]>",
- "license": "ISC",
- "dependencies": {
- "@typescript-eslint/utils": "5.19.0"
- },
- "keywords": [
- "eslint",
- "eslintplugin"
- ],
- "peerDependencies": {
- "eslint": ">=7.0.0"
- },
- "devDependencies": {
- "vitest": "0.31.1"
- },
- "private": false
+ "name": "@remotion/eslint-plugin",
+ "version": "4.0.177",
+ "description": "A set of rules helping you avoid common pitfalls in Remotion.",
+ "scripts": {
+ "test": "vitest --run"
+ },
+ "main": "dist/index.js",
+ "bugs": {
+ "url": "https://github.com/remotion-dev/remotion/issues"
+ },
+ "author": "Jonny Burger <[email protected]>",
+ "license": "ISC",
+ "dependencies": {
+ "@typescript-eslint/utils": "5.19.0"
+ },
+ "keywords": [
+ "eslint",
+ "eslintplugin"
+ ],
+ "peerDependencies": {
+ "eslint": ">=7.0.0"
+ },
+ "devDependencies": {
+ "vitest": "0.31.1"
+ },
+ "private": false
}
diff --git a/packages/it-tests/package.json b/packages/it-tests/package.json
index eb233b1907..e4846e5fda 100644
--- a/packages/it-tests/package.json
+++ b/packages/it-tests/package.json
@@ -1,36 +1,36 @@
{
- "name": "@remotion/it-tests",
- "version": "4.0.177",
- "license": "SEE LICENSE IN LICENSE.md",
- "scripts": {
- "test": "bun test src/rendering --run",
- "testssr": "bun test src/ssr src/bundle src/templates src/monorepo --timeout 40000",
- "testlambda": "bun test src/lambda src/cloudrun --run"
- },
- "private": true,
- "devDependencies": {
- "@remotion/bundler": "workspace:*",
- "@remotion/cli": "workspace:*",
- "@remotion/lambda": "workspace:*",
- "@remotion/cloudrun": "workspace:*",
- "@remotion/player": "workspace:*",
- "@remotion/preload": "workspace:*",
- "@remotion/renderer": "workspace:*",
- "@remotion/shapes": "workspace:*",
- "@remotion/zod-types": "workspace:*",
- "@remotion/noise": "workspace:*",
- "@remotion/motion-blur": "workspace:*",
- "@remotion/media-utils": "workspace:*",
- "@remotion/lottie": "workspace:*",
- "@remotion/layout-utils": "workspace:*",
- "@remotion/install-whisper-cpp": "workspace:*",
- "@remotion/google-fonts": "workspace:*",
- "@remotion/studio-server": "workspace:*",
- "@remotion/transitions": "workspace:*",
- "@types/sharp": "^0.28.5",
- "create-video": "workspace:*",
- "execa": "5.1.1",
- "remotion": "workspace:*",
- "sharp": "0.32.6"
- }
+ "name": "@remotion/it-tests",
+ "version": "4.0.177",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "scripts": {
+ "test": "bun test src/rendering --run",
+ "testssr": "bun test src/ssr src/bundle src/templates src/monorepo --timeout 40000",
+ "testlambda": "bun test src/lambda src/cloudrun --run"
+ },
+ "private": true,
+ "devDependencies": {
+ "@remotion/bundler": "workspace:*",
+ "@remotion/cli": "workspace:*",
+ "@remotion/lambda": "workspace:*",
+ "@remotion/cloudrun": "workspace:*",
+ "@remotion/player": "workspace:*",
+ "@remotion/preload": "workspace:*",
+ "@remotion/renderer": "workspace:*",
+ "@remotion/shapes": "workspace:*",
+ "@remotion/zod-types": "workspace:*",
+ "@remotion/noise": "workspace:*",
+ "@remotion/motion-blur": "workspace:*",
+ "@remotion/media-utils": "workspace:*",
+ "@remotion/lottie": "workspace:*",
+ "@remotion/layout-utils": "workspace:*",
+ "@remotion/install-whisper-cpp": "workspace:*",
+ "@remotion/google-fonts": "workspace:*",
+ "@remotion/studio-server": "workspace:*",
+ "@remotion/transitions": "workspace:*",
+ "@types/sharp": "^0.28.5",
+ "create-video": "workspace:*",
+ "execa": "5.1.1",
+ "remotion": "workspace:*",
+ "sharp": "0.32.6"
+ }
}
diff --git a/packages/lambda-go-example/package.json b/packages/lambda-go-example/package.json
index c1779e7dbe..a38e6026fb 100644
--- a/packages/lambda-go-example/package.json
+++ b/packages/lambda-go-example/package.json
@@ -1,8 +1,8 @@
{
- "name": "@remotion/lambda-go-example",
- "private": true,
- "version": "4.0.177",
- "scripts": {
- "lint": "node build.mjs"
- }
+ "name": "@remotion/lambda-go-example",
+ "private": true,
+ "version": "4.0.177",
+ "scripts": {
+ "lint": "node build.mjs"
+ }
}
diff --git a/packages/lambda-go/package.json b/packages/lambda-go/package.json
index 46226cf963..82a67f127c 100644
--- a/packages/lambda-go/package.json
+++ b/packages/lambda-go/package.json
@@ -1,12 +1,12 @@
{
- "name": "@remotion/lambda-go",
- "private": true,
- "version": "4.0.177",
- "scripts": {
- "lint": "node build.mjs",
- "publishprivate": "node publish.mjs"
- },
- "devDependencies": {
- "remotion": "workspace:*"
- }
+ "name": "@remotion/lambda-go",
+ "private": true,
+ "version": "4.0.177",
+ "scripts": {
+ "lint": "node build.mjs",
+ "publishprivate": "node publish.mjs"
+ },
+ "devDependencies": {
+ "remotion": "workspace:*"
+ }
}
diff --git a/packages/lambda-php/package.json b/packages/lambda-php/package.json
index 2c33f687fd..12db6ae810 100644
--- a/packages/lambda-php/package.json
+++ b/packages/lambda-php/package.json
@@ -1,12 +1,12 @@
{
- "name": "@remotion/lambda-php",
- "private": true,
- "version": "4.0.177",
- "scripts": {
- "lint": "node build.mjs",
- "publishprivate": "node publish.mjs"
- },
- "devDependencies": {
- "remotion": "workspace:*"
- }
+ "name": "@remotion/lambda-php",
+ "private": true,
+ "version": "4.0.177",
+ "scripts": {
+ "lint": "node build.mjs",
+ "publishprivate": "node publish.mjs"
+ },
+ "devDependencies": {
+ "remotion": "workspace:*"
+ }
}
diff --git a/packages/lambda-python/package.json b/packages/lambda-python/package.json
index 3dc202342d..8def869e66 100644
--- a/packages/lambda-python/package.json
+++ b/packages/lambda-python/package.json
@@ -1,15 +1,15 @@
{
- "name": "@remotion/lambda-python",
- "private": true,
- "version": "4.0.177",
- "scripts": {
- "lint": "node build.mjs",
- "publishprivate": "node publish.mjs"
- },
- "devDependencies": {
- "remotion": "workspace:*"
- },
- "dependencies": {
- "dotenv": "9.0.2"
- }
+ "name": "@remotion/lambda-python",
+ "private": true,
+ "version": "4.0.177",
+ "scripts": {
+ "lint": "node build.mjs",
+ "publishprivate": "node publish.mjs"
+ },
+ "devDependencies": {
+ "remotion": "workspace:*"
+ },
+ "dependencies": {
+ "dotenv": "9.0.2"
+ }
}
diff --git a/set-version.ts b/set-version.ts
index 1d150a055a..4ef708b1ae 100644
--- a/set-version.ts
+++ b/set-version.ts
@@ -1,83 +1,80 @@
// bun set-version.mjs 4.0.178
-import { execSync } from "child_process";
+import {execSync} from 'child_process';
import {
- existsSync,
- lstatSync,
- readFileSync,
- readdirSync,
- writeFileSync,
-} from "fs";
-import path from "path";
+ existsSync,
+ lstatSync,
+ readFileSync,
+ readdirSync,
+ writeFileSync,
+} from 'fs';
+import path from 'path';
let version = process.argv[2];
-let noCommit = process.argv.includes("--no-commit");
+let noCommit = process.argv.includes('--no-commit');
if (!version) {
- throw new Error("Please specify a version");
+ throw new Error('Please specify a version');
}
-if (version.startsWith("v")) {
- version = version.slice(1);
+if (version.startsWith('v')) {
+ version = version.slice(1);
}
-const dirs = readdirSync("packages")
- .filter((dir) =>
- lstatSync(path.join(process.cwd(), "packages", dir)).isDirectory()
- )
- .filter((dir) =>
- existsSync(path.join(process.cwd(), "packages", dir, "package.json"))
- );
+const dirs = readdirSync('packages')
+ .filter((dir) =>
+ lstatSync(path.join(process.cwd(), 'packages', dir)).isDirectory(),
+ )
+ .filter((dir) =>
+ existsSync(path.join(process.cwd(), 'packages', dir, 'package.json')),
+ );
-for (const dir of [path.join("cloudrun", "container"), ...dirs]) {
- const packageJsonPath = path.join(
- process.cwd(),
- "packages",
- dir,
- "package.json"
- );
- const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
- packageJson.version = version;
- const potentialPrettierPath = path.join(
- process.cwd(),
- "packages",
- dir,
- ".prettierrc.js"
- );
- const hasPrettier =
- existsSync(potentialPrettierPath) &&
- readFileSync(potentialPrettierPath, "utf-8").includes("useTabs: true");
- writeFileSync(
- packageJsonPath,
- JSON.stringify(packageJson, null, hasPrettier ? "\t" : 2) + "\n"
- );
- try {
- console.log("setting version for", dir);
- } catch (e) {
- // console.log(e.message);
- }
+for (const dir of [path.join('cloudrun', 'container'), ...dirs]) {
+ const packageJsonPath = path.join(
+ process.cwd(),
+ 'packages',
+ dir,
+ 'package.json',
+ );
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
+ packageJson.version = version;
+ const potentialPrettierPath = path.join(
+ process.cwd(),
+ 'packages',
+ dir,
+ '.prettierrc.js',
+ );
+ writeFileSync(
+ packageJsonPath,
+ JSON.stringify(packageJson, null, '\t') + '\n',
+ );
+ try {
+ console.log('setting version for', dir);
+ } catch (e) {
+ // console.log(e.message);
+ }
}
-execSync("bun ensure-correct-version.ts", {
- cwd: "packages/core",
+execSync('bun ensure-correct-version.ts', {
+ cwd: 'packages/core',
});
-execSync("bun test src/monorepo", {
- cwd: "packages/it-tests",
- stdio: "inherit",
+execSync('bun test src/monorepo', {
+ cwd: 'packages/it-tests',
+ stdio: 'inherit',
});
-execSync("node build.mjs --all", {
- cwd: "packages/renderer",
- stdio: "inherit",
+execSync('node build.mjs --all', {
+ cwd: 'packages/renderer',
+ stdio: 'inherit',
});
-execSync("pnpm build", {
- cwd: "packages/cloudrun",
- stdio: "inherit",
+execSync('pnpm build', {
+ cwd: 'packages/cloudrun',
+ stdio: 'inherit',
});
if (!noCommit) {
- execSync("git add .", { stdio: "inherit" });
- execSync(`git commit -m "v${version}"`, { stdio: "inherit" });
- execSync(`git tag v${version}`, { stdio: "inherit" });
+ execSync('git add .', {stdio: 'inherit'});
+ execSync(`git commit -m "v${version}"`, {stdio: 'inherit'});
+ execSync(`git tag v${version}`, {stdio: 'inherit'});
}