Skip to content

Commit

Permalink
fix: add full theme path when using local themes on export (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nezteb authored Apr 20, 2022
1 parent 0bb921e commit 21d15f6
Show file tree
Hide file tree
Showing 3 changed files with 16,823 additions and 79 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
2 changes: 1 addition & 1 deletion lib/export-resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const extractFileFormat = (fileName) => {
};
const getThemePkg = (theme) => {
if (theme[0] === '.') {
theme = path.join(process.cwd(), 'index.js');
theme = path.join(process.cwd(), theme, 'index.js');
} else {
theme = path.join(process.cwd(), 'node_modules', theme, 'index.js');
}
Expand Down
Loading

0 comments on commit 21d15f6

Please sign in to comment.