🎥 Make videos programmatically with React
Monorepo: Only invoke tsc once in build step
Jonny Burger35ada5803aec
diff --git a/package.json b/package.jsonindex 5610b19be9..b387227bca 100644--- a/package.json+++ b/package.json@@ -6,7 +6,7 @@"scripts": {"test": "turbo run lint test","stylecheck": "turbo run lint formatting",- "build": "turbo run build",+ "build": "tsc -b --verbose && turbo run build","build-docs": "turbo run build-docs","ci": "turbo run build test --concurrency=50%","watch": "tsc -b --verbose -w",diff --git a/packages/animation-utils/package.json b/packages/animation-utils/package.jsonindex 55f494b89b..5cc8549d76 100644--- a/packages/animation-utils/package.json+++ b/packages/animation-utils/package.json@@ -12,8 +12,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d && bun bundle.ts",+ "build": "bun bundle.ts","test": "vitest --run"},"dependencies": {diff --git a/packages/babel-loader/package.json b/packages/babel-loader/package.jsonindex 682eb86477..f63d5eddf0 100644--- a/packages/babel-loader/package.json+++ b/packages/babel-loader/package.json@@ -5,9 +5,7 @@"main": "dist/index.js","scripts": {"formatting": "prettier src --check",- "lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d"+ "lint": "eslint src --ext ts,tsx"},"files": ["dist"diff --git a/packages/bundler/package.json b/packages/bundler/package.jsonindex 03c17b4bfd..733d37f26f 100644--- a/packages/bundler/package.json+++ b/packages/bundler/package.json@@ -13,8 +13,6 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "tsc -d",- "watch": "tsc -w","test": "vitest --run"},"files": [diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex e3b234b968..b2368b2c69 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -11,9 +11,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "test": "vitest --run",- "build": "tsc -d",- "watch": "tsc -w"+ "test": "vitest --run"},"repository": {"url": "https://github.com/remotion-dev/remotion"diff --git a/packages/cloudrun/package.json b/packages/cloudrun/package.jsonindex 1827a80e4c..17a61a6abc 100644--- a/packages/cloudrun/package.json+++ b/packages/cloudrun/package.json@@ -7,7 +7,6 @@"build": "bun build.ts","buildContainer": "ts-node src/admin/bundle-renderLogic.ts","tarInstaller": "ts-node src/admin/bundle-installer.ts",- "watch": "tsc -w","lint": "eslint src --ext ts,tsx","test": "vitest --run","publish": "cd container && ARTIFACT_REGISTRY_ENV=production node submit.mjs"diff --git a/packages/compositor-darwin-arm64/remotion b/packages/compositor-darwin-arm64/remotionindex 46e982e406..7d1ad7b88b 100755Binary files a/packages/compositor-darwin-arm64/remotion and b/packages/compositor-darwin-arm64/remotion differdiff --git a/packages/core/package.json b/packages/core/package.jsonindex 39e403c281..9bcff51f5d 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -10,8 +10,7 @@"prepublishOnly": "bun ensure-correct-version.ts && cp ../../README.md .","lint": "eslint src --ext ts,tsx","test": "vitest --run",- "build": "tsc -d && rollup --failAfterWarnings --config rollup-version.config.js && rollup --failAfterWarnings --config rollup-no-react.config.js && rollup --failAfterWarnings --config rollup.config.js",- "watch": "tsc -w"+ "build": "rollup --failAfterWarnings --config rollup-version.config.js && rollup --failAfterWarnings --config rollup-no-react.config.js && rollup --failAfterWarnings --config rollup.config.js"},"repository": {"url": "https://github.com/remotion-dev/remotion"diff --git a/packages/create-video/package.json b/packages/create-video/package.jsonindex cab45f5a65..3deb662a5e 100644--- a/packages/create-video/package.json+++ b/packages/create-video/package.json@@ -11,8 +11,6 @@],"scripts": {"formatting": "prettier src --check",- "build": "tsc -d",- "watch": "tsc -w","lint": "eslint src --ext ts,tsx","test": "vitest --run"},diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex b284964a7f..9d436ad0e7 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -7,7 +7,6 @@"docusaurus": "docusaurus","start": "docusaurus start --host 0.0.0.0","start-docs": "docusaurus start",- "build": "tsc -d","build-docs": "node --max_old_space_size=16000 node_modules/@docusaurus/core/bin/docusaurus.mjs build && node count-pages.mjs","swizzle": "docusaurus swizzle","deploy": "docusaurus deploy",diff --git a/packages/docs/tsconfig.json b/packages/docs/tsconfig.jsonindex 9d5d66a0e0..5680f487b5 100644--- a/packages/docs/tsconfig.json+++ b/packages/docs/tsconfig.json@@ -31,6 +31,7 @@{ "path": "../lottie" },{ "path": "../noise" },{ "path": "../paths" },+ { "path": "../google-fonts" },{ "path": "../preload" },{ "path": "../rive" },{ "path": "../skia" },diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.jsonindex b9a84036b4..4b3a7172ca 100644--- a/packages/eslint-config/package.json+++ b/packages/eslint-config/package.json@@ -3,10 +3,6 @@"version": "4.0.148","description": "","main": "dist/index.js",- "scripts": {- "build": "tsc -d",- "watch": "tsc -w"- },"files": ["dist"],diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.jsonindex 4e3bb1a04f..f2ef871248 100644--- a/packages/eslint-plugin/package.json+++ b/packages/eslint-plugin/package.json@@ -3,9 +3,7 @@"version": "4.0.148","description": "A set of rules helping you avoid common pitfalls in Remotion.","scripts": {- "build": "tsc -d",- "test": "vitest --run",- "watch": "tsc -w"+ "test": "vitest --run"},"main": "dist/index.js","bugs": {diff --git a/packages/example-without-zod/package.json b/packages/example-without-zod/package.jsonindex 6bc292eaab..637dd3bf6d 100644--- a/packages/example-without-zod/package.json+++ b/packages/example-without-zod/package.json@@ -8,7 +8,6 @@"main": "dist/index.js","scripts": {"start": "remotion preview",- "build": "tsc -d","render": "remotion render react-svg"},"dependencies": {diff --git a/packages/example/package.json b/packages/example/package.jsonindex d77b760d44..22eb459772 100644--- a/packages/example/package.json+++ b/packages/example/package.json@@ -17,7 +17,7 @@"comps": "remotion compositions","lint": "eslint src --ext ts,tsx,js,jsx","test": "vitest --run",- "build": "tsc -d && remotion bundle",+ "build": "remotion bundle","render": "remotion render react-svg","render-js": "remotion render src/entry.jsx framer","render-gif": "remotion render framer out/video.gif --codec=gif --every-nth-frame=2",diff --git a/packages/gif/package.json b/packages/gif/package.jsonindex ca8dd8b232..efa345cde2 100644--- a/packages/gif/package.json+++ b/packages/gif/package.json@@ -17,8 +17,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "node build.mjs && bun bundle.ts && tsc -d",- "watch": "tsc -w"+ "build": "node build.mjs && bun bundle.ts"},"exports": {"./package.json": "./package.json",diff --git a/packages/google-fonts/package.json b/packages/google-fonts/package.jsonindex 8bc8f82d68..36f6b3abe9 100644--- a/packages/google-fonts/package.json+++ b/packages/google-fonts/package.json@@ -5,8 +5,7 @@"main": "dist/cjs/index.js","module": "dist/esm/index.mjs","scripts": {- "build": "pnpm run generate && rollup --config rollup.config.js && tsc -d",- "watch": "tsc -w",+ "build": "pnpm run generate && rollup --config rollup.config.js","generate": "ts-node scripts/generate.ts && bun scripts/generate-index.ts","prepublishOnly": "bun ensure-generation.ts"},diff --git a/packages/install-whisper-cpp/package.json b/packages/install-whisper-cpp/package.jsonindex 9b13f48b72..28f81928b6 100644--- a/packages/install-whisper-cpp/package.json+++ b/packages/install-whisper-cpp/package.json@@ -13,8 +13,6 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "tsc -d",- "watch": "tsc -w","test": "bun test src"},"files": [diff --git a/packages/lambda/package.json b/packages/lambda/package.jsonindex 0b742de1f6..2d450ad61c 100644--- a/packages/lambda/package.json+++ b/packages/lambda/package.json@@ -12,8 +12,7 @@"testintegration": "vitest src/test/integration --run","lint": "eslint src --ext ts,tsx","test": "vitest src/test/unit --run",- "watch": "tsc -w",- "build": "tsc -d && pnpm run buildlambda",+ "build": "pnpm run buildlambda","buildlambda": "ts-node src/admin/bundle-lambda.ts","prepublishOnly": "bun src/admin/bundle-lambda.ts && bun ensure-version-match.js"},diff --git a/packages/layout-utils/package.json b/packages/layout-utils/package.jsonindex 2ef5f42ae1..0700b37835 100644--- a/packages/layout-utils/package.json+++ b/packages/layout-utils/package.json@@ -9,8 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "bun bundle.ts && tsc -d"+ "build": "bun bundle.ts"},"exports": {"./package.json": "./package.json",diff --git a/packages/lottie/package.json b/packages/lottie/package.jsonindex 81a664e0ce..7b4c91ba01 100644--- a/packages/lottie/package.json+++ b/packages/lottie/package.json@@ -10,8 +10,7 @@"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx","test": "bun test src",- "build": "bun bundle.ts && tsc -d",- "watch": "tsc -w"+ "build": "bun bundle.ts"},"repository": {"url": "https://github.com/remotion-dev/remotion"diff --git a/packages/media-utils/package.json b/packages/media-utils/package.jsonindex 7f9f1ea773..0d5fea016c 100644--- a/packages/media-utils/package.json+++ b/packages/media-utils/package.json@@ -6,9 +6,7 @@"sideEffects": false,"scripts": {"formatting": "prettier src --check",- "lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d"+ "lint": "eslint src --ext ts,tsx"},"author": "Jonny Burger <[email protected]>","license": "MIT",diff --git a/packages/motion-blur/package.json b/packages/motion-blur/package.jsonindex 8a03c04c7a..ce836dd675 100644--- a/packages/motion-blur/package.json+++ b/packages/motion-blur/package.json@@ -9,8 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "bun bundle.ts && tsc -d"+ "build": "bun bundle.ts"},"author": "Matt McGillivray, Ilija Boshkov <[email protected]>, Jonny Burger <[email protected]>","contributors": [],diff --git a/packages/noise/package.json b/packages/noise/package.jsonindex dcf11dcbaf..76705a4895 100644--- a/packages/noise/package.json+++ b/packages/noise/package.json@@ -9,8 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "bun bundle.ts && tsc -d",+ "build": "bun bundle.ts","test": "vitest --run"},"exports": {diff --git a/packages/paths/package.json b/packages/paths/package.jsonindex a2d4d10911..933e2e35a4 100644--- a/packages/paths/package.json+++ b/packages/paths/package.json@@ -7,8 +7,6 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d","test": "bun test src"},"author": "Jonny Burger <[email protected]>",diff --git a/packages/player/package.json b/packages/player/package.jsonindex 993260be23..6443c7c80a 100644--- a/packages/player/package.json+++ b/packages/player/package.json@@ -9,8 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "bun ensure-correct-version.ts && rollup --config rollup.config.js && tsc -d",- "watch": "tsc -w",+ "build": "bun ensure-correct-version.ts && rollup --config rollup.config.js","test": "vitest src --run","prerelease": "cp ../../README.md ."},diff --git a/packages/preload/package.json b/packages/preload/package.jsonindex e5f53980d1..caafe33535 100644--- a/packages/preload/package.json+++ b/packages/preload/package.json@@ -7,9 +7,7 @@"sideEffects": false,"scripts": {"formatting": "prettier src --check",- "lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d"+ "lint": "eslint src --ext ts,tsx"},"author": "Jonny Burger","contributors": [],diff --git a/packages/renderer/package.json b/packages/renderer/package.jsonindex bd911c2870..dc4014339c 100644--- a/packages/renderer/package.json+++ b/packages/renderer/package.json@@ -9,8 +9,7 @@"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx","test": "vitest --run",- "watch": "tsc -w",- "build": "node build.mjs && tsc -d",+ "build": "node build.mjs","build-all": "node build.mjs --all","prepublishOnly": "node build.mjs --all"},diff --git a/packages/rive/package.json b/packages/rive/package.jsonindex fde57f8cd3..a8ffbd0b9f 100644--- a/packages/rive/package.json+++ b/packages/rive/package.json@@ -8,8 +8,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "bun bundle.ts && tsc -d",- "watch": "tsc -w"+ "build": "bun bundle.ts"},"repository": {"url": "https://github.com/remotion-dev/remotion"diff --git a/packages/shapes/package.json b/packages/shapes/package.jsonindex 3fe303acb8..dbd36c8def 100644--- a/packages/shapes/package.json+++ b/packages/shapes/package.json@@ -7,8 +7,6 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d","test": "vitest --run"},"author": "Alex Fernandez, Jonny Burger <[email protected]>",diff --git a/packages/skia/package.json b/packages/skia/package.jsonindex 2da09bc86a..a67ed9472f 100644--- a/packages/skia/package.json+++ b/packages/skia/package.json@@ -9,8 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "bun bundle.ts && tsc -d"+ "build": "bun bundle.ts"},"author": "Jonny Burger <[email protected]>, William Candillon <[email protected]>","contributors": [],diff --git a/packages/studio-server/package.json b/packages/studio-server/package.jsonindex c53d080b26..e7a2c22da0 100644--- a/packages/studio-server/package.json+++ b/packages/studio-server/package.json@@ -6,8 +6,6 @@"sideEffects": false,"scripts": {"lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d","test": "vitest --run","formatting": "prettier src --check"},diff --git a/packages/studio-shared/package.json b/packages/studio-shared/package.jsonindex f37cd6fc02..29352ecafd 100644--- a/packages/studio-shared/package.json+++ b/packages/studio-shared/package.json@@ -6,8 +6,6 @@"sideEffects": false,"scripts": {"lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d","formatting": "prettier src --check"},"author": "Jonny Burger <[email protected]>",diff --git a/packages/studio-shared/tsconfig.json b/packages/studio-shared/tsconfig.jsonindex 6ea62259dc..ba4199362d 100644--- a/packages/studio-shared/tsconfig.json+++ b/packages/studio-shared/tsconfig.json@@ -8,6 +8,8 @@},"include": ["src"],"references": [-+ {+ "path": "../renderer"+ }]}diff --git a/packages/studio/package.json b/packages/studio/package.jsonindex a34f996b89..0643b7379d 100644--- a/packages/studio/package.json+++ b/packages/studio/package.json@@ -6,8 +6,7 @@"sideEffects": false,"scripts": {"lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d && bun bundle.ts",+ "build": "bun bundle.ts","test": "bun test src","formatting": "prettier src --check"},diff --git a/packages/tailwind/package.json b/packages/tailwind/package.jsonindex 03a861e8db..b761dd6261 100644--- a/packages/tailwind/package.json+++ b/packages/tailwind/package.json@@ -8,8 +8,7 @@"sideEffects": false,"scripts": {"lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "bun bundle.ts && tsc -d"+ "build": "bun bundle.ts"},"author": "Jonny Burger <[email protected]>","contributors": [],diff --git a/packages/test-utils/package.json b/packages/test-utils/package.jsonindex b9b5d9f96e..978c460d0c 100644--- a/packages/test-utils/package.json+++ b/packages/test-utils/package.json@@ -5,9 +5,7 @@"main": "dist","sideEffects": false,"scripts": {- "lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "tsc -d"+ "lint": "eslint src --ext ts,tsx"},"author": "Jonny Burger <[email protected]>","contributors": [],diff --git a/packages/three/package.json b/packages/three/package.jsonindex 9590d64bd3..5676093f58 100644--- a/packages/three/package.json+++ b/packages/three/package.json@@ -9,8 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "bun bundle.ts && tsc -d"+ "build": "bun bundle.ts"},"author": "Björn Zeutzheim","contributors": [],diff --git a/packages/transitions/package.json b/packages/transitions/package.jsonindex ec2fbbbec3..56b49b190d 100644--- a/packages/transitions/package.json+++ b/packages/transitions/package.json@@ -10,8 +10,7 @@"test": "vitest src --run","lint": "eslint src --ext ts,tsx","formatting": "prettier src --check",- "watch": "tsc -w",- "build": "tsc -d && bun bundle.ts"+ "build": "bun bundle.ts"},"author": "Jonny Burger","contributors": [],diff --git a/packages/zod-types/package.json b/packages/zod-types/package.jsonindex 04f5cd8e4e..a18b7dbf90 100644--- a/packages/zod-types/package.json+++ b/packages/zod-types/package.json@@ -9,8 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "watch": "tsc -w",- "build": "bun bundle.ts && tsc -d"+ "build": "bun bundle.ts"},"author": "Jonny Burger","contributors": [],diff --git a/turbo.json b/turbo.jsonindex 8e596efc3b..e6f8ae1b06 100644--- a/turbo.json+++ b/turbo.json@@ -3,12 +3,13 @@"pipeline": {"build": {"dependsOn": ["^build"],- "outputs": ["dist/**", ".rollup.cache/**"],+ "outputs": [".rollup.cache/**"],"outputMode": "new-only"},+"@remotion/example#build": {"dependsOn": ["^build"],- "outputs": ["dist/**", ".rollup.cache/**", "build/**"],+ "outputs": [".rollup.cache/**", "build/**"],"outputMode": "new-only"},"build-docs": {@@ -33,18 +34,15 @@"dependsOn": ["@remotion/eslint-config#build"]},"@remotion/google-fonts#build": {- "outputs": ["src/**", ".cache-css/**", "dist/**", ".rollup.cache/**"],+ "outputs": ["src/**", ".cache-css/**", ".rollup.cache/**"],"dependsOn": ["^build"],"outputMode": "new-only"},"@remotion/renderer#build": {- "outputs": ["dist/**", "target/release/**"],+ "outputs": ["target/release/**"],"dependsOn": ["^build"],"outputMode": "new-only"},- "@remotion/player-example#lint": {- "dependsOn": ["@remotion/eslint-config#build"]- },"@remotion/it-tests#test": {"dependsOn": ["^build",