Skip to content

Commit

Permalink
fix: use replaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Nov 21, 2023
1 parent a00812c commit d2585f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default class Command extends Generator {
const relativeCmdPath = path
.relative(path.dirname(unitPath), commandPath)
.replace('.ts', '')
.replace(path.sep, '/');
.replaceAll(path.sep, '/');
this.fs.copyTpl(
this.templatePath(this.pjson.type === 'module' ? 'test/esm-command.test.ts.ejs' : 'test/cjs-command.test.ts.ejs'),
unitPath,
Expand Down

0 comments on commit d2585f2

Please sign in to comment.