Skip to content

Commit 049f12d

Browse files
docs: use pnpm for contributor commands
1 parent e67ddb6 commit 049f12d

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Benchmarked against [`@jridgewell/trace-mapping`](https://github.com/jridgewell/
202202

203203
Per-lookup amortized cost on a large map: **12 ns** (WASM batch) vs 17 ns (trace-mapping) — **1.4x faster**.
204204

205-
Run `cd benchmarks && npm run download-fixtures && npm run bench:real-world` to reproduce.
205+
Run `corepack pnpm --dir benchmarks run download-fixtures && corepack pnpm --dir benchmarks run bench:real-world` from the repository root to reproduce.
206206

207207
</details>
208208

@@ -302,18 +302,23 @@ cargo bench -p srcmap-remapping # remap vs remap_streaming
302302
<summary>Building WASM/NAPI packages and running JS benchmarks</summary>
303303

304304
```bash
305+
# Install the pinned workspace dependencies
306+
corepack enable
307+
corepack pnpm install --frozen-lockfile
308+
305309
# WASM packages
306-
cd packages/sourcemap-wasm && npm run build:all
307-
cd packages/generator-wasm && npm run build:all
308-
cd packages/remapping-wasm && npm run build:all
309-
cd packages/symbolicate-wasm && npm run build:all
310+
corepack pnpm --filter @srcmap/sourcemap-wasm build:all
311+
corepack pnpm --filter @srcmap/generator-wasm build:all
312+
corepack pnpm --filter @srcmap/remapping-wasm build:all
313+
corepack pnpm --filter @srcmap/symbolicate-wasm build:all
310314

311315
# NAPI packages
312-
cd packages/sourcemap && npm run build
313-
cd packages/codec && npm run build
316+
corepack pnpm --filter @srcmap/sourcemap build
317+
corepack pnpm --filter @srcmap/codec build
314318

315319
# JS benchmarks
316-
cd benchmarks && npm install && npm run bench:real-world
320+
corepack pnpm --dir benchmarks run download-fixtures
321+
corepack pnpm --dir benchmarks run bench:real-world
317322
```
318323

319324
</details>

0 commit comments

Comments
 (0)