Skip to content

Commit 5113bd9

Browse files
fix(build): replace bun build with bun run build
1 parent 65a34a3 commit 5113bd9

11 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/performance-regression.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: bun install --frozen-lockfile
4242

4343
- name: Build project
44-
run: bun build
44+
run: bun run build
4545

4646
- name: Restore main baseline
4747
run: |
@@ -140,7 +140,7 @@ jobs:
140140
run: bun install --frozen-lockfile
141141

142142
- name: Build project
143-
run: bun build
143+
run: bun run build
144144

145145
- name: Capture baseline
146146
run: node bench/capture-baseline.js

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
bun lint
4848
bun typecheck
4949
bun test
50-
bun build
50+
bun run build
5151
5252
- name: Create Release Pull Request or Publish
5353
id: changesets

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
run: bun test
4848

4949
- name: Build
50-
run: bun build
50+
run: bun run build

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Thanks for your interest in improving h2m-parser! Keeping cognitive load low is
2222
- Husky runs `lint-staged` to format/lint staged files. Make sure your commits are clean.
2323
- Use [Changesets](https://github.com/changesets/changesets) for release notes. After feature work, run `bun changeset` to document changes and version bumps.
2424
- When the release PR opens, review the changelog and, after merging, approve the pending run in the `release` environment to publish.
25-
- CI runs `bun lint`, `bun typecheck`, `bun test`, and `bun build`. Keep the `verify` script green locally before pushing.
25+
- CI runs `bun lint`, `bun typecheck`, `bun test`, and `bun run build`. Keep the `verify` script green locally before pushing.
2626

2727
## Reporting issues
2828

@@ -54,7 +54,7 @@ bun regression
5454
bun qa
5555

5656
# Development watch mode
57-
bun build:watch # Terminal 1
57+
bun run build:watch # Terminal 1
5858
bun test:watch # Terminal 2
5959
```
6060

@@ -93,7 +93,7 @@ bun test:watch # Terminal 2
9393

9494
```bash
9595
# Start development
96-
bun build:watch # In terminal 1
96+
bun run build:watch # In terminal 1
9797
bun test:watch # In terminal 2
9898

9999
# After making changes

bench/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This folder contains the benchmarking harness described in `performance-implemen
55
## Quick start
66

77
```bash
8-
bun build
8+
bun run build
99
bun bench quick
1010
```
1111

bench/utils/h2m-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function ensureDistBuilt() {
2727
if (code === 0) {
2828
resolve();
2929
} else {
30-
reject(new Error(`bun build exited with code ${code}`));
30+
reject(new Error(`bun run build exited with code ${code}`));
3131
}
3232
});
3333
}).finally(() => {

docs/PERFORMANCE-REGRESSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ bun bench:compare:full
179179

180180
```bash
181181
# Watch mode - rerun on file changes
182-
bun build:watch & bun bench:compare:quick
182+
bun run build:watch & bun bench:compare:quick
183183
```
184184

185185
> ℹ️ **Configuration parity:** `bun bench:baseline`, `bun bench:regression`, and `bun bench:readme --fresh` all invoke the same comparison run (100 iterations, 3 warmups, 5MB per-file limit, dataset `tests/fixtures`). This keeps the baseline, regression gate, and published metrics directly comparable.

docs/RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Need to kick a release outside of an automatic merge? Use **Actions → Release
3333

3434
- *Publish fails with auth errors*: confirm the npm trusted publisher entry still points at `.github/workflows/release.yml` and the `release` environment exists. Re-run the job after fixing.
3535
- *No release PR appears*: make sure there is at least one unpublished changeset file on `main`; otherwise the workflow exits early. You can run it manually via `workflow_dispatch`.
36-
- *Need to bypass automation*: as a last resort you can run `bun verify && bun build && npm publish --access public`, but follow up by re-running `bun changeset version` so history stays in sync.
36+
- *Need to bypass automation*: as a last resort you can run `bun verify && bun run build && npm publish --access public`, but follow up by re-running `bun changeset version` so history stays in sync.
3737

3838
## Retired workflows
3939

docs/SCRIPTS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This document mirrors the scripts defined in `package.json` so newcomers can dis
44

55
## Build & Packaging
66

7-
- `bun build` – Build the distributable bundles in `dist/` via tsup.
8-
- `bun build:watch` – Rebuild bundles on file changes (handy while working on the CLI).
7+
- `bun run build` – Build the distributable bundles in `dist/`.
8+
- `bun run build:watch` – Rebuild bundles on file changes (handy while working on the CLI).
99
- `bun build:binary` – Compile standalone executable for current platform.
1010
- `bun build:binary:all` – Build binaries for all platforms (Linux, macOS, Windows)
11-
- `bun prepack` – Convenience alias used by npm when publishing; runs `bun build`.
11+
- `bun prepack` – Convenience alias used by npm when publishing; runs `bun run build`.
1212

1313
## Quality Gates
1414

@@ -27,12 +27,12 @@ This document mirrors the scripts defined in `package.json` so newcomers can dis
2727
## Publishing
2828

2929
- `bun changeset` – Create or edit Changesets.
30-
- `bun release` – Build and publish using Changesets automation (calls `bun build` internally).
30+
- `bun release` – Build and publish using Changesets automation (calls `bun run build` internally).
3131
- `bun prepare` – Husky hook installer (runs automatically after install).
3232

3333
## Benchmarking & Performance Tooling
3434

35-
The benchmarking utilities live under `bench/` and expect a fresh build (`bun build`) before running because they import from the compiled bundles. The `bun bench` command opens an interactive menu that wraps the most common flows; every entry has a matching script for CI usage.
35+
The benchmarking utilities live under `bench/` and expect a fresh build (`bun run build`) before running because they import from the compiled bundles. The `bun bench` command opens an interactive menu that wraps the most common flows; every entry has a matching script for CI usage.
3636

3737
### Everyday commands
3838

@@ -77,7 +77,7 @@ The benchmarking utilities live under `bench/` and expect a fresh build (`bun bu
7777
```bash
7878
bun install # bootstrap
7979
bun verify # lint + typecheck + tests
80-
bun build # produce dist/ bundles
80+
bun run build # produce dist/ bundles
8181
bun bench # open interactive benchmark menu
8282
bun bench quick # run quick benchmark via CLI shortcut
8383
bun bench:compare # compare h2m-parser vs. other converters (Markdown output)

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Make sure you've built the project first:
6767
bun install
6868

6969
# Build the library
70-
bun build
70+
bun run build
7171

7272
# Run an example
7373
node examples/basic.js
@@ -130,4 +130,4 @@ const converter = new H2MParser({
130130

131131
- Check the [main README](../README.md) for detailed API documentation
132132
- Report issues on [GitHub](https://github.com/gustavovalverde/h2m-parser/issues)
133-
- See [CONTRIBUTING.md](../CONTRIBUTING.md) for development guidelines
133+
- See [CONTRIBUTING.md](../CONTRIBUTING.md) for development guidelines

0 commit comments

Comments
 (0)