Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[expo-cli]<fix>: Wait for end of execution of checking function
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarthec committed Oct 28, 2020
1 parent 6caedcf commit b96907b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/expo-cli/bin/expo.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ async function warnUponCmdExe() {
if (process.platform === 'win32') {
// we're on Windows & we want to suggest using PowerShell instead of CMD
const psList = require('ps-list');
(async () => {
await (async () => {
const usersProcesses = await psList({ all: false });
// find parent process name
const shellProcess = usersProcesses.find(({ pid }) => pid === process.ppid) || {};
if ((shellProcess.name || '').toLowerCase().includes('cmd.exe')) {
// eslint-disable-next-line no-console
console.warn(
yellow(
'WARNING: Please avoid using cmd.exe for development. Instead use PowerShell or Bash via WSL.'
'WARNING: Please avoid using cmd.exe for development. Instead use PowerShell or Bash via WSL.\n'
)
);
}
Expand Down

0 comments on commit b96907b

Please sign in to comment.