Skip to content

Commit 4d11003

Browse files
authored
migrate repository to Bun (#1546)
1 parent 3bbbd42 commit 4d11003

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3282
-13597
lines changed

.expo-shared/assets.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/code-deploy-preview.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Use Node.js 22
15-
uses: actions/setup-node@v4
16-
with:
17-
node-version: '22'
14+
- name: Use Bun
15+
uses: oven-sh/setup-bun@v2
1816
- name: Deploy
1917
shell: bash
20-
run: npx vercel --force --token "$VERCEL_TOKEN"
18+
run: bunx vercel --force --token "$VERCEL_TOKEN"
2119
env:
2220
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
2321
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787

.github/workflows/code-deploy-production.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ jobs:
1717
url: https://reactnative.directory
1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Use Node.js 22
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: '22'
20+
- name: Use Bun
21+
uses: oven-sh/setup-bun@v2
2422
- name: Deploy
2523
shell: bash
26-
run: npx vercel --force --token "$VERCEL_TOKEN" --prod
24+
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod
2725
env:
2826
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
2927
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}

.github/workflows/code-lint-and-test.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Use Node.js 22
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version: '22'
15+
- name: Use Bun
16+
uses: oven-sh/setup-bun@v2
1917
- name: Install dependencies
20-
run: yarn
18+
run: bun install
2119
- name: TSC
22-
run: yarn tsc
20+
run: bun tsc
2321
- name: Lint
24-
run: yarn lint
22+
run: bun lint
2523
- name: Build Next app
26-
run: yarn next build
24+
run: bun next build

.github/workflows/data-test-and-validate.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Use Node.js 22
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version: '22'
15+
- name: Use Bun
16+
uses: oven-sh/setup-bun@v2
1917
- name: Install dependencies
20-
run: yarn
18+
run: bun install
2119
- name: Validate react-native-libraries.json
22-
run: yarn data:validate
20+
run: bun data:validate
2321
- name: Test react-native-libraries.json
24-
run: yarn data:test
22+
run: bun data:test
2523
- name: Check new entries in react-native-libraries.json
26-
run: yarn ci:validate
24+
run: bun ci:validate
2725
env:
2826
CI_CHECKS_TOKEN: ${{ github.token }}

.github/workflows/vercel-cleanup-data-blobs.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Use Node.js 22
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version: '22'
15+
- name: Use Bun
16+
uses: oven-sh/setup-bun@v2
1917
- name: Install dependencies
20-
run: yarn
18+
run: bun install
2119
- name: Cleanup data blobs
22-
run: yarn ci:cleanup-blobs
20+
run: bun ci:cleanup-blobs
2321
env:
2422
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ scripts/raw-github-results.json
33
secrets.json
44
.env
55

6-
# Yarn Berry
7-
.yarn/*
8-
!.yarn/releases
9-
!.yarn/plugins
10-
yarn-error.log
11-
126
# Standard stuff
137
node_modules/**/*
148
npm-debug.*

.yarn/releases/yarn-4.5.3.cjs

Lines changed: 0 additions & 934 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,20 +157,20 @@
157157
#### Commands
158158

159159
```sh
160-
yarn && yarn start
160+
bun install && bun start
161161
```
162162

163163
You should be able to visit `localhost:3000` in your browser.
164164

165-
## How do I run `yarn data:update` with keys?
165+
## How do I run `bun data:update` with keys?
166166

167167
- Visit https://github.com/settings/developers to get your keys (don't worry about the callback URL, put whatever you want).
168168
- Load the `GITHUB_TOKEN` environment variable into your shell.
169169

170170
This command creates site data in `./assets/data.json`
171171

172172
```sh
173-
GITHUB_TOKEN=<*> yarn data:update
173+
GITHUB_TOKEN=<*> bun data:update
174174
```
175175

176176
## How do I deploy to production?

0 commit comments

Comments
 (0)