Fix storybook build

Storybook loads the babel.config.json but not .babelrc.json. We actually don't want to load the babel config because it uses @babel/runtime which can't be resolved with Yarn PnP.
This commit is contained in:
Nathan Bierema 2022-01-23 20:45:49 -05:00
parent d25f878a29
commit a7a8c2a6ea
2 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@
"scripts": {
"start": "yarn run storybook",
"storybook": "start-storybook -p 6006 -s ./fonts",
"build-storybook": "build-storybook -s ./fonts",
"build": "yarn run build:lib && yarn run build-storybook",
"build:storybook": "build-storybook -s ./fonts",
"build": "yarn run build:lib && yarn run build:storybook",
"build:lib": "yarn build:cjs && yarn build:esm && yarn build:types && yarn build:css",
"build:cjs": "babel src --extensions \".ts,.tsx\" --out-dir lib/cjs",
"build:esm": "babel src --config-file ./babel.config.esm.json --extensions \".ts,.tsx\" --out-dir lib/esm",