🎥 Make videos programmatically with React
force env via env file
Jonny Burgerb2e32d143522
diff --git a/packages/.env.bundle b/packages/.env.bundlenew file mode 100644index 0000000000..18e857465d--- /dev/null+++ b/packages/.env.bundle@@ -0,0 +1,2 @@+# Force Bun to get rid of the development mode+NODE_ENV=productiondiff --git a/packages/animation-utils/package.json b/packages/animation-utils/package.jsonindex 1f46b99c3a..9e286931df 100644--- a/packages/animation-utils/package.json+++ b/packages/animation-utils/package.json@@ -12,7 +12,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts",+ "build": "bun --env-file=../.env.bundle bundle.ts","test": "vitest --run"},"dependencies": {diff --git a/packages/core/package.json b/packages/core/package.jsonindex 80dff651dd..3639652389 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -10,7 +10,7 @@"prepublishOnly": "bun ensure-correct-version.ts && cp ../../README.md .","lint": "eslint src --ext ts,tsx","test": "vitest --run",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"repository": {"url": "https://github.com/remotion-dev/remotion"diff --git a/packages/gif/package.json b/packages/gif/package.jsonindex f6eb5573d3..b1012d8ee5 100644--- a/packages/gif/package.json+++ b/packages/gif/package.json@@ -17,7 +17,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "node build.mjs && NODE_ENV=production bun bundle.ts"+ "build": "node build.mjs && bun --env-file=../.env.bundle bundle.ts"},"exports": {"./package.json": "./package.json",diff --git a/packages/google-fonts/package.json b/packages/google-fonts/package.jsonindex a3e9b27cc1..ef5b12a2f6 100644--- a/packages/google-fonts/package.json+++ b/packages/google-fonts/package.json@@ -5,7 +5,7 @@"main": "dist/cjs/index.js","module": "dist/esm/index.mjs","scripts": {- "build": "NODE_ENV=production bun bundle.ts",+ "build": "bun --env-file=../.env.bundle bundle.ts","generate": "bun scripts/generate.ts && bun scripts/generate-index.ts","prepublishOnly": "bun ensure-generation.ts"},diff --git a/packages/layout-utils/package.json b/packages/layout-utils/package.jsonindex 1de7ba9bf2..6b80b62617 100644--- a/packages/layout-utils/package.json+++ b/packages/layout-utils/package.json@@ -9,7 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"exports": {"./package.json": "./package.json",diff --git a/packages/lottie/package.json b/packages/lottie/package.jsonindex fae621b20f..910b611d9a 100644--- a/packages/lottie/package.json+++ b/packages/lottie/package.json@@ -10,7 +10,7 @@"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx","test": "bun test src",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"repository": {"url": "https://github.com/remotion-dev/remotion"diff --git a/packages/motion-blur/package.json b/packages/motion-blur/package.jsonindex bfef24fbe8..1491f007d9 100644--- a/packages/motion-blur/package.json+++ b/packages/motion-blur/package.json@@ -9,7 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle 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 cd47759e72..f3e30c6c22 100644--- a/packages/noise/package.json+++ b/packages/noise/package.json@@ -9,7 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts",+ "build": "bun --env-file=../.env.bundle bundle.ts","test": "vitest --run"},"exports": {diff --git a/packages/player/package.json b/packages/player/package.jsonindex cae107052c..3c7307e12b 100644--- a/packages/player/package.json+++ b/packages/player/package.json@@ -9,7 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "bun ensure-correct-version.ts && NODE_ENV=production bun bundle.ts",+ "build": "bun ensure-correct-version.ts && bun --env-file=../.env.bundle bundle.ts","test": "vitest src --run","prerelease": "cp ../../README.md ."},diff --git a/packages/rive/package.json b/packages/rive/package.jsonindex 842828c56f..c1c98f27d8 100644--- a/packages/rive/package.json+++ b/packages/rive/package.json@@ -8,7 +8,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"repository": {"url": "https://github.com/remotion-dev/remotion"diff --git a/packages/skia/package.json b/packages/skia/package.jsonindex 0415c50f36..bd6e530f34 100644--- a/packages/skia/package.json+++ b/packages/skia/package.json@@ -9,7 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"author": "Jonny Burger <[email protected]>, William Candillon <[email protected]>","contributors": [],diff --git a/packages/studio/package.json b/packages/studio/package.jsonindex b9334005f8..ff4949b8c5 100644--- a/packages/studio/package.json+++ b/packages/studio/package.json@@ -6,7 +6,7 @@"sideEffects": false,"scripts": {"lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts",+ "build": "bun --env-file=../.env.bundle bundle.ts","test": "bun test src","formatting": "prettier src --check"},diff --git a/packages/tailwind/package.json b/packages/tailwind/package.jsonindex 2c1ca584b3..4bc4f018d4 100644--- a/packages/tailwind/package.json+++ b/packages/tailwind/package.json@@ -8,7 +8,7 @@"sideEffects": false,"scripts": {"lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"author": "Jonny Burger <[email protected]>","contributors": [],diff --git a/packages/three/package.json b/packages/three/package.jsonindex 186edcf081..97938e6771 100644--- a/packages/three/package.json+++ b/packages/three/package.json@@ -9,7 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"author": "Björn Zeutzheim","contributors": [],diff --git a/packages/transitions/package.json b/packages/transitions/package.jsonindex 415e41bacb..4a72a2c2b8 100644--- a/packages/transitions/package.json+++ b/packages/transitions/package.json@@ -10,7 +10,7 @@"test": "vitest src --run","lint": "eslint src --ext ts,tsx","formatting": "prettier src --check",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"author": "Jonny Burger","contributors": [],diff --git a/packages/zod-types/package.json b/packages/zod-types/package.jsonindex 12b9f2153f..7783f13554 100644--- a/packages/zod-types/package.json+++ b/packages/zod-types/package.json@@ -9,7 +9,7 @@"scripts": {"formatting": "prettier src --check","lint": "eslint src --ext ts,tsx",- "build": "NODE_ENV=production bun bundle.ts"+ "build": "bun --env-file=../.env.bundle bundle.ts"},"author": "Jonny Burger","contributors": [],