Skip to content

Commit

Permalink
fix yarn when running inside winpty (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen authored and typicode committed Jan 12, 2020
1 parent c7a5561 commit 942455f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/installer/__tests__/__snapshots__/getScript.ts.snap
Expand Up @@ -68,6 +68,10 @@ fi
cd \\".\\"
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi
case $packageManager in
\\"npm\\") run_command npx --no-install;;
\\"pnpm\\") run_command pnpx --no-install;;
Expand Down
4 changes: 4 additions & 0 deletions src/installer/getScript.ts
Expand Up @@ -94,6 +94,10 @@ fi
cd "${relativeUserPkgDir}"
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi
case $packageManager in
"npm") run_command npx --no-install;;
"pnpm") run_command pnpx --no-install;;
Expand Down

0 comments on commit 942455f

Please sign in to comment.