Skip to content

Commit dc6f5b5

Browse files
Merge pull request #1393 from mufasa71/fix-workspace-pnp
fix(yarn) pnp workspace support
2 parents 87b3e46 + 1eb7602 commit dc6f5b5

File tree

1 file changed

+4
-4
lines changed
  • crates/volta-core/src/project

1 file changed

+4
-4
lines changed

crates/volta-core/src/project/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ impl Project {
176176
pub fn needs_yarn_run(&self) -> bool {
177177
self.platform()
178178
.map_or(false, |platform| platform.yarn.is_some())
179-
&& self.manifest_file.parent().map_or(false, |base_dir| {
180-
base_dir.join(".yarnrc.yml").exists()
181-
|| base_dir.join(".pnp.js").exists()
182-
|| base_dir.join(".pnp.cjs").exists()
179+
&& self.workspace_roots().any(|x| {
180+
x.join(".yarnrc.yml").exists()
181+
|| x.join(".pnp.cjs").exists()
182+
|| x.join(".pnp.js").exists()
183183
})
184184
}
185185

0 commit comments

Comments
 (0)