Skip to content

Commit 6226e98

Browse files
committed
Fixes a few typo
1 parent e036d6b commit 6226e98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/detectPackageManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const detectPackageManager = (
4848
join(appRootPath, "npm-shrinkwrap.json"),
4949
)
5050
const yarnLockExists = fs.existsSync(
51-
join(findWorkspaceRoot() ?? appRootPath, "pnpm-lock.yaml"),
51+
join(findWorkspaceRoot() ?? appRootPath, "yarn.lock"),
5252
)
5353
// Bun workspaces seem to work the same as yarn workspaces - https://bun.sh/docs/install/workspaces
5454
const bunLockbExists = fs.existsSync(

Diff for: src/parseBunLockfile.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { spawnSync } from "child_process"
22

3-
// From https://github.com/oven-sh/bun/blob/ffe4f561a3af53b9f5a41c182de55d7199b5d692/packages/bun-vscode/src/features/lockfile.ts#L39,
3+
// Adapted from https://github.com/oven-sh/bun/blob/ffe4f561a3af53b9f5a41c182de55d7199b5d692/packages/bun-vscode/src/features/lockfile.ts#L39,
44
// rewritten to use spawnSync instead of spawn.
55
export function parseBunLockfile(lockFilePath: string): string {
66
const process = spawnSync("bun", [lockFilePath], {

0 commit comments

Comments
 (0)