Skip to content

Commit 5c4c505

Browse files
committed
[publish binary] finally fix npm install problem
1 parent bbdfe36 commit 5c4c505

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!lib

native/.keep

Whitespace-only changes.

native/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Whitelist a single index.node file in a directory
2+
# Source: https://stackoverflow.com/q/30976685/206570
3+
*
4+
!index.node

package-lock.json

Lines changed: 21 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rnnoise",
3-
"version": "0.1.5",
3+
"version": "0.1.8",
44
"description": "Node.js bindings to Xiph's RNNoise denoising C library",
55
"keywords": [
66
"audio",
@@ -20,24 +20,18 @@
2020
"author": "Cedric Chee <cedric@invictusbyte.com>",
2121
"license": "MIT",
2222
"dependencies": {
23-
"@amilajack/node-pre-gyp": "github:amilajack/node-pre-gyp#neon-compat",
2423
"neon-cli": "^0.3.3",
24+
"node-pre-gyp": "^0.14.0",
2525
"node-pre-gyp-github": "^1.4.3"
2626
},
2727
"scripts": {
28-
"install": "node-pre-gyp install --fallback-to-build=false || neon build --release",
28+
"install": "node-pre-gyp install --update-binary --fallback-to-build=false || neon build --release",
2929
"package": "node-pre-gyp package",
3030
"upload-binary": "node-pre-gyp package && node-pre-gyp-github publish",
3131
"build": "neon build",
3232
"build-release": "neon build --release",
3333
"version": "npm run build-release"
3434
},
35-
"files": [
36-
"lib/",
37-
"native/.keep",
38-
"README.md",
39-
"LICENSE"
40-
],
4135
"engines": {
4236
"node": ">= 8.11.3"
4337
},
@@ -46,7 +40,6 @@
4640
"host": "https://github.com/cedrickchee/rnnoise-nodejs/releases/download/",
4741
"remote_path": "{version}",
4842
"package_name": "{node_abi}-{platform}-{arch}.tar.gz",
49-
"module_path": "./native/",
50-
"pkg_path": "."
43+
"module_path": "./native/"
5144
}
5245
}

0 commit comments

Comments
 (0)