Skip to content

build: write abi version to published npm package#47598

Merged
MarshallOfSound merged 1 commit intomainfrom
sam/write-abi
Jun 30, 2025
Merged

build: write abi version to published npm package#47598
MarshallOfSound merged 1 commit intomainfrom
sam/write-abi

Conversation

@MarshallOfSound
Copy link
Copy Markdown
Member

This adds a helper file that makes it easier for tools like node-abi to determine the ABI version of an otherwise unknown package. node-abi is a pretty massive source of annoyance for folks, even for seasoned Electron App developers it's an annoying thing you need to keep ensuring you update. Package managers don't make it easy, so instead to mitigate this as much as possible I'm proposing we write this file to disk, and then in node-abi if we are resolving a version we don't recognize we try to find this file on disk for a matching electron version. If it matches, and it exists, we can serve it and app developers don't need to do any package manager shenanigans.

Notes: Added abi_version file to the npm package

@MarshallOfSound MarshallOfSound requested a review from a team as a code owner June 29, 2025 00:38
@codebytere
Copy link
Copy Markdown
Member

@MarshallOfSound do we want to backport this?

@MarshallOfSound
Copy link
Copy Markdown
Member Author

Want to be sure it works first 🤣 will wait for a good nightly and then BP

@MarshallOfSound MarshallOfSound merged commit d347632 into main Jun 30, 2025
104 of 105 checks passed
@MarshallOfSound MarshallOfSound deleted the sam/write-abi branch June 30, 2025 22:01
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Jun 30, 2025

Release Notes Persisted

Added abi_version file to the npm package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants