[BUG] workspaces packages are built in parallel after npm ci even though they depend on each other #4475
Closed
2 tasks done
Labels
Enhancement
new feature or improvement
Priority 2
secondary priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I'm using
[email protected]
and making use of the workspaces feature, my (simplified) project's structure is the following:In my
package.json
file I have the following config:The project uses TypeScript and the packages
logger
,metrics
,tracing
all depend oncommons
.When I run
npm ci
in my CI/CD environment (GitHub Actions) after installing the dependencies npm tries to build (tsc
) the packages but appear to do so in parallel and so the build of all the dependant packages fails because it's being done beforecommons
is ready.Expected Behavior
Npm to understand that some packages of the workspace are dependant on others and build accordingly.
Alternatively to allow me to specify that I want to use a remote (i.e. not linked) version of the package even though the version number is the same as the local one.
Steps To Reproduce
Read above, also you can see the error (with
logLevel == silly
) here https://github.com/dreamorosi/aws-lambda-powertools-typescript/runs/5345787297?check_suite_focus=true#step:6:5380 (<- Line that causes the error)Environment
The text was updated successfully, but these errors were encountered: