-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New release method for individual binary installs #1126
base: binaries
Are you sure you want to change the base?
Conversation
package.json
Outdated
@@ -8,5 +8,8 @@ | |||
"import": "./ESM_wrapper.mjs", | |||
"require": "./uws.js", | |||
"types": "./index.d.ts" | |||
}, | |||
"optionalDependencies": { | |||
$deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This placeholder will be replaced with the actual single binary versions.
uws.js
Outdated
@@ -17,7 +17,7 @@ | |||
|
|||
module.exports = (() => { | |||
try { | |||
return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node'); | |||
return require('@uws/uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the new path that resolves to the specific binary installed as its own package
These changes allow for the new release.yml script to function properly. Both this PR and #1125 must be merged for everything to work right