Skip to content

Commit

Permalink
refactor: migrate to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagi-ovo committed May 16, 2024
1 parent 59727bd commit 03dc957
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 🤌 Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: 🤌 Setup Bun
uses: oven-sh/setup-bun@v1

- name: 📥 Download deps
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: 🔬 Lint
run: pnpm run lint:strict
run: bun run lint:strict

- name: 🔎 Type check
run: pnpm run typecheck
run: bun run typecheck

- name: 💅 Prettier check
run: pnpm run format:check
run: bun run format:chec
2 changes: 1 addition & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm install
bun install
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ yarn-error.log*
# changelog
CHANGELOG.md

pnpm-lock.yaml
bun.lockb

README.md
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint:fix": "eslint src --fix && pnpm format",
"lint:fix": "eslint src --fix && bun format",
"lint:strict": "eslint --max-warnings=0 src",
"typecheck": "tsc --noEmit --incremental false",
"format": "prettier -w .",
Expand Down

0 comments on commit 03dc957

Please sign in to comment.