NX Release package.json out of sync #27385
Replies: 2 comments
-
The flip side of that is if i set "version": {
"generatorOptions": {
"packageRoot": "dist/{projectRoot}"
}
} It bumps the /dist folders package.json, but not the source lib, so they end up out of sync but in a different way 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
I have the exact same question and use a workaround below. I do not configure I configure the publish subcommand I execute following commands during a release:
Step 2 will build artefacts with updated |
Beta Was this translation helpful? Give feedback.
-
Hi,
Bit of a weird one,
I have just started using
nx release
in fixed mode to keep packages in sync.I have the following config in
nx.json
"preVersionCommand": "nx run-many --target=build "
- this builds the libs prior to versioning and puts the output in the workspace root/dist/{libname}
folder.However, when it then versions, it versions the
package.json
file in the relevantlib
directory and doesn't update the ones in/dist/{libname}
so they are always one version behind whennx release
publishes.Maybe i'm missing something obvious ❓ 🤷♂️
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions