Fix Node.js postinstall

This commit is contained in:
Wilson Lin 2022-06-22 02:31:10 +10:00
parent a246e72b4e
commit e63fc8d27f
2 changed files with 4 additions and 2 deletions

View File

@ -32,9 +32,11 @@
"node": ">= 8.6.0" "node": ">= 8.6.0"
}, },
"homepage": "https://github.com/wilsonzlin/minify-html#readme", "homepage": "https://github.com/wilsonzlin/minify-html#readme",
"dependencies": {
"cargo-cp-artifact": "^0.1"
},
"devDependencies": { "devDependencies": {
"@types/node": "^14.6.0", "@types/node": "^14.6.0",
"cargo-cp-artifact": "^0.1",
"shx": "^0.3.4" "shx": "^0.3.4"
}, },
"keywords": [ "keywords": [

View File

@ -46,7 +46,7 @@ const downloadNativeBinary = async () => {
throw e; throw e;
} }
fs.writeFileSync(binaryPath, zlib.gunzipSync(binary)); fs.writeFileSync(binaryPath, binary);
break; break;
} }
}; };