nodejs: download prebuilt add-on at runtime

This commit is contained in:
shum
2026-10-10 12:27:31 +00:00
parent f9071033c0
commit 6f2fb68b2d
41 changed files with 268 additions and 111 deletions
+2 -5
View File
@@ -8,15 +8,12 @@
},
"files": [
"src",
"cpp",
"dist",
"binding.gyp",
"tsconfig.json",
"docs",
"examples"
],
"scripts": {
"install": "node-gyp configure; node-gyp rebuild --release",
"install-tools": "npm install -g node-gyp",
"configure": "node-gyp configure",
"build": "node-gyp rebuild && tsc && cp ./src/simplex.* ./dist",
@@ -28,13 +25,13 @@
"dependencies": {
"@simplex-chat/types": "^0.11.4",
"extract-zip": "^2.0.1",
"fast-deep-equal": "^3.1.3",
"node-addon-api": "^8.5.0"
"fast-deep-equal": "^3.1.3"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^25.0.5",
"jest": "^30.2.0",
"node-addon-api": "^8.5.0",
"ts-jest": "^29.4.6",
"typedoc": "^0.28.15",
"typedoc-plugin-markdown": "^4.9.0",