File tree 2 files changed +1
-3
lines changed
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ if (fs.existsSync(addonsPath)) {
29
29
const addonPath = path . join ( addonsPath , folder ) ;
30
30
31
31
// install only if there are dependencies listed
32
- // also skip addon if it does not contain any package.json
33
- // (might happen after branch switches)
34
32
let packageJson ;
35
33
try {
36
34
packageJson = require ( path . join ( addonPath , 'package.json' ) ) ;
Original file line number Diff line number Diff line change 8
8
"repository" : " https://github.com/xtermjs/xterm.js" ,
9
9
"license" : " MIT" ,
10
10
"scripts" : {
11
- "postinstall" : " node -e \" try { require('./bin/install-addons'); } catch(e) {}\" " ,
12
11
"prepackage" : " npm run build" ,
13
12
"package" : " webpack" ,
14
13
"start" : " node demo/start" ,
17
16
"posttest" : " npm run lint" ,
18
17
"test-api" : " mocha \" **/*.api.js\" " ,
19
18
"test-unit" : " node ./bin/test.js" ,
19
+ "prebuild" : " node ./bin/install-addons.js" ,
20
20
"build" : " tsc -b ./tsconfig.all.json" ,
21
21
"prepare" : " npm run build" ,
22
22
"prepublishOnly" : " npm run package" ,
You can’t perform that action at this time.
0 commit comments