Skip to content

Commit 3fc768a

Browse files
committed
chore: prevent postinstall script from running in development installs
1 parent b4ab9ed commit 3fc768a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.no-postinstall

Whitespace-only changes.

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ src
99
.gitignore
1010
.prettierrc.json
1111
jest.config.js
12-
yarn-error.log
12+
yarn-error.log
13+
.no-postinstall

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"test:tsc": "tsc --noEmit",
4343
"build": "node ./scripts/build.cjs",
4444
"build:gest": "node ./scripts/build-gest.cjs",
45-
"postinstall": "node ./dist/legacy/add-config-schema.js"
45+
"postinstall": "bash -c \"if [ ! -e .no-postinstall ]; then node ./dist/legacy/add-config-schema.js; fi\""
4646
},
4747
"keywords": [],
4848
"repository": {

0 commit comments

Comments
 (0)