use prebuild instead of postinstall

This commit is contained in:
Jörg Breitbart
2019-10-25 22:11:51 +02:00
parent 04f828bc1a
commit 03435a9f4d
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -29,8 +29,6 @@ if (fs.existsSync(addonsPath)) {
const addonPath = path.join(addonsPath, folder);
// install only if there are dependencies listed
// also skip addon if it does not contain any package.json
// (might happen after branch switches)
let packageJson;
try {
packageJson = require(path.join(addonPath, 'package.json'));
+1 -1
View File
@@ -8,7 +8,6 @@
"repository": "https://github.com/xtermjs/xterm.js",
"license": "MIT",
"scripts": {
"postinstall": "node -e \"try { require('./bin/install-addons'); } catch(e) {}\"",
"prepackage": "npm run build",
"package": "webpack",
"start": "node demo/start",
@@ -17,6 +16,7 @@
"posttest": "npm run lint",
"test-api": "mocha \"**/*.api.js\"",
"test-unit": "node ./bin/test.js",
"prebuild": "node ./bin/install-addons.js",
"build": "tsc -b ./tsconfig.all.json",
"prepare": "npm run build",
"prepublishOnly": "npm run package",