Do not run npm postinstall from repo
This commit is contained in:
parent
996a531147
commit
573c88c67f
|
@ -5,13 +5,13 @@
|
|||
"main": "dist/index.js",
|
||||
"files": [
|
||||
"dist/**",
|
||||
"install.js"
|
||||
"postinstall.js"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "npm run clean && tsc",
|
||||
"build-binary": "neon build --release && mv native/index.node dist/native.node",
|
||||
"clean": "rm -rf dist",
|
||||
"postinstall": "node install.js"
|
||||
"postinstall": "node postinstall.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -47,7 +47,7 @@ const downloadNativeBinary = async () => {
|
|||
}
|
||||
};
|
||||
|
||||
if (!fs.existsSync(binaryPath)) {
|
||||
if (!fs.existsSync(path.join(__dirname, '.no-postinstall')) && !fs.existsSync(binaryPath)) {
|
||||
downloadNativeBinary()
|
||||
.then(
|
||||
() => console.log(`Downloaded ${pkg.name}`),
|
Loading…
Reference in New Issue