Skip to content

Commit

Permalink
fix: update component path
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
mikemurray committed Feb 25, 2020
1 parent 1e44cfa commit 83be9ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const path = require("path");
const fs = require("fs");

const componentsDir = path.join(__dirname, "package/src/components");
const componentsDir = path.join(__dirname, "package/src");
const componentTree = {};

// Build componentTree from project files
if (fs.statSync(componentsDir).isDirectory()) {
const componentItems = fs.readdirSync(componentsDir);
componentItems.forEach((componentName) => {
componentTree[componentName] = path.join("./package/src/components", componentName, `${componentName}.js`);
componentTree[componentName] = path.join("./package/src", componentName, `${componentName}.js`);
});
}

0 comments on commit 83be9ce

Please sign in to comment.