Skip to content

Commit 01ab7f4

Browse files
committed
fix
1 parent 6191ce9 commit 01ab7f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ function runCommand(command: string, cwd: string, packageManager: string) {
252252
const replacement = createReplacements[packageManager];
253253
if (replacement) {
254254
command = command
255-
.replace(/^npm create /, replacement)
255+
.replace('npm create ', replacement)
256256
// other package managers don't need the extra `--`
257-
.replace(/ -- --/, ' --');
257+
.replace(' -- --', ' --');
258258
}
259259
// Yarn v1 does not support `@latest` tag
260260
if (packageManager === 'yarn') {

0 commit comments

Comments
 (0)