Skip to content

Commit

Permalink
use prebuild instead of postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
jerch committed Oct 25, 2019
1 parent 04f828b commit 03435a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions bin/install-addons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 03435a9

Please sign in to comment.