You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include all the static libraries for all supported platforms in the npm module.
Post-install script to download the artifacts directly from someplace like S3.
Publish npm modules for each supported architecture and use a post-install script to npm i the module for the specific architecture.
Another consideration is ensuring developers have a comprehensive list of what they need. It's very possible that they npm install ssc just to have building an application fail since they don't have everything necessary.
The text was updated successfully, but these errors were encountered:
trevnorris
added
the
build
An issue, discussion, or pull request related to building the source
label
Jan 5, 2023
I did this for the tusd-static module a while ago which was just:
const{ platform }=processtry{module.exports=require(`tusd-static-${platform}`)}catch(err){constmessage='Unable to resolve a static `tusd(1)` binary for platform: '+platformthrownewError(message)}
where tusd-static-{darwin,linux,win32} were the variants
There are two options for releasing on npm:
npm i
the module for the specific architecture.Another consideration is ensuring developers have a comprehensive list of what they need. It's very possible that they npm install ssc just to have building an application fail since they don't have everything necessary.
The text was updated successfully, but these errors were encountered: