Skip to content

Fix broken NPM distributables#1331

Merged
Archmonger merged 3 commits intoreactive-python:mainfrom
Archmonger:v2-fix-broken-package-json-npm
Feb 7, 2026
Merged

Fix broken NPM distributables#1331
Archmonger merged 3 commits intoreactive-python:mainfrom
Archmonger:v2-fix-broken-package-json-npm

Conversation

@Archmonger
Copy link
Contributor

@Archmonger Archmonger commented Feb 6, 2026

Description

In the previous PRs, I had attempted to work-around the lack of Trusted Publishing in bun publish by utilizing npm publish. However, bun publish appears to also include hidden features such as path translations for bun specific package.json syntax. Additionally, npm publish will utilize .gitignore to determine which files to exclude from the upload, which is different behavior than npm publish. This ultimately made packages published in the last release unusable.

To fix this, we must now first create bundle the package into a tgz archive using bun pm pack before uploading it via npm publish dist.tgz.

Checklist

Please update this checklist as you complete each item:

  • Tests have been developed for bug fixes or new functionality.
  • The changelog has been updated, if necessary.
  • Documentation has been updated, if necessary.
  • GitHub Issues closed by this PR have been linked.

By submitting this pull request I agree that all contributions comply with this project's open source license(s).

@Archmonger Archmonger marked this pull request as ready for review February 6, 2026 23:42
@Archmonger Archmonger merged commit 860d403 into reactive-python:main Feb 7, 2026
20 checks passed
@Archmonger Archmonger deleted the v2-fix-broken-package-json-npm branch February 7, 2026 00:22
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.

1 participant