Skip to content

Commit

Permalink
fix: export pdf get package theme from local (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
davcd authored Feb 15, 2022
1 parent fb3242d commit 0bb921e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/export-resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const extractFileFormat = (fileName) => {
};
const getThemePkg = (theme) => {
if (theme[0] === '.') {
theme = path.join(process.cwd(), theme, 'index.js');
theme = path.join(process.cwd(), 'index.js');
} else {
theme = path.join(process.cwd(), 'node_modules', theme, 'index.js');
}
try {
const themePkg = require(theme);
Expand Down

0 comments on commit 0bb921e

Please sign in to comment.