Skip to content

Commit

Permalink
Merge pull request #68 from webreinvent/feature/cli-v2
Browse files Browse the repository at this point in the history
feature -> develop | Fixed: skeleton path issue in mac
  • Loading branch information
themodernpk authored Mar 20, 2024
2 parents 43a614b + f947f77 commit 5997ca9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libraries/Generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export default class Generator {

let destination = this.getFileDestination(file_path);

let file_readable_path = __dirname+"./../../skeletons/"+file_path;
let file_readable_path = __dirname+"/../../skeletons/"+file_path;

let file_content = fs.readFileSync(file_readable_path).toString();
let parsed_file_content = ejs.render(file_content, this.inputs);
Expand Down Expand Up @@ -531,7 +531,7 @@ export default class Generator {

destination = this.getFileDestination(file_path);

file_readable_path = __dirname+"./../../skeletons/"+file_path;
file_readable_path = __dirname+"/../../skeletons/"+file_path;

file_content = fs.readFileSync(file_readable_path).toString();
parsed_file_content = ejs.render(file_content, this.inputs);
Expand Down Expand Up @@ -579,7 +579,7 @@ export default class Generator {
file_path = file_path.replace(/\\/g, "/");
destination = this.getFileDestination(file_path);

file_readable_path = __dirname+"./../../skeletons/"+file_path;
file_readable_path = __dirname+"/../../skeletons/"+file_path;

file_content = fs.readFileSync(file_readable_path).toString();
parsed_file_content = ejs.render(file_content, this.inputs);
Expand Down

0 comments on commit 5997ca9

Please sign in to comment.