MCPcopy Create free account
hub / github.com/angular/dev-infra / isUsingPnpm

Method isUsingPnpm

ng-dev/release/publish/pnpm-versioning.ts:15–19  ·  view source on GitHub ↗
(repoPath: string)

Source from the content-addressed store, hash-verified

13
14export class PnpmVersioning {
15 static isUsingPnpm(repoPath: string) {
16 // If there is only a pnpm lock file at the workspace root, we assume pnpm
17 // is the primary package manager. We can remove such checks in the future.
18 return existsSync(join(repoPath, 'pnpm-lock.yaml')) && !existsSync(join(repoPath, 'yarn.lock'));
19 }
20}

Callers 2

_spawnNpmScriptFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected