Skip to content

Commit d19373a

Browse files
authored
doc: update Verdaccio docs (#4817)
1 parent 77a14e5 commit d19373a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

book/src/02_development/02_verdaccio.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ It’s useful to test things related to publishing without actually publishing,
1010
## Usage
1111

1212
1. In one terminal, run `verdaccio`
13-
2. In another terminal login with `npm login --registry=http://localhost:4873/`. Any user and password will do.
14-
3. Publish your package by passing the verdaccio registry as a parameter: `npm publish --registry=http://localhost:4873/`.
13+
2. In another terminal login with `pnpm login --registry=http://localhost:4873/`. Any user and password will do.
14+
3. Publish your package by passing the verdaccio registry as a parameter: `pnpm publish --registry=http://localhost:4873/`.
1515
4. Go to the project where you want to test and install the package with `npm i your-package --registry=http://localhost:4873/`.
1616

17+
> Note: Read [Local Release](./03_local_release.md) on special instructions for publishing EDR NPM packages using Verdaccio.
18+
1719
## Updating a package
1820

1921
If after publishing to `verdaccio` you want to make some changes and try them, you’ll have to publish the package with a new version and then run `npm i your-package@latest --registry=http://localhost:4873/` in the test project.

book/src/02_development/03_local_release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ These are instructions for releasing the [EDR NPM package](../../crates/edr_napi
44

55
1. Install and start [Verdaccio](./02_verdaccio.md).
66
2. Go to the [edr_napi](../../crates/edr_napi/) directory.
7-
3. Run `yarn build`.
7+
3. Run `pnpm build`.
88
4. Look for the NAPI binary that was built for your platform. It has the format `edr.<PLATFORM>.node`. For example on Apple Silicon Macs, it's called `edr.darwin-arm64.node`.
99
5. Move the NAPI binary to the appropriate platform-specifc package in the [npm](../../crates/edr_napi/npm) directory. For example, on Apple Silicon Macs: `mv edr.darwin-arm64.node npm/darwin-arm64`.
1010
6. Complete the Verdaccio [publish steps](./02_verdaccio.md#usage) in the [edr_napi](../../crates/edr_napi/) directory. You can ignore the warnings about not finding NAPI binaries for other platforms.

0 commit comments

Comments
 (0)