Configuring pnpm
Point pnpm at the Seal Artifact Server using a per-project .npmrc.
pnpm reads registry configuration from .npmrc files, the same as npm. The configuration is identical.
Configuration
Create or edit .npmrc in the project root:
registry=https://npm.sealsecurity.io/
//npm.sealsecurity.io/:username=<project-id>
//npm.sealsecurity.io/:_password=<token-base64>
//npm.sealsecurity.io/:always-auth=trueReplace <project-id> with the Seal Project ID as a literal value. Replace <token-base64> with the base64 encoding of your production token:
echo -n "$SEAL_TOKEN" | base64 # macOS
echo -n "$SEAL_TOKEN" | base64 -w0 # LinuxThe _password field is base64-decoded by pnpm in the same way as npm, so encoding the token is mandatory.
Verify
pnpm config get registryThe output should be https://npm.sealsecurity.io/. A clean pnpm install should resolve packages from the same host.
Related
Configuring npm: the equivalent npm setup, using the same configuration file format.
Editing dependency files manually: manifest editing with
pnpm.overrides(pnpm's transitive-override mechanism).
Last updated