[Question]: What's the alternative for noBuild
?
#591
-
Hello, I've seen that the
We care about building everything before publishing, and we were using the noBuild option to avoid rebuilding when executing the publish command from our Nx monorepo.The publish/deploy Nx target looks like: "publish": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public",
"noBuild": true,
"tag": "latest"
}
}, With the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
To answer your specific question, I would say that since the internal build process has been removed and you take care of the build process manually before publishing, remove the More info to articulate my answerThe internal build process was deprecated for the Nx feature "publish": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public",
"tag": "latest"
},
"dependsOn": ["build"]
}, With that configuration, when you execute the For more information, you can visit We put much effort into creating migration scripts, thinking in all possible cases to ensure a smooth transition to V8. This specific case is considered, so there is a good chance that the migration scripts have you covered 👍 # Run Migrations
nx migrate ngx-deploy-npm
nx migrate --run-migrations
# Review changes 👀
# Commit changes This PR covers your case; I hope it will help you through your upgrade. https://github.com/IPS-LMU/octra/pull/187/files Also, this blog post will help users through the ngx-deploy-npm@8.0.0 migration. It talks in depth about all the changes and their motivations. https://dev.to/dianjuar/whats-coming-to-ngx-deploy-npm-v8-23gn Thank you for bringing your concern. Please let us know if you need further help. |
Beta Was this translation helpful? Give feedback.
-
Thank you @dianjuar!!! As always, really helpful, I will get back with feedback once I give it a try 🙂 |
Beta Was this translation helpful? Give feedback.
-
@dianjuar, following your advice, I just upgraded to v8 and triggered a deploy/publish without issue. We can close this now, thank you 🙌🏼 |
Beta Was this translation helpful? Give feedback.
To answer your specific question, I would say that since the internal build process has been removed and you take care of the build process manually before publishing, remove the
noBuild
option should be enough. Your library will only be built once.More info to articulate my answer
The internal build process was deprecated for the Nx feature
dependsOn
. That means that if you want to build before publishing, your target will look like this:With that configuration, when you execute the
publish
target, it will first …