Skip to content

🎥 Make videos programmatically with React

change more things to bun

JonnyBurger5181fcee8a49
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index cf4f72d9a4..f35295d9d1 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -6,7 +6,7 @@ The **package name** for each folder is `@remotion/[folder-name]`, except for th
## Build instructions
-- `pnpm` is the package manager for the project.
+- `bun` is the package manager for the project.
- To build the project after you made changes, run `bunx turbo make --filter="[package-name]"` and only include the package you are working on. Refer to package naming convention above. For example, the command to build the package in `packages/shapes` is `bunx turbo make --filter="@remotion/shapes"`.
- After making code changes, run `bunx prettier --experimental-cli src --write` to format the code. Do not run the formatted on the docs.
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
index 196c950c77..4b532f835c 100644
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- - uses: oven-sh/[email protected]
+ - uses: oven-sh/[email protected]
with:
- bun-version: 1.1.9
+ bun-version: 1.3.0
- name: Push changelog
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml
index 2c10b26c83..b73364dd56 100644
--- a/.github/workflows/copilot-setup-steps.yml
+++ b/.github/workflows/copilot-setup-steps.yml
@@ -16,17 +16,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- - uses: pnpm/action-setup@v3
- with:
- version: "8.10.2"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- cache: "pnpm"
- - uses: oven-sh/[email protected]
+ - uses: oven-sh/[email protected]
with:
- bun-version: 1.2.10
+ bun-version: 1.3.0
- name: Cache turbo build setup
uses: actions/cache@v4
with:
@@ -35,6 +31,6 @@ jobs:
restore-keys: |
${{ runner.os }}-turbo-
- name: Install
- run: pnpm i --frozen-lockfile
+ run: bun i
- name: Build
- run: pnpm run build
+ run: bun run build
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 3a9ca023a1..057cf0c0bd 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -15,18 +15,14 @@ jobs:
name: Lambda integration
steps:
- uses: actions/checkout@v4
- - uses: pnpm/action-setup@v3
- with:
- version: "8.10.2"
- uses: actions/setup-node@v4
with:
node-version: 20
- cache: "pnpm"
- - uses: oven-sh/[email protected]
+ - uses: oven-sh/[email protected]
with:
- bun-version: 1.2.10
+ bun-version: 1.3.0
- name: Install
- run: pnpm i --frozen-lockfile
+ run: bun i
- name: Cache turbo build setup
uses: actions/cache@v4
with:
@@ -36,7 +32,7 @@ jobs:
${{ runner.os }}-turbo-
- name: Test Lambda IT
run: |
- pnpm run testlambda
+ bun run testlambda
- name: IT tests
timeout-minutes: 10
run: |
@@ -50,18 +46,15 @@ jobs:
name: Webcodecs tests
steps:
- uses: actions/checkout@v4
- - uses: pnpm/action-setup@v3
- with:
- version: "8.10.2"
- uses: actions/setup-node@v4
with:
node-version: 20
- cache: "pnpm"
- - uses: oven-sh/[email protected]
+ cache: "bun"
+ - uses: oven-sh/[email protected]
with:
- bun-version: 1.2.10
+ bun-version: 1.3.0
- name: Install
- run: pnpm i --frozen-lockfile
+ run: bun i
- name: Cache turbo build setup
uses: actions/cache@v4
with:
@@ -79,9 +72,6 @@ jobs:
name: SSR integration
steps:
- uses: actions/checkout@v4
- - uses: pnpm/action-setup@v3
- with:
- version: "8.10.2"
- name: Cache turbo build setup
uses: actions/cache/restore@v4
with:
@@ -91,12 +81,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 16
- cache: "pnpm"
- - uses: oven-sh/[email protected]
+ - uses: oven-sh/[email protected]
with:
- bun-version: 1.2.10
+ bun-version: 1.3.0
- name: Install
- run: pnpm i --frozen-lockfile
+ run: bun i
- name: Setup Python
uses: actions/setup-python@v4
with:
@@ -118,15 +107,12 @@ jobs:
- name: Test SSR
timeout-minutes: 8
run: |
- pnpm run testssr
+ bun run testssr
lint:
runs-on: ubuntu-latest
name: Linting + Formatting
steps:
- uses: actions/checkout@v4
- - uses: pnpm/action-setup@v3
- with:
- version: "8.10.2"
- name: Cache turbo build setup
uses: actions/cache/restore@v4
with:
@@ -136,18 +122,17 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- cache: "pnpm"
- - uses: oven-sh/[email protected]
+ - uses: oven-sh/[email protected]
with:
- bun-version: 1.2.10
+ bun-version: 1.3.0
- name: Install
- run: pnpm i --frozen-lockfile
+ run: bun i
env:
CI: true
- name: Perform stylecheck
timeout-minutes: 10
run: |
- pnpm run stylecheck
+ bun run stylecheck
build:
name: Build Node ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
@@ -165,13 +150,9 @@ jobs:
node_version: 20.5
steps:
- uses: actions/checkout@v4
- - uses: pnpm/action-setup@v3
- with:
- version: "8.10.2"
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- cache: "pnpm"
- name: Cache turbo build setup
uses: actions/cache@v4
with:
@@ -179,12 +160,12 @@ jobs:
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- - uses: oven-sh/[email protected]
+ - uses: oven-sh/[email protected]
with:
- bun-version: 1.2.10
+ bun-version: 1.3.0
- name: Install
- run: pnpm i --frozen-lockfile
+ run: bun i
- name: Build & Test
timeout-minutes: 30
run: |
- pnpm run ci
+ bun run ci
diff --git a/.gitignore b/.gitignore
index e78541eb9e..f310e3c747 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,7 +8,6 @@ coverage
.cache
packages/example/out
.env
-.pnpm-debug.log
.vscode/taskmarks.json
.turbo
.vercel
diff --git a/packages/core/ensure-correct-version.ts b/packages/core/ensure-correct-version.ts
index e45b6d452a..d4dde7400c 100644
--- a/packages/core/ensure-correct-version.ts
+++ b/packages/core/ensure-correct-version.ts
@@ -18,7 +18,7 @@ export const VERSION = '${version}';
fs.writeFileSync(path.resolve(process.cwd(), 'src/version.ts'), src);
-cp.execSync('pnpm run make');
+cp.execSync('bun run make');
cp.execSync('bun x tsc -d');
const distFile = fs.readFileSync('dist/esm/version.mjs', 'utf-8');
diff --git a/packages/docs/new-doc.mjs b/packages/docs/new-doc.mjs
index 41482eafee..72ebfa691b 100644
--- a/packages/docs/new-doc.mjs
+++ b/packages/docs/new-doc.mjs
@@ -1,4 +1,4 @@
-import { existsSync, mkdirSync, writeFileSync } from "fs";
+import {existsSync, mkdirSync, writeFileSync} from 'fs';
const template = `
---
@@ -28,16 +28,16 @@ For numbered items in a paragraph, use \`<InlineStep>\`: <InlineStep>1</InlineSt
See the [Language guidelines](/docs/contributing/docs#language-guidelines) so your article fits well into the other ones available on the website.
`.trimStart();
-if (!existsSync("new-docs")) {
- mkdirSync("new-docs");
+if (!existsSync('new-docs')) {
+ mkdirSync('new-docs');
}
-writeFileSync("new-docs/new-doc.md", template);
+writeFileSync('new-docs/new-doc.md', template);
console.log('Created new-doc.md in "new-docs" folder.');
-console.log("You can now write your article in this file.");
+console.log('You can now write your article in this file.');
console.log();
-console.log("To preview, run the following command:");
-console.log("pnpm exec docusaurus start --config=new-article.config.js");
+console.log('To preview, run the following command:');
+console.log('bunx docusaurus start --config=new-article.config.js');
console.log();
console.log('Click on "Docs" afterwards to see your page.');
diff --git a/set-version.ts b/set-version.ts
index 5a878ff21d..444dc0fbdd 100644
--- a/set-version.ts
+++ b/set-version.ts
@@ -74,7 +74,7 @@ execSync('bun ensure-correct-version.ts', {
cwd: 'packages/media-parser',
});
-execSync('pnpm build', {
+execSync('bun run build', {
stdio: 'inherit',
});