Skip to content

Commit

Permalink
feat(repo): switch to bun (#287)
Browse files Browse the repository at this point in the history
* switch to bun

* set up eslint and ts
  • Loading branch information
danadajian authored Apr 23, 2024
1 parent 0d8094e commit add1b2d
Show file tree
Hide file tree
Showing 20 changed files with 18,385 additions and 33,113 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

57 changes: 0 additions & 57 deletions .eslintrc.json

This file was deleted.

17 changes: 9 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,23 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install Dependencies
run: npm ci
run: bun i

- name: Run Lint
run: npm run lint
run: bun lint

- name: Type Check
run: bun tsc

- name: Run Unit Tests
run: npm run test
run: bun jest

- name: Package
run: npm run package
run: bun package

- name: Compare the expected and actual dist/ directories
run: |
Expand Down
5 changes: 1 addition & 4 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run pre-commit
bun pre-commit
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
required: false
runs:
using: 'node16'
main: 'dist/index.js'
main: 'dist/main.js'
branding:
icon: file
color: red
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit add1b2d

Please sign in to comment.