From ab6b121f0ca4f033bba9b6f400b24d07869bd716 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 7 Apr 2022 18:35:05 +0200 Subject: [PATCH] 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. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 30c65e7b..abd5b52e 100644 --- a/package.json +++ b/package.json @@ -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}\"",