diff --git a/package.json b/package.json index 24f1ce3b..a30b777b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint": "eslint src/iotMapManager/**/*.ts", "test": "echo \"Error: no test specified\" && exit 1", "storybook": "start-storybook", - "build-storybook": "build-storybook -o ./docs && mkdir -p docs/assets/img && cp src/iotMapManager/img/* docs/assets/img/", + "build-storybook": "cd src/iotMapManager && npm i && npm run build && cd -- && build-storybook -o ./docs && mkdir -p docs/assets/img && cp src/iotMapManager/img/* docs/assets/img/", "deploy-storybook": "git add docs && git commit -m 'chore(storybook): deploy' --allow-empty && git subtree split --branch gh-pages --prefix docs && git push origin gh-pages -f && echo 'Storybook successfully deployed'" }, "repository": {