Skip to content

Commit 21d15f6

Browse files
authored
fix: add full theme path when using local themes on export (#689)
1 parent 0bb921e commit 21d15f6

File tree

3 files changed

+16823
-79
lines changed

3 files changed

+16823
-79
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

lib/export-resume.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const extractFileFormat = (fileName) => {
4949
};
5050
const getThemePkg = (theme) => {
5151
if (theme[0] === '.') {
52-
theme = path.join(process.cwd(), 'index.js');
52+
theme = path.join(process.cwd(), theme, 'index.js');
5353
} else {
5454
theme = path.join(process.cwd(), 'node_modules', theme, 'index.js');
5555
}

0 commit comments

Comments
 (0)