Skip to content

Commit

Permalink
chore: Improve postinstall script configuration
Browse files Browse the repository at this point in the history
In some environements (in this case `pkg` built standalones that contain `npm` bundled) the starting word seeems stripped from `postinstall` script. Adding a blank space in front fixes that.
  • Loading branch information
medikoo committed Apr 7, 2022
1 parent edf9fba commit ab6b121
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){}\"",
"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

0 comments on commit ab6b121

Please # to comment.