Skip to content

Commit

Permalink
fix: Ensure postinstall script does not error
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Apr 20, 2022
1 parent f74cf7e commit a0be4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"",
Expand Down

1 comment on commit a0be4fd

@LouisRomeas
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This modification actually created an error on Windows, as Powershell doesn't understand "||" in this context. (Issue #181 )

Please sign in to comment.