Skip to content

Commit 02bfcae

Browse files
Migrate package manager from PNPM to Bun (#257)
2 parents 8c5fd65 + cf69a3a commit 02bfcae

11 files changed

Lines changed: 1796 additions & 6622 deletions

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,34 @@ jobs:
2626
- name: Setup Environment
2727
uses: jdx/mise-action@v3
2828

29-
- name: Get PNPM store
30-
id: pnpm-cache
31-
shell: bash
32-
run: |
33-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
34-
35-
- name: Setup pnpm cache
36-
uses: actions/cache@v4
29+
- uses: actions/cache@v4
3730
with:
38-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
39-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
31+
path: ~/.bun/install/cache
32+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
4033
restore-keys: |
41-
${{ runner.os }}-pnpm-store-
34+
${{ runner.os }}-bun-
4235
4336
- name: Install dependencies
44-
run: pnpm install
37+
run: bun install
38+
39+
- name: Link scripts package binary
40+
run: |
41+
cd packages/scripts
42+
bun link
43+
cd ../..
44+
bun link @tcd-devkit/scripts
4545
4646
- name: Run types
47-
run: pnpm turbo lint:types --affected
47+
run: bun turbo lint:types --affected
4848

4949
- name: Run prettier
50-
run: pnpm turbo root-lint:prettier
50+
run: bun turbo root-lint:prettier
5151

5252
- name: Run eslint
53-
run: pnpm turbo root-lint:eslint
53+
run: bun turbo root-lint:eslint
5454

5555
- name: Run tests
56-
run: pnpm turbo test --affected
56+
run: bun turbo test --affected
5757

5858
- name: Run build
59-
run: pnpm turbo build --affected
59+
run: bun turbo build --affected

.github/workflows/release.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,24 @@ jobs:
2222
- name: Setup Environment
2323
uses: jdx/mise-action@v3
2424

25-
- name: Get PNPM store
26-
id: pnpm-cache
27-
shell: bash
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30-
31-
- name: Setup pnpm cache
32-
uses: actions/cache@v4
25+
- uses: actions/cache@v4
3326
with:
34-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
27+
path: ~/.bun/install/cache
28+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
3629
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
30+
${{ runner.os }}-bun-
3831
3932
- name: Install dependencies
40-
run: pnpm install
33+
run: bun install
4134

4235
- name: Run build
43-
run: pnpm turbo build
36+
run: bun turbo build
4437

4538
- name: Create Release Pull Request or Publish to npm
4639
id: changesets
4740
uses: changesets/action@v1
4841
with:
49-
publish: pnpm release
42+
publish: bun release
5043
commit: 'chore: Version Packages'
5144
env:
5245
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm commitlint --edit $1
1+
bun commitlint --edit $1

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pnpm-lock.yaml
1+
bun.lock
22
.changeset/*.md

0 commit comments

Comments
 (0)