From 6226e9804d60e44d5ce7c837414982a37ae7ef22 Mon Sep 17 00:00:00 2001 From: Strengthless Date: Mon, 11 Sep 2023 00:06:25 +0800 Subject: [PATCH] Fixes a few typo --- src/detectPackageManager.ts | 2 +- src/parseBunLockfile.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detectPackageManager.ts b/src/detectPackageManager.ts index 9aff405d..8ebf7f04 100644 --- a/src/detectPackageManager.ts +++ b/src/detectPackageManager.ts @@ -48,7 +48,7 @@ export const detectPackageManager = ( join(appRootPath, "npm-shrinkwrap.json"), ) const yarnLockExists = fs.existsSync( - join(findWorkspaceRoot() ?? appRootPath, "pnpm-lock.yaml"), + join(findWorkspaceRoot() ?? appRootPath, "yarn.lock"), ) // Bun workspaces seem to work the same as yarn workspaces - https://bun.sh/docs/install/workspaces const bunLockbExists = fs.existsSync( diff --git a/src/parseBunLockfile.ts b/src/parseBunLockfile.ts index 66e5facb..2ebed2d0 100644 --- a/src/parseBunLockfile.ts +++ b/src/parseBunLockfile.ts @@ -1,6 +1,6 @@ import { spawnSync } from "child_process" -// From https://github.com/oven-sh/bun/blob/ffe4f561a3af53b9f5a41c182de55d7199b5d692/packages/bun-vscode/src/features/lockfile.ts#L39, +// Adapted from https://github.com/oven-sh/bun/blob/ffe4f561a3af53b9f5a41c182de55d7199b5d692/packages/bun-vscode/src/features/lockfile.ts#L39, // rewritten to use spawnSync instead of spawn. export function parseBunLockfile(lockFilePath: string): string { const process = spawnSync("bun", [lockFilePath], {