Closed saiichihashimoto closed 1 month ago
When running concurrently from a monorepo workspace, all commands exit 0.
concurrently
From the root, things are fine:
package.json:
... "explicitfail": "concurrently npm:explicitfail:*", "explicitfail:fail": "exit 1", ...
Command:
npm run explicitfail && echo shouldnt show
Output:
> explicitfail > concurrently npm:explicitfail:* [fail] [fail] > explicitfail:fail [fail] > exit 1 [fail] [fail] npm run explicitfail:fail exited with code 1
However, when I cd into packages/subpackage and have the same setup, it succeeds:
cd
packages/subpackage
packages/subpackage/package.json: (same thing)
packages/subpackage/package.json
> @monorepo/subpackage@0.0.0-development explicitfail > concurrently npm:explicitfail:* [fail] [fail] > @monorepo/subpackage@0.0.0-development explicitfail:fail [fail] > exit 1 [fail] [fail] npm ERR! Lifecycle script `explicitfail:fail` failed with error: [fail] npm ERR! Error: command failed npm ERR! in workspace: @monorepo/subpackage@0.0.0-development npm ERR! at location: /path/to/repo/monorepo/packages/subpackage [fail] npm run explicitfail:fail exited with code 0 shouldnt show
Interesting. Are you able to share a self-contained example repository?
I believe this was related to a turbo issue, so I think we're good here
turbo
When running
concurrently
from a monorepo workspace, all commands exit 0.From the root, things are fine:
package.json:
Command:
Output:
However, when I
cd
intopackages/subpackage
and have the same setup, it succeeds:packages/subpackage/package.json
: (same thing)Command:
Output: