MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / isPnpmProject

Function isPnpmProject

lib/utilities/package-managers.js:15–27  ·  view source on GitHub ↗
(projectRoot)

Source from the content-addressed store, hash-verified

13}
14
15async function isPnpmProject(projectRoot) {
16 if (fs.existsSync(`${projectRoot}/pnpm-lock.yaml`)) {
17 return true;
18 }
19
20 const { findWorkspaceDir } = await import('@pnpm/find-workspace-dir');
21
22 if (await findWorkspaceDir(projectRoot)) {
23 return true;
24 }
25
26 return false;
27}
28
29function isYarnProject(projectRoot) {
30 if (fs.existsSync(`${projectRoot}/yarn.lock`)) {

Callers 4

runFunction · 0.85
determineInstallCommandFunction · 0.85
runFunction · 0.85
hasPNPMLockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…