Skip to content

fix(angular): keep buildable libraries private - #36545

Merged
JamesHenry merged 2 commits into
nrwl:masterfrom
AI-JamesHenry-Org:fix/release-angular-buildable-publish
Aug 3, 2026
Merged

fix(angular): keep buildable libraries private#36545
JamesHenry merged 2 commits into
nrwl:masterfrom
AI-JamesHenry-Org:fix/release-angular-buildable-publish

Conversation

@AI-JamesHenry

@AI-JamesHenry AI-JamesHenry commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Current Behavior

Angular libraries generated with --buildable receive a source-level package.json without "private": true. Nx Release therefore discovers them as public packages and infers an nx-release-publish target rooted at the source project, which can publish source files even though the library was not generated with --publishable.

Expected Behavior

Buildable-only Angular libraries are generated as private and are excluded from default release and publish discovery. Libraries generated with --publishable remain public and continue publishing their compiled output from dist/{projectRoot}.

Related Issue(s)

Fixes #34004

@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 2c69f06

@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

👷 Deploy request for nx-dev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 2c69f06

@nx-cloud

nx-cloud Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 074f65b

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 12m 17s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 5s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 1m 2s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 19s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-08-02 14:46:52 UTC

@nx-cloud nx-cloud Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud has identified a flaky task in your failed CI:

Since the failure was identified as flaky, the solution is to rerun CI. Because this branch comes from a fork, it is not possible for us to push directly, but you can rerun by pushing an empty commit:

git commit --allow-empty -m "chore: trigger rerun"
git push

Nx Cloud View detailed reasoning in Nx Cloud ↗

🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.


🎓 Learn more about Self-Healing CI on nx.dev

@JamesHenry
JamesHenry marked this pull request as ready for review August 2, 2026 17:00
@JamesHenry
JamesHenry requested a review from a team as a code owner August 2, 2026 17:00
@JamesHenry
JamesHenry requested a review from FrozenPandaz August 2, 2026 17:00
@JamesHenry
JamesHenry enabled auto-merge (squash) August 2, 2026 17:00
@JamesHenry
JamesHenry merged commit 117701c into nrwl:master Aug 3, 2026
10 checks passed
ryanhefner pushed a commit to ryanhefner/nx that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nx release publishes source files instead of dist output

3 participants