Skip to content

Commit d2585f2

Browse files
committed
fix: use replaceAll
1 parent a00812c commit d2585f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generators/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default class Command extends Generator {
176176
const relativeCmdPath = path
177177
.relative(path.dirname(unitPath), commandPath)
178178
.replace('.ts', '')
179-
.replace(path.sep, '/');
179+
.replaceAll(path.sep, '/');
180180
this.fs.copyTpl(
181181
this.templatePath(this.pjson.type === 'module' ? 'test/esm-command.test.ts.ejs' : 'test/cjs-command.test.ts.ejs'),
182182
unitPath,

0 commit comments

Comments
 (0)