diff --git a/lib/export-resume.js b/lib/export-resume.js index bbc0370f..3e244a59 100644 --- a/lib/export-resume.js +++ b/lib/export-resume.js @@ -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);