Skip to content

Commit ab6b121

Browse files
committed
chore: Improve postinstall script configuration
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.
1 parent edf9fba commit ab6b121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"coverage": "nyc npm test",
113113
"lint": "eslint --ignore-path=.gitignore .",
114114
"lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
115-
"postinstall": "node -e \"try{require('./_postinstall')}catch(e){}\"",
115+
"postinstall": " node -e \"try{require('./_postinstall')}catch(e){}\"",
116116
"prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
117117
"prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
118118
"prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",

0 commit comments

Comments
 (0)