Skip to content

Commit

Permalink
add a workaround of a strange npx bug on postinstall, fix #551
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 21, 2019
1 parent 709db52 commit cfff91d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core-js-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"shim"
],
"scripts": {
"postinstall": "node scripts/postinstall"
"postinstall": "node -e \"try { require('./scripts/postinstall'); } catch (e) { /* empty */ }\""
}
}
2 changes: 1 addition & 1 deletion packages/core-js-pure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"shim"
],
"scripts": {
"postinstall": "node scripts/postinstall"
"postinstall": "node -e \"try { require('./scripts/postinstall'); } catch (e) { /* empty */ }\""
}
}
2 changes: 1 addition & 1 deletion packages/core-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"shim"
],
"scripts": {
"postinstall": "node scripts/postinstall"
"postinstall": "node -e \"try { require('./scripts/postinstall'); } catch (e) { /* empty */ }\""
}
}

0 comments on commit cfff91d

Please sign in to comment.