Skip to content

Commit

Permalink
Add more keyfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Oct 8, 2023
1 parent 882748e commit bbd5ef0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Empty file added fixtures/bun.lockb
Empty file.
Empty file added fixtures/yarn.lock
Empty file.
4 changes: 3 additions & 1 deletion src/utils/devenv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ Deno.test("devenv.ts", async runner => {
[".node-version", "[email protected]"],
["python-version/std/.python-version", "python.org~3.10"],
["python-version/commented/.python-version", "python.org~3.11"],
[".ruby-version", "[email protected]"]
[".ruby-version", "[email protected]"],
["yarn.lock", "yarnpkg.com"],
["bun.lockb", "bun.sh>=1"],
]

for (const [keyfile, dep] of keyfiles) {
Expand Down
6 changes: 6 additions & 0 deletions src/utils/devenv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,16 @@ export default async function(dir: Path) {
pkgs.push({ project: "classic.yarnpkg.com", constraint })
await read_YAML_FM(path)
break
case "yarn.lock":
pkgs.push({ project: "yarnpkg.com", constraint })
break
case ".yarnrc.yml":
pkgs.push({ project: "yarnpkg.com", constraint })
await read_YAML_FM(path)
break
case "bun.lockb":
pkgs.push({ project: "bun.sh", constraint: new semver.Range(">=1") })
break
case "pixi.toml":
pkgs.push({ project: 'prefix.dev', constraint })
await read_YAML_FM(path)
Expand Down

0 comments on commit bbd5ef0

Please sign in to comment.