diff --git a/nest-cli.json b/nest-cli.json index 69ccf04..5085879 100644 --- a/nest-cli.json +++ b/nest-cli.json @@ -4,6 +4,7 @@ "compilerOptions": { "assets": [ "**/*.proto", + "assets/**/*", { "include": "i18n/**/*", "watchAssets": true diff --git a/src/template/pii-reporter.html b/src/assets/template/pii-reporter.html similarity index 100% rename from src/template/pii-reporter.html rename to src/assets/template/pii-reporter.html diff --git a/src/utils/FileParser/parser.builder.ts b/src/utils/FileParser/parser.builder.ts index 3d70c2e..7e2d5d9 100644 --- a/src/utils/FileParser/parser.builder.ts +++ b/src/utils/FileParser/parser.builder.ts @@ -1,4 +1,3 @@ -import path from 'path'; import { TypeParser } from './parser-types'; import { HtmlParser } from './html-parser'; import { CsvParser } from './csv-parser'; @@ -7,10 +6,7 @@ import { Parser } from './parser.interface'; export class ParserBuilder { static build(type: TypeParser): Parser { - const templatePath = path.join( - __dirname, - '../../../src/template/pii-reporter.html', - ); + const templatePath = '/app/dist/assets/template/pii-reporter.html'; if (type === 'html') { const htmlParser = new HtmlParser(templatePath);