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": { "compilerOptions": {
"assets": [ "assets": [
"**/*.proto", "**/*.proto",
"assets/**/*",
{ {
"include": "i18n/**/*", "include": "i18n/**/*",
"watchAssets": true "watchAssets": true
+1 -5
View File
@@ -1,4 +1,3 @@
import path from 'path';
import { TypeParser } from './parser-types'; import { TypeParser } from './parser-types';
import { HtmlParser } from './html-parser'; import { HtmlParser } from './html-parser';
import { CsvParser } from './csv-parser'; import { CsvParser } from './csv-parser';
@@ -7,10 +6,7 @@ import { Parser } from './parser.interface';
export class ParserBuilder { export class ParserBuilder {
static build<T>(type: TypeParser): Parser<T> { static build<T>(type: TypeParser): Parser<T> {
const templatePath = path.join( const templatePath = '/app/dist/assets/template/pii-reporter.html';
__dirname,
'../../../src/template/pii-reporter.html',
);
if (type === 'html') { if (type === 'html') {
const htmlParser = new HtmlParser<T>(templatePath); const htmlParser = new HtmlParser<T>(templatePath);