extension-install 3.17.0 → 3.18.0

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/dist/module.cjs +6 -1
  2. package/package.json +1 -1
package/dist/module.cjs CHANGED
@@ -110,9 +110,14 @@ function buildExecEnv(base) {
110
110
  function detectCurrentPackageManager() {
111
111
  const userAgent = String(process.env.npm_config_user_agent || '').toLowerCase();
112
112
  if (userAgent.includes('pnpm')) return 'pnpm';
113
+ if (userAgent.includes('yarn')) return 'yarn';
113
114
  if (userAgent.includes('bun')) return 'bun';
114
115
  if (userAgent.includes('npm')) return 'npm';
115
- return 'unknown';
116
+ const execPath = String(process.env.npm_execpath || process.env.NPM_EXEC_PATH || '').toLowerCase();
117
+ if (execPath.includes('pnpm')) return 'pnpm';
118
+ if (execPath.includes('yarn')) return 'yarn';
119
+ if (execPath.includes('bun')) return 'bun';
120
+ return 'npm';
116
121
  }
117
122
  function browserInstallCommand(_target) {
118
123
  const packageManager = detectCurrentPackageManager();
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "name": "extension-install",
26
- "version": "3.17.0",
26
+ "version": "3.18.0",
27
27
  "description": "Managed browser installer/uninstaller for Extension.js",
28
28
  "author": {
29
29
  "name": "Cezar Augusto",