Skip to content

Commit

Permalink
fix: update storybook path regex
Browse files Browse the repository at this point in the history
  • Loading branch information
foliveira authored and Filipe Pinheiro committed Jul 14, 2017
1 parent abef2a2 commit 9ea3246
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { configure } from "@storybook/react";

const req = require.context("../packages", true, /\.stories\.js$/);
const req = require.context(
"../packages",
true,
/^((?!node_modules).)*\.stories\.js$/
);

const loadStories = () => req.keys().forEach(filename => req(filename));

Expand Down

0 comments on commit 9ea3246

Please sign in to comment.