Skip to content

Commit c010360

Browse files
authored
fix(cta): fix cli install with other deps, fixes #3417 (#3420)
* fix(cta): fix cli install with other deps, fixes #3417
1 parent c046681 commit c010360

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changes/cta-cli-install.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-tauri-app": patch
3+
---
4+
5+
Fix crash when using `create-react-app` recipe.

tooling/create-tauri-app/src/dependency-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function installNpmDevPackage(
8383
case 'yarn':
8484
await shell(
8585
packageManager,
86-
['add', '-D', '--ignore-scripts', packageNames.join(' ')],
86+
['add', '-D', '--ignore-scripts', ...packages],
8787
{
8888
cwd: appDir
8989
}
@@ -92,7 +92,7 @@ async function installNpmDevPackage(
9292
case 'npm':
9393
await shell(
9494
'npm',
95-
['install', '--save-dev', '--ignore-scripts', packageNames.join(' ')],
95+
['install', '--save-dev', '--ignore-scripts', ...packages],
9696
{
9797
cwd: appDir
9898
}

0 commit comments

Comments
 (0)