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

Function isYarnProject

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

Source from the content-addressed store, hash-verified

27}
28
29function isYarnProject(projectRoot) {
30 if (fs.existsSync(`${projectRoot}/yarn.lock`)) {
31 return true;
32 }
33
34 const findWorkspaceRoot = require('find-yarn-workspace-root');
35
36 if (findWorkspaceRoot(projectRoot)) {
37 return true;
38 }
39
40 return false;
41}
42
43module.exports = {
44 determineInstallCommand,

Callers 4

runFunction · 0.85
determineInstallCommandFunction · 0.85
runFunction · 0.85
hasYarnLockMethod · 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…