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/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

- [ ] Add tests
- [ ] Run tests
- [ ] `bun run format:fix && bun run lint:fix` to format the code
- [ ] `pnpm run format:fix && pnpm run lint:fix` to format the code
- [ ] Add [TSDoc](https://tsdoc.org/)/[JSDoc](https://jsdoc.app/about-getting-started) to document the code
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24]
node-version: [22, 24, 26]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Install Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- name: Install pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
bun-version-file: .tool-versions
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install dependencies
run: bun install
run: pnpm install --frozen-lockfile

- name: Run tests
run: bun run test:run
run: pnpm run test:run

- name: Build
run: bun run build
run: pnpm run build

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

- name: Format check
run: bun run format
run: pnpm run format
14 changes: 7 additions & 7 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version-file: .tool-versions

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version-file: .tool-versions
cache: pnpm

- name: Install Dependencies
run: bun install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Build
run: bun run build
run: pnpm run build

- name: Publish to StackBlitz
run: |
bun pkg-pr-new publish --compact
pnpm exec pkg-pr-new publish --compact
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
bun 1.3.9
# TODO: Update to v2.x when https://github.com/jsr-io/jsr-npm/issues/129 is resolved
deno 2.6.9
node 22.22.0
18 changes: 9 additions & 9 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ made for coding agents, not humans.

## Commands

- `bun install` — install dependencies
- `bun run build` — build (tsdown)
- `bun run watch` — build with auto-rebuild
- `bun run test` — run tests (Vitest)
- `bun run format:fix && bun run lint:fix` — fix format and lint
- `pnpm install` — install dependencies
- `pnpm run build` — build (tsdown)
- `pnpm run watch` — build with auto-rebuild
- `pnpm run test` — run tests (Vitest)
- `pnpm run format:fix && pnpm run lint:fix` — fix format and lint

Runtime: Node.js 20+. Package manager: Bun.
Runtime: Node.js 22+. Package manager: pnpm.

## Architecture

Expand All @@ -41,9 +41,9 @@ Runtime: Node.js 20+. Package manager: Bun.
3. Run the quality gates. All must pass:

```bash
bun run format:fix && bun run lint:fix
bun run test
bun run build
pnpm run format:fix && pnpm run lint:fix
pnpm run test
pnpm run build
```

4. Commit with conventional commits: `<type>(<scope>): <description>`.
Expand Down
1,403 changes: 0 additions & 1,403 deletions bun.lock

This file was deleted.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"format": "prettier src --check",
"format:fix": "prettier src --write",
"postbuild": "publint",
"prerelease": "bun run build",
"prerelease": "pnpm run build",
"release": "np"
},
"files": [
Expand Down Expand Up @@ -54,5 +54,8 @@
"typescript": "^5.9.3",
"vitest": "^3.2.4"
},
"packageManager": "bun@1.2.20"
"packageManager": "pnpm@11.20.0",
"engines": {
"node": ">=22.13.0"
}
}
Loading
Loading