> For the complete documentation index, see [llms.txt](https://docs.sealsecurity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealsecurity.io/using-platform/working-with-seal-apps/artifact-server/pnpm.md).

# Editing pnpm dependencies

## Direct dependencies

The pnpm manifest is `package.json`. Replace the version range with the sealed version:

```diff
 "dependencies": {
-  "ejs": "2.7.4",
+  "ejs": "2.7.4-sp1",
   ...
 }
```

Run `pnpm install` and the build pulls `ejs@2.7.4-sp1` from `npm.sealsecurity.io` instead of `ejs@2.7.4` from the public registry.

## Transitive dependencies (`pnpm.overrides`)

pnpm supports overrides under the `pnpm` key in `package.json`. Each sealed version is fully compatible with its specific origin version only, so the override has to be version-specific: pair the origin version with its sealed counterpart, leaving other versions of the same package untouched.

```json
{
  "pnpm": {
    "overrides": {
      "ejs@2.7.4": "2.7.4-sp1"
    }
  }
}
```

This only overrides when the resolved version would be `2.7.4`. If another path in the dependency graph asks for `ejs@4.0.0`, the override does not touch it.

## Related

* [Configuring pnpm](/setup-apps-os/artifact-server/configuring-package-managers/pnpm.md): the package-manager setup that points pnpm at the Seal Artifact Server.
* [Editing npm dependencies](/using-platform/working-with-seal-apps/artifact-server/npm.md): the npm equivalent.
