diff options
author | Doron Behar <doron.behar@gmail.com> | 2024-06-03 16:06:26 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2024-06-03 17:09:22 +0300 |
commit | c704c029566aaf525d949b54b8a8d85bb6aab29b (patch) | |
tree | b73b2fda07fa008cd8caabf7d8e7070f57de0719 /doc/languages-frameworks | |
parent | 711884c56608d76285b681c5024818e5ddc76d05 (diff) |
doc/javascript: pnpm: mention lack of monorepos/workspaces support
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r-- | doc/languages-frameworks/javascript.section.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/languages-frameworks/javascript.section.md b/doc/languages-frameworks/javascript.section.md index 5421ca0258b1b..76db9d0007ce5 100644 --- a/doc/languages-frameworks/javascript.section.md +++ b/doc/languages-frameworks/javascript.section.md @@ -348,6 +348,8 @@ In case you are patching `package.json` or `pnpm-lock.yaml`, make sure to pass ` #### Dealing with `sourceRoot` {#javascript-pnpm-sourceRoot} +NOTE: Nixpkgs pnpm tooling doesn't support building projects with a `pnpm-workspace.yaml`, or building monorepos. It maybe possible to use `pnpm.fetchDeps` for these projects, but it may be hard or impossible to produce a binary from such projects ([an example attempt](https://github.com/NixOS/nixpkgs/pull/290715#issuecomment-2144543728)). + If the pnpm project is in a subdirectory, you can just define `sourceRoot` or `setSourceRoot` for `fetchDeps`. Note, that projects using `pnpm-workspace.yaml` are currently not supported, and will probably not work using this approach. If `sourceRoot` is different between the parent derivation and `fetchDeps`, you will have to set `pnpmRoot` to effectively be the same location as it is in `fetchDeps`. |