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 have a brand new nx workspace, a simple node application + express framework.
The app is located is apps folder
There are also 3 libs generated this way: npx nx generate @nx/node:library --name=my-app-api --directory=libs/my-app/api --importPath=@mtc/my-app-api --projectNameAndRootFormat=as-provided --strict=true --testEnvironment=node --no-interactive
my-app imports express and my-app-api lib
my-app-api lib imports my-app-service and my-app-util libs
my-app-service lib imports pino
my-app-util lib imports uuid
When I run npx nx run my-app:build locally on my machine, the generated dist/apps/my-app/package.json file in most cases looks like this:
However when I run the same command in github action https://github.com/miszczu-drako/nx-issue/blob/main/.github/workflows/ci.yml line 39, the generated package.json looks like this in all cases:
Current Behavior
I have a brand new nx workspace, a simple node application + express framework.
The app is located is apps folder
There are also 3 libs generated this way:
npx nx generate @nx/node:library --name=my-app-api --directory=libs/my-app/api --importPath=@mtc/my-app-api --projectNameAndRootFormat=as-provided --strict=true --testEnvironment=node --no-interactive
my-app
importsexpress
andmy-app-api
libmy-app-api
lib importsmy-app-service
andmy-app-util
libsmy-app-service
lib importspino
my-app-util
lib importsuuid
When I run
npx nx run my-app:build
locally on my machine, the generateddist/apps/my-app/package.json
file in most cases looks like this:Sometimes
express
dependency is missingHowever when I run the same command in github action
https://github.com/miszczu-drako/nx-issue/blob/main/.github/workflows/ci.yml
line 39, the generated package.json looks like this in all cases:Here's a sample of workflow run
https://github.com/miszczu-drako/nx-issue/actions/runs/11902565506/job/33167834974
Expected Behavior
The generated package.json should have all dependencies listed
GitHub Repo
https://github.com/miszczu-drako/nx-issue
Steps to Reproduce
cat dist/apps/my-app/package.json
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
I think that it broke around nx version 19.1
The text was updated successfully, but these errors were encountered: