Skip to content

Commit 825791e

Browse files
committed
better yarn condition
1 parent c8335e0 commit 825791e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/projspec/proj/node.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ def parse0(self):
112112
class Yarn(Node):
113113
"""A node project that uses `yarn` for building"""
114114

115+
spec_doc = "https://yarnpkg.com/configuration/yarnrc"
116+
115117
def match(self):
116-
return "yarn.lock" in self.proj.basenames
118+
return ".yarnrc.yml" in self.proj.basenames
117119

118120
def parse(self):
119121
from projspec.content.environment import Environment, Stack, Precision

0 commit comments

Comments
 (0)