extension-install 3.17.0 → 3.18.1
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.
- package/dist/module.cjs +6 -1
- 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
|
-
|
|
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();
|