You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a project using the @nx/jw:tsc executor with the generateLockfile option enabled because I would like to eventually use the pruned lockfile to build a Docker image.
Our project depends on @opentelemetry/auto-instrumentations-node which has a transitive dependency on an aliased package using a version range. This aliased package (@types/ioredis4) gets pruned from the generated lock file which causes npm ci to fail when installing packages to build our Docker image.
Expected Behavior
The aliased package does get not pruned from the generated lock file.
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
## Current Behavior
<!-- This is the behavior we have today -->
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes#22098Fixes#21180Fixes#21009
---------
Co-authored-by: James Henry <[email protected]>
(cherry picked from commit 0eb86c8)
Current Behavior
I'm building a project using the
@nx/jw:tsc
executor with thegenerateLockfile
option enabled because I would like to eventually use the pruned lockfile to build a Docker image.Our project depends on
@opentelemetry/auto-instrumentations-node
which has a transitive dependency on an aliased package using a version range. This aliased package (@types/ioredis4
) gets pruned from the generated lock file which causesnpm ci
to fail when installing packages to build our Docker image.Expected Behavior
The aliased package does get not pruned from the generated lock file.
GitHub Repo
https://github.com/zbristow/nx-aliased-package-bug
Steps to Reproduce
npm i
.npx nx run example:build
.docker build -f apps/example/Dockerfile dist/apps/example
to trigger the failure.Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: