🎥 Make videos programmatically with React
change more things to bun
JonnyBurger5181fcee8a49
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdindex 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.ymlindex 196c950c77..4b532f835c 100644--- a/.github/workflows/changelog.yml+++ b/.github/workflows/changelog.yml@@ -10,9 +10,9 @@ jobs:runs-on: ubuntu-lateststeps:- 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 changelogenv:DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.ymlindex 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 codeuses: actions/checkout@v4- - uses: pnpm/action-setup@v3- with:- version: "8.10.2"- name: Set up Node.jsuses: actions/setup-node@v4with: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 setupuses: actions/cache@v4with:@@ -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 builddiff --git a/.github/workflows/push.yml b/.github/workflows/push.ymlindex 3a9ca023a1..057cf0c0bd 100644--- a/.github/workflows/push.yml+++ b/.github/workflows/push.yml@@ -15,18 +15,14 @@ jobs:name: Lambda integrationsteps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v3- with:- version: "8.10.2"- uses: actions/setup-node@v4with: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 setupuses: actions/cache@v4with:@@ -36,7 +32,7 @@ jobs:${{ runner.os }}-turbo-- name: Test Lambda ITrun: |- pnpm run testlambda+ bun run testlambda- name: IT teststimeout-minutes: 10run: |@@ -50,18 +46,15 @@ jobs:name: Webcodecs testssteps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v3- with:- version: "8.10.2"- uses: actions/setup-node@v4with: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 setupuses: actions/cache@v4with:@@ -79,9 +72,6 @@ jobs:name: SSR integrationsteps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v3- with:- version: "8.10.2"- name: Cache turbo build setupuses: actions/cache/restore@v4with:@@ -91,12 +81,11 @@ jobs:- uses: actions/setup-node@v4with: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 Pythonuses: actions/setup-python@v4with:@@ -118,15 +107,12 @@ jobs:- name: Test SSRtimeout-minutes: 8run: |- pnpm run testssr+ bun run testssrlint:runs-on: ubuntu-latestname: Linting + Formattingsteps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v3- with:- version: "8.10.2"- name: Cache turbo build setupuses: actions/cache/restore@v4with:@@ -136,18 +122,17 @@ jobs:- uses: actions/setup-node@v4with: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 ienv:CI: true- name: Perform stylechecktimeout-minutes: 10run: |- pnpm run stylecheck+ bun run stylecheckbuild:name: Build Node ${{ matrix.node_version }} on ${{ matrix.os }}runs-on: ${{ matrix.os }}@@ -165,13 +150,9 @@ jobs:node_version: 20.5steps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v3- with:- version: "8.10.2"- uses: actions/setup-node@v4with:node-version: ${{ matrix.node_version }}- cache: "pnpm"- name: Cache turbo build setupuses: actions/cache@v4with:@@ -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 & Testtimeout-minutes: 30run: |- pnpm run ci+ bun run cidiff --git a/.gitignore b/.gitignoreindex e78541eb9e..f310e3c747 100644--- a/.gitignore+++ b/.gitignore@@ -8,7 +8,6 @@ coverage.cachepackages/example/out.env-.pnpm-debug.log.vscode/taskmarks.json.turbo.verceldiff --git a/packages/core/ensure-correct-version.ts b/packages/core/ensure-correct-version.tsindex 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.mjsindex 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</InlineStSee 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.tsindex 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',});