Skip to content

Commit 595d2ad

Browse files
committed
fix: move patch-package to prepare script
otherwise it errors when we are installed from npm
1 parent 13fa50d commit 595d2ad

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
@@ -36,8 +36,7 @@
3636
"scripts": {
3737
"build": "rimraf dist && tsc --sourceMap false && tsc -m esnext --outDir dist/esm --sourceMap false",
3838
"lint": "eslint src/**/*.ts",
39-
"prepare": "npm run build",
40-
"postinstall": "patch-package",
39+
"prepare": "npm run build && patch-package",
4140
"storybook": "start-storybook -p 6006",
4241
"build-storybook": "build-storybook"
4342
},

0 commit comments

Comments
 (0)