Skip to content

Commit fefcf84

Browse files
authored
remove postinstall script and run setup in prepare script (#1306)
1 parent be48c9e commit fefcf84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
},
8080
"scripts": {
8181
"setup": "git config blame.ignoreRevsFile .git-blame-ignore-revs",
82-
"postinstall": "yarn setup || true",
8382
"build": "cross-env NODE_ENV=development yarn _build",
8483
"build:prod": "cross-env NODE_ENV=production yarn _build",
8584
"build:node": "yarn _babel && yarn build:ts",
@@ -107,7 +106,7 @@
107106
"test:browser:no-axios": "cross-env USE_AXIOS=false yarn build:browser && cross-env USE_AXIOS=false vitest run --config config/vitest.config.browser.ts test/unit",
108107
"fmt": "yarn _prettier && yarn eslint src/ --fix",
109108
"preversion": "yarn clean && yarn _prettier && yarn build:prod && yarn test",
110-
"prepare": "yarn build:prod",
109+
"prepare": "yarn build:prod && yarn setup",
111110
"_build": "yarn build:node:all && yarn build:browser:all",
112111
"_babel": "babel --extensions '.ts' --out-dir ${OUTPUT_DIR:-lib} src/",
113112
"_nyc": "node node_modules/.bin/nyc --nycrc-path config/.nycrc",

0 commit comments

Comments
 (0)