create-wdio 8.3.3 → 8.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +2 -2
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -56,9 +56,9 @@ export async function createWebdriverIO(opts) {
56
56
  */
57
57
  const pm = PMs.find((pm) => (
58
58
  // for pnpm check for "~/Library/pnpm/store/v3/..."
59
- process.argv[0].includes(`${path.sep}${pm}${path.sep}`) ||
59
+ process.argv[1].includes(`${path.sep}${pm}${path.sep}`) ||
60
60
  // for NPM and Yarn check for "~/.npm/npx/..." or "~/.yarn/bin/create-wdio"
61
- process.argv[0].includes(`${path.sep}.${pm}${path.sep}`))) || 'npm';
61
+ process.argv[1].includes(`${path.sep}.${pm}${path.sep}`))) || 'npm';
62
62
  /**
63
63
  * create a package-lock.json, yarn.lock or pnpm-lock.yaml so
64
64
  * that `detect-package-manager` doesn't mark it as a default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wdio",
3
- "version": "8.3.3",
3
+ "version": "8.3.4",
4
4
  "description": "Install and setup a WebdriverIO project with all its dependencies in a single run",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "license": "MIT",