Skip to content

Commit

Permalink
Fixes a few typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Strengthless committed Sep 10, 2023
1 parent e036d6b commit 6226e98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/detectPackageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/parseBunLockfile.ts
Original file line number Diff line number Diff line change
@@ -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], {
Expand Down

0 comments on commit 6226e98

Please sign in to comment.