Commit 7b42332
authored
fix(nextjs): add semver to required packages in update-package-json (#35384)
## Current Behavior
When using @nx/next:build with Yarn PnP, the generated
.nx-helpers/with-nx.js requires semver at runtime, but semver is not
included in the generated package.json. This causes the application to
fail when starting in a deployed environment with the error: "Required
package: semver, Required by: /app/.nx-helpers/with-nx.js"
## Expected Behavior
The generated package.json should include semver as a dependency so that
.nx-helpers/with-nx.js can resolve it at runtime in all package manager
environments, including Yarn PnP.
## Related Issue(s)
Fixes #340951 parent 7fae6ba commit 7b42332
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
0 commit comments