Skip to content

fix: publish from package-level dist folder#432

Merged
justinorringer merged 8 commits intoRedHatInsights:mainfrom
charlesmulder:RHCLOUD-45399
Feb 25, 2026
Merged

fix: publish from package-level dist folder#432
justinorringer merged 8 commits intoRedHatInsights:mainfrom
charlesmulder:RHCLOUD-45399

Conversation

@charlesmulder
Copy link
Contributor

@charlesmulder charlesmulder commented Feb 25, 2026

The migrated packages (those with source in src/ and compiled output in dist/) were being published from their package root instead of their dist/ folder. This meant the published package contained source files and the package.json's main, typings, and exports fields pointed to non-existent files, making the packages broken for consumers.

The fix adds a nx-release-publish target to each migrated package's project.json with packageRoot set to {projectRoot}/dist, directing nx release publish to publish from the correct directory.

Copy link
Contributor

@justinorringer justinorringer left a comment

Choose a reason for hiding this comment

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

LGTM!

@justinorringer justinorringer merged commit c97ef71 into RedHatInsights:main Feb 25, 2026
9 checks passed
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.

3 participants