mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
use prebuild instead of postinstall
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user