Skip to content

Commit

Permalink
fix: update resolve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 9, 2020
1 parent 699187d commit 4a992e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ module.exports = {
return filePath;
},
sourceFiles: (componentName, filePath) => {
if (filePath.includes('theme-ui/dist')) {
if (filePath.includes('@theme-ui/components/index.d.ts')) {
const resolved = path.resolve(
path.dirname(filePath),
`../../@theme-ui/components/src/${componentName}.js`,
`./src/${componentName}.js`,
);
return resolved;
}
Expand Down

0 comments on commit 4a992e8

Please sign in to comment.