Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

updates:
- package-ecosystem: "npm"
- package-ecosystem: "bun"
directory: "/"
schedule:
interval: "weekly"
Expand Down
29 changes: 11 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node CI
name: CI

permissions:
contents: read
Expand All @@ -18,29 +18,22 @@ concurrency:
cancel-in-progress: true

jobs:
node-ci:
name: Node CI
ci:
name: CI

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [24.x]

steps:
- uses: actions/checkout@v6

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"

- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn pretty:check
- run: yarn build
- run: yarn test --coverage
- name: Setup Bun
uses: oven-sh/setup-bun@v2.1.2

- run: bun install
- run: bun run lint
- run: bun run pretty:check
- run: bun run build
- run: bun test --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
workflow_dispatch:
workflow_run:
workflows: ["Node CI"]
workflows: ["CI"]
branches:
- main
types:
Expand All @@ -26,17 +26,12 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn semantic-release
- name: Setup Bun
uses: oven-sh/setup-bun@v2.1.2
- run: bun install
- run: bun run build
- run: bun run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
node_modules
dist
coverage
package-lock.json
.yarn/*
!.yarn/releases
!.yarn/plugins
.pnp.*
package-lock.json
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.2.2.cjs

This file was deleted.

1,515 changes: 1,515 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[test]
coverageDir = "coverage"
coverageReporter = ["lcov", "text"]
16 changes: 0 additions & 16 deletions jest.config.js

This file was deleted.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src",
"pretty": "prettier --write src",
"pretty:check": "prettier --check src",
"clean": "rimraf node_modules/ dist/ coverage/",
"clean": "rm -rf node_modules/ dist/ coverage/",
"build": "tsup",
"test": "jest",
"test": "bun test",
"semantic-release": "semantic-release"
},
"publishConfig": {
Expand All @@ -39,23 +39,21 @@
"dependencies": {
"jsonwebtoken": "^9.0.3"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.35.0"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/jest": "^30.0.0",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^24.10.1",
"@typescript-eslint/eslint-plugin": "^8.48.0",
"@typescript-eslint/parser": "^8.48.0",
"eslint": "^9.39.1",
"jest": "^30.2.0",
"prettier": "^3.7.3",
"rimraf": "^6.1.2",
"semantic-release": "^25.0.2",
"ts-jest": "^29.4.6",
"ts-node": "^10.9.2",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
},
"packageManager": "yarn@4.2.2"
"packageManager": "bun@1.2.2"
}
Loading