Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Oct 20, 2023
1 parent 4406833 commit 22f5045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export async function createWebdriverIO(opts: ProgramOpts) {
*/
const pm = PMs.find((pm) => (
// for pnpm check for "~/Library/pnpm/store/v3/..."
process.argv[0].includes(`${path.sep}${pm}${path.sep}`) ||
process.argv[1].includes(`${path.sep}${pm}${path.sep}`) ||
// for NPM and Yarn check for "~/.npm/npx/..." or "~/.yarn/bin/create-wdio"
process.argv[0].includes(`${path.sep}.${pm}${path.sep}`)
process.argv[1].includes(`${path.sep}.${pm}${path.sep}`)
)) || 'npm'

/**
Expand Down

0 comments on commit 22f5045

Please sign in to comment.