diff --git a/package.json b/package.json index 5f42146..e6b7f6a 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "lint": "eslint --ignore-path .gitignore .", "prepublishOnly": "yarn run test && yarn run build", "test": "jest --config jest.config.js --color", - "start-storybook": "start-storybook -p 1337", - "build-storybook": "build-storybook" + "start-storybook": "start-storybook -p 1337 --config-dir stories", + "build-storybook": "build-storybook --config-dir stories" }, "dependencies": { "@repeaterjs/repeater": "^2.0.0" diff --git a/.storybook/addons.js b/stories/addons.js similarity index 100% rename from .storybook/addons.js rename to stories/addons.js diff --git a/.storybook/config.js b/stories/config.js similarity index 76% rename from .storybook/config.js rename to stories/config.js index 639b168..0ddb457 100644 --- a/.storybook/config.js +++ b/stories/config.js @@ -1,7 +1,7 @@ import { configure } from '@storybook/react'; // automatically import all files ending in *.stories.js -const req = require.context('../stories', true, /\.stories\.js$/); +const req = require.context('.', true, /\.stories\.js$/); function loadStories() { req.keys().forEach(filename => req(filename)); } diff --git a/.storybook/webpack.config.js b/stories/webpack.config.js similarity index 100% rename from .storybook/webpack.config.js rename to stories/webpack.config.js