Skip to content

Commit

Permalink
fix: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 10, 2020
1 parent b10c225 commit a44c120
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ module.exports = {
path.dirname(filePath),
`../index.d.ts`,
);
console.log(resolved);
return resolved;
}
},
Expand Down
48 changes: 48 additions & 0 deletions examples/theme-ui-design-system/.config/buildtime.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const path = require('path');

module.exports = {
stories: [
'../src/docs/*.@(mdx|tsx)',
],
instrument: {
components: {
package: {
browseLink: (componentName, filePath ) => {
if (filePath.includes('system-ui/theme-ui/tree/master/dist/index.js')) {
return `https://github.com/system-ui/theme-ui/tree/master/packages/components/src/${componentName}.js`
}
if (filePath.includes('/component-controls/tree/master/ui/components/dist/index.js')) {
return `https://github.com/ccontrols/component-controls/blob/master/ui/components/src/${componentName}/${componentName}.tsx`
}
return filePath;
}
},
resolveFile: (componentName, filePath) => {
if (filePath.includes('theme-ui/dist')) {
const resolved = path.resolve(
path.dirname(filePath),
`../../@theme-ui/components/src/${componentName}.js`,
);
return resolved;
}
if (filePath.includes('@component-controls/components/dist')) {
const resolved = path.resolve(
path.dirname(filePath),
`../src/${componentName}/${componentName}.tsx`,
);
return resolved;
}
return filePath;
},
resolvePropsFile: (componentName, filePath) => {
if (filePath.includes('@theme-ui/components/src')) {
const resolved = path.resolve(
path.dirname(filePath),
`../index.d.ts`,
);
return resolved;
}
},
},
}
};

0 comments on commit a44c120

Please sign in to comment.