We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87b3e46 + 1eb7602 commit dc6f5b5Copy full SHA for dc6f5b5
crates/volta-core/src/project/mod.rs
@@ -176,10 +176,10 @@ impl Project {
176
pub fn needs_yarn_run(&self) -> bool {
177
self.platform()
178
.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()
+ && self.workspace_roots().any(|x| {
+ x.join(".yarnrc.yml").exists()
+ || x.join(".pnp.cjs").exists()
+ || x.join(".pnp.js").exists()
183
})
184
}
185
0 commit comments