fix: Ensure postinstall script does not error

This commit is contained in:
Mariusz Nowak
2022-04-20 13:56:34 +02:00
parent 50e0cf6119
commit bcd3a211c4
+1 -1
View File
@@ -112,7 +112,7 @@
"coverage": "nyc npm test",
"lint": "eslint --ignore-path=.gitignore .",
"lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
"postinstall": " node -e \"try{require('./_postinstall')}catch(e){}\"",
"postinstall": " node -e \"try{require('./_postinstall')}catch(e){}\" || exit 0",
"prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
"prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
"prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",