Skip to content

[Question]: What's the alternative for noBuild? #591

Answered by dianjuar
dgonzalezr asked this question in Q&A
Discussion options

You must be logged in to vote

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:

    "publish": {
      "executor": "ngx-deploy-npm:deploy",
      "options": {
        "access": "public",
        "tag": "latest"
      },
     "dependsOn": ["build"]
    },

With that configuration, when you execute the publish target, it will first …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dianjuar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #590 on February 02, 2024 17:33.