Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Bun #192

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "pnpm"
- uses: oven-sh/setup-bun@v1
- name: 📦 Install packages
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile
- name: 🆎 TypeCheck
run: pnpm lint
run: bun lint
- name: 🧪 Run tests
run: pnpm test
run: bun test
- name: 🏗️ Build
run: pnpm build
run: bun build
13 changes: 3 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "pnpm"

- run: pnpm install --frozen-lockfile
- uses: oven-sh/setup-bun@v1
- run: bun install
- name: Create Release PR or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
publish: bun run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Binary file added bun.lockb
Binary file not shown.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"lint": "tsc",
"test": "vitest run",
"test:dev": "vitest",
"ci": "pnpm run lint && pnpm run test && pnpm run build",
"release": "pnpm run ci && changeset publish",
"ci": "bun run lint && bun run test && bun run build",
"release": "bun run ci && changeset publish",
"dev:watch": "tsup src/index.ts --format cjs,esm --dts --watch"
},
"repository": {
Expand All @@ -30,6 +30,7 @@
"devDependencies": {
"@changesets/cli": "^2.26.0",
"@faker-js/faker": "^7.6.0",
"@types/bun": "^1.0.12",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"axios": "^1.3.4",
Expand Down
Loading