From 2e829eefd91aa208f541f428044e2997f64dd583 Mon Sep 17 00:00:00 2001 From: Damian Tarnawsky <84595830+dtarnawsky@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:53:29 -0700 Subject: [PATCH] 1.97 (#213) * fix: yarn monorepos * fix: bug in package lock check --- package.json | 2 +- src/project.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ea4c349..ec2bcd3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "ionic", "displayName": "Ionic", "description": "Official extension for Ionic and Capacitor development", - "version": "1.97.0", + "version": "1.97.1", "icon": "media/ionic.png", "publisher": "Ionic", "keywords": [ diff --git a/src/project.ts b/src/project.ts index d065f67..fbb41a8 100755 --- a/src/project.ts +++ b/src/project.ts @@ -741,7 +741,8 @@ function getPackageManager(folder: string, monoRepoType: MonoRepoType): PackageM if (monoRepoType == MonoRepoType.yarn) { const packageLock = join(folder, 'package-lock.json'); - if (!packageLock) { + + if (!existsSync(packageLock)) { // Its a yarn monorepo so use yarn as package manager return PackageManager.yarn; }