REFACTOR: move template to assets folder

This commit is contained in:
marcos-silva-rodrigues
2025-04-29 15:40:37 -03:00
parent 36997403e1
commit 0b525b835f
3 changed files with 2 additions and 5 deletions
+1
View File
@@ -4,6 +4,7 @@
"compilerOptions": {
"assets": [
"**/*.proto",
"assets/**/*",
{
"include": "i18n/**/*",
"watchAssets": true
+1 -5
View File
@@ -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<T>(type: TypeParser): Parser<T> {
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<T>(templatePath);