Skip to content

Commit

Permalink
add back .yarnrc.yml support
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Sep 11, 2023
1 parent ed51fe7 commit 6280654
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions fixtures/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#---
# dependencies:
# zlib.net: ^1.2
# env:
# FOO: BAR
#---
3 changes: 2 additions & 1 deletion src/utils/devenv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ Deno.test("devenv.ts", async runner => {
["requirements.txt", "pip.pypa.io"],
[".yarnrc", "classic.yarnpkg.com"],
["pixi.toml", "prefix.dev"],
["action.yml/std/action.yml", "nodejs.org^16"]
["action.yml/std/action.yml", "nodejs.org^16"],
[".yarnrc.yml", "yarnpkg.com"],
]

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

0 comments on commit 6280654

Please sign in to comment.