[Monorepo] Pnpm recursive build --watch
does not trigger command for package with deps inside the monorepo
#13462
-
Describe the bugHello, I am working on a project with a monorepo using pnpm + vite and I have an issue about building my libraries. I have the next links:
When running command that run all packages for Thank you in advance for the time you are going to devote to my problem. Reproductionhttps://stackblitz.com/edit/vitejs-vite-mvc3wr Steps to reproduce
System InfoSystem:
OS: Windows 10 10.0.19045
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
Memory: 3.09 GB / 15.74 GB
Binaries:
Node: 20.0.0 - C:\Program Files\nodejs\node.EXE
npm: 9.6.4 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.41)
Internet Explorer: 11.0.19041.1566
npmPackages:
@vitejs/plugin-vue: ^4.2.3 => 4.2.3
vite: ^4.3.9 => 4.3.9 Used Package Managerpnpm LogsNo response Validations
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
-
This is not a bug in Vite nor pnpm. |
Beta Was this translation helpful? Give feedback.
This is not a bug in Vite nor pnpm.
pnpm run
waits for the command to finish before running the next command.vite build --watch
will not finish unless the user interrupts.There's a
--parallel
flag in pnpm for this kind of situation.https://pnpm.io/cli/exec#--parallel