Skip to content

Instantly share code, notes, and snippets.

@santosh-rumsan
Last active February 21, 2024 18:42
Show Gist options
  • Save santosh-rumsan/d3dee8468937f1ff5f4793b531a4f035 to your computer and use it in GitHub Desktop.
Save santosh-rumsan/d3dee8468937f1ff5f4793b531a4f035 to your computer and use it in GitHub Desktop.
Build nx library with dependencies

Build nx library with dependencies

Add this to nx.json

    "@nrwl/js": {
      "analyzeSourceFiles": true
    }
  }

And this two options to build target (I'm using @nrwl/web:rollup) in the project.json:

"updateBuildableProjectDepsInPackageJson": true,
"buildableProjectDepsInPackageJsonType": "dependencies"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment