-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.npmrc
More file actions
15 lines (15 loc) · 911 Bytes
/
.npmrc
File metadata and controls
15 lines (15 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Hoist `@relayburn/*` workspace packages into the root `node_modules/`.
#
# Why: scripts under `tests/fixtures/cli-golden/scripts/` (`build-ledger.mjs`,
# `capture-snapshots.mjs`) import `@relayburn/ledger` directly. Node ESM
# resolution walks up `node_modules/` from the script's location, and those
# scripts live outside any workspace package — so without hoisting, the
# resolver never finds the symlinks pnpm puts under each consumer's
# `packages/<pkg>/node_modules/@relayburn/`. The conformance test
# (`packages/sdk-node/test/conformance.test.js`) and `pnpm run golden:capture`
# both spawn `build-ledger.mjs`, so both break in clean checkouts without this.
#
# Hoisting workspace siblings to the root is safe — they're our own packages,
# not third-party — and matches pnpm's recommended pattern for tooling that
# runs outside workspace package boundaries.
public-hoist-pattern[]=@relayburn/*