Skip to content

Commit ce2936d

Browse files
committed
New release method for individual binary installs
1 parent befa1fb commit ce2936d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"import": "./ESM_wrapper.mjs",
99
"require": "./uws.js",
1010
"types": "./index.d.ts"
11-
}
11+
},
12+
"optionalDependencies": {}
1213
}

uws.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
module.exports = (() => {
1919
try {
20-
return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node');
20+
return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules);
2121
} catch (e) {
2222
throw new Error('This version of uWS.js (v20.52.0) supports only Node.js versions 20, 22, 23 and 24 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).\n\n' + e.toString());
2323
}

0 commit comments

Comments
 (0)