From 0bb921e2326b5461c5e635f2b988839d7cbb9cc5 Mon Sep 17 00:00:00 2001 From: David Carvajal Date: Tue, 15 Feb 2022 11:39:06 +0100 Subject: [PATCH] fix: export pdf get package theme from local (#673) --- lib/export-resume.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);