Skip to content

Commit

Permalink
fix: ensure cwd is normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jul 29, 2024
1 parent 541ed1b commit c0b4440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { mkdir, readFile, rm, writeFile } from 'node:fs/promises';
import { dirname, join, relative } from 'node:path';
import { dirname, join, normalize, relative } from 'node:path';
import { fileURLToPath } from 'node:url';
import { renderFile } from 'ejs';
import { Ux } from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -39,7 +39,7 @@ export class Generator {
}

public set cwd(value: string) {
this.workingDir = value;
this.workingDir = normalize(value);
}

public async render(source: string, destination: string, data?: Record<string, unknown>): Promise<void> {
Expand Down

0 comments on commit c0b4440

Please sign in to comment.