Skip to content

Commit add1b2d

Browse files
authored
feat(repo): switch to bun (#287)
* switch to bun * set up eslint and ts
1 parent 0d8094e commit add1b2d

20 files changed

Lines changed: 18385 additions & 33113 deletions

.eslintignore

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

.eslintrc.json

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

.github/workflows/test.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,23 @@ jobs:
1616
repository: ${{ github.event.pull_request.head.repo.full_name }}
1717
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
1818

19-
- name: Setup Node
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version-file: .nvmrc
19+
- name: Setup Bun
20+
uses: oven-sh/setup-bun@v1
2321

2422
- name: Install Dependencies
25-
run: npm ci
23+
run: bun i
2624

2725
- name: Run Lint
28-
run: npm run lint
26+
run: bun lint
27+
28+
- name: Type Check
29+
run: bun tsc
2930

3031
- name: Run Unit Tests
31-
run: npm run test
32+
run: bun jest
3233

3334
- name: Package
34-
run: npm run package
35+
run: bun package
3536

3637
- name: Compare the expected and actual dist/ directories
3738
run: |

.husky/pre-commit

100755100644
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npm run pre-commit
1+
bun pre-commit

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
required: false
2121
runs:
2222
using: 'node16'
23-
main: 'dist/index.js'
23+
main: 'dist/main.js'
2424
branding:
2525
icon: file
2626
color: red

bun.lockb

166 KB
Binary file not shown.

0 commit comments

Comments
 (0)