Skip to content

Commit

Permalink
templates fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoktashev committed Sep 21, 2023
1 parent 425af46 commit a709515
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steroidsjs/gii-fs",
"version": "0.0.5",
"version": "0.0.6",
"description": "FS Developer Server",
"author": "Vladimir Kozhin <hello@kozhindev.com>",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/project/usecases/services/ProjectEnumService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class ProjectEnumService {

const filename = path.resolve(enumsPath, `${dto.name}.ts`);

const templatePath = path.resolve(__dirname, '../../../../public/templates/EnumTemplate.txt');
const templatePath = path.resolve(__dirname, '../../templates/EnumTemplate.txt');

let resultFileContent = fs.readFileSync(templatePath, 'utf-8').toString();

Expand Down
2 changes: 1 addition & 1 deletion src/project/usecases/services/ProjectModelService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export class ProjectModelService {
}

const filename = path.resolve(modelsPath, `${dto.name}.ts`);
const templatePath = path.resolve(__dirname, '../../../../public/templates/ModelTemplate.txt');
const templatePath = path.resolve(__dirname, '../../templates/ModelTemplate.txt');
let resultFileContent = fs.readFileSync(templatePath, 'utf-8').toString();

let properties = [];
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a709515

Please sign in to comment.