Skip to content

Commit 5181fce

Browse files
committed
change more things to bun
1 parent ab976bc commit 5181fce

File tree

8 files changed

+36
-60
lines changed

8 files changed

+36
-60
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The **package name** for each folder is `@remotion/[folder-name]`, except for th
66

77
## Build instructions
88

9-
- `pnpm` is the package manager for the project.
9+
- `bun` is the package manager for the project.
1010
- 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"`.
1111
- After making code changes, run `bunx prettier --experimental-cli src --write` to format the code. Do not run the formatted on the docs.
1212

.github/workflows/changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@main
13-
- uses: oven-sh/setup-bun@v2.0.1
13+
- uses: oven-sh/setup-bun@v2.0.2
1414
with:
15-
bun-version: 1.1.9
15+
bun-version: 1.3.0
1616
- name: Push changelog
1717
env:
1818
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}

.github/workflows/copilot-setup-steps.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,13 @@ jobs:
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
19-
- uses: pnpm/action-setup@v3
20-
with:
21-
version: "8.10.2"
2219
- name: Set up Node.js
2320
uses: actions/setup-node@v4
2421
with:
2522
node-version: 20
26-
cache: "pnpm"
27-
- uses: oven-sh/setup-bun@v2.0.1
23+
- uses: oven-sh/setup-bun@v2.0.2
2824
with:
29-
bun-version: 1.2.10
25+
bun-version: 1.3.0
3026
- name: Cache turbo build setup
3127
uses: actions/cache@v4
3228
with:
@@ -35,6 +31,6 @@ jobs:
3531
restore-keys: |
3632
${{ runner.os }}-turbo-
3733
- name: Install
38-
run: pnpm i --frozen-lockfile
34+
run: bun i
3935
- name: Build
40-
run: pnpm run build
36+
run: bun run build

.github/workflows/push.yml

Lines changed: 20 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,14 @@ jobs:
1515
name: Lambda integration
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: pnpm/action-setup@v3
19-
with:
20-
version: "8.10.2"
2118
- uses: actions/setup-node@v4
2219
with:
2320
node-version: 20
24-
cache: "pnpm"
25-
- uses: oven-sh/setup-bun@v2.0.1
21+
- uses: oven-sh/setup-bun@v2.0.2
2622
with:
27-
bun-version: 1.2.10
23+
bun-version: 1.3.0
2824
- name: Install
29-
run: pnpm i --frozen-lockfile
25+
run: bun i
3026
- name: Cache turbo build setup
3127
uses: actions/cache@v4
3228
with:
@@ -36,7 +32,7 @@ jobs:
3632
${{ runner.os }}-turbo-
3733
- name: Test Lambda IT
3834
run: |
39-
pnpm run testlambda
35+
bun run testlambda
4036
- name: IT tests
4137
timeout-minutes: 10
4238
run: |
@@ -50,18 +46,15 @@ jobs:
5046
name: Webcodecs tests
5147
steps:
5248
- uses: actions/checkout@v4
53-
- uses: pnpm/action-setup@v3
54-
with:
55-
version: "8.10.2"
5649
- uses: actions/setup-node@v4
5750
with:
5851
node-version: 20
59-
cache: "pnpm"
60-
- uses: oven-sh/setup-bun@v2.0.1
52+
cache: "bun"
53+
- uses: oven-sh/setup-bun@v2.0.2
6154
with:
62-
bun-version: 1.2.10
55+
bun-version: 1.3.0
6356
- name: Install
64-
run: pnpm i --frozen-lockfile
57+
run: bun i
6558
- name: Cache turbo build setup
6659
uses: actions/cache@v4
6760
with:
@@ -79,9 +72,6 @@ jobs:
7972
name: SSR integration
8073
steps:
8174
- uses: actions/checkout@v4
82-
- uses: pnpm/action-setup@v3
83-
with:
84-
version: "8.10.2"
8575
- name: Cache turbo build setup
8676
uses: actions/cache/restore@v4
8777
with:
@@ -91,12 +81,11 @@ jobs:
9181
- uses: actions/setup-node@v4
9282
with:
9383
node-version: 16
94-
cache: "pnpm"
95-
- uses: oven-sh/setup-bun@v2.0.1
84+
- uses: oven-sh/setup-bun@v2.0.2
9685
with:
97-
bun-version: 1.2.10
86+
bun-version: 1.3.0
9887
- name: Install
99-
run: pnpm i --frozen-lockfile
88+
run: bun i
10089
- name: Setup Python
10190
uses: actions/setup-python@v4
10291
with:
@@ -118,15 +107,12 @@ jobs:
118107
- name: Test SSR
119108
timeout-minutes: 8
120109
run: |
121-
pnpm run testssr
110+
bun run testssr
122111
lint:
123112
runs-on: ubuntu-latest
124113
name: Linting + Formatting
125114
steps:
126115
- uses: actions/checkout@v4
127-
- uses: pnpm/action-setup@v3
128-
with:
129-
version: "8.10.2"
130116
- name: Cache turbo build setup
131117
uses: actions/cache/restore@v4
132118
with:
@@ -136,18 +122,17 @@ jobs:
136122
- uses: actions/setup-node@v4
137123
with:
138124
node-version: 20
139-
cache: "pnpm"
140-
- uses: oven-sh/setup-bun@v2.0.1
125+
- uses: oven-sh/setup-bun@v2.0.2
141126
with:
142-
bun-version: 1.2.10
127+
bun-version: 1.3.0
143128
- name: Install
144-
run: pnpm i --frozen-lockfile
129+
run: bun i
145130
env:
146131
CI: true
147132
- name: Perform stylecheck
148133
timeout-minutes: 10
149134
run: |
150-
pnpm run stylecheck
135+
bun run stylecheck
151136
build:
152137
name: Build Node ${{ matrix.node_version }} on ${{ matrix.os }}
153138
runs-on: ${{ matrix.os }}
@@ -165,26 +150,22 @@ jobs:
165150
node_version: 20.5
166151
steps:
167152
- uses: actions/checkout@v4
168-
- uses: pnpm/action-setup@v3
169-
with:
170-
version: "8.10.2"
171153
- uses: actions/setup-node@v4
172154
with:
173155
node-version: ${{ matrix.node_version }}
174-
cache: "pnpm"
175156
- name: Cache turbo build setup
176157
uses: actions/cache@v4
177158
with:
178159
path: .turbo
179160
key: ${{ runner.os }}-turbo-${{ github.sha }}
180161
restore-keys: |
181162
${{ runner.os }}-turbo-
182-
- uses: oven-sh/setup-bun@v2.0.1
163+
- uses: oven-sh/setup-bun@v2.0.2
183164
with:
184-
bun-version: 1.2.10
165+
bun-version: 1.3.0
185166
- name: Install
186-
run: pnpm i --frozen-lockfile
167+
run: bun i
187168
- name: Build & Test
188169
timeout-minutes: 30
189170
run: |
190-
pnpm run ci
171+
bun run ci

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ coverage
88
.cache
99
packages/example/out
1010
.env
11-
.pnpm-debug.log
1211
.vscode/taskmarks.json
1312
.turbo
1413
.vercel

packages/core/ensure-correct-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const VERSION = '${version}';
1818

1919
fs.writeFileSync(path.resolve(process.cwd(), 'src/version.ts'), src);
2020

21-
cp.execSync('pnpm run make');
21+
cp.execSync('bun run make');
2222
cp.execSync('bun x tsc -d');
2323

2424
const distFile = fs.readFileSync('dist/esm/version.mjs', 'utf-8');

packages/docs/new-doc.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { existsSync, mkdirSync, writeFileSync } from "fs";
1+
import {existsSync, mkdirSync, writeFileSync} from 'fs';
22

33
const template = `
44
---
@@ -28,16 +28,16 @@ For numbered items in a paragraph, use \`<InlineStep>\`: <InlineStep>1</InlineSt
2828
See the [Language guidelines](/docs/contributing/docs#language-guidelines) so your article fits well into the other ones available on the website.
2929
`.trimStart();
3030

31-
if (!existsSync("new-docs")) {
32-
mkdirSync("new-docs");
31+
if (!existsSync('new-docs')) {
32+
mkdirSync('new-docs');
3333
}
3434

35-
writeFileSync("new-docs/new-doc.md", template);
35+
writeFileSync('new-docs/new-doc.md', template);
3636

3737
console.log('Created new-doc.md in "new-docs" folder.');
38-
console.log("You can now write your article in this file.");
38+
console.log('You can now write your article in this file.');
3939
console.log();
40-
console.log("To preview, run the following command:");
41-
console.log("pnpm exec docusaurus start --config=new-article.config.js");
40+
console.log('To preview, run the following command:');
41+
console.log('bunx docusaurus start --config=new-article.config.js');
4242
console.log();
4343
console.log('Click on "Docs" afterwards to see your page.');

set-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ execSync('bun ensure-correct-version.ts', {
7474
cwd: 'packages/media-parser',
7575
});
7676

77-
execSync('pnpm build', {
77+
execSync('bun run build', {
7878
stdio: 'inherit',
7979
});
8080

0 commit comments

Comments
 (0)