MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / getPackageManager

Method getPackageManager

lib/stencil-init.js:168–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 }
167
168 getPackageManager() {
169 const userAgent = process.env.npm_config_user_agent || '';
170 if (userAgent.startsWith('yarn')) {
171 return 'yarn';
172 }
173 if (userAgent.startsWith('pnpm')) {
174 return 'pnpm';
175 }
176 return 'npm';
177 }
178
179 /**
180 *

Callers 1

getQuestionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected