|
|
@@ -64,8 +64,9 @@ if (!inputPath || !templateName || !variantName || !outputPath) {
|
|
|
process.exit(1);
|
|
|
}
|
|
|
|
|
|
+const inputDirName = inputPath.split(path.sep).at(-1);
|
|
|
const dataFilePath = path.join(inputPath, `${variantName}.yaml`);
|
|
|
const templatePath = path.join(inputPath, `${templateName}.pug`);
|
|
|
const assetsPath = path.join(inputPath, "assets");
|
|
|
|
|
|
-exportRenderToPdf(dataFilePath, templatePath, assetsPath, outputPath, "resume");
|
|
|
+exportRenderToPdf(dataFilePath, templatePath, assetsPath, outputPath, `${inputDirName}_${variantName}`);
|