If main package doesn't have same script that you want to execute in nested workspaces then it doing like this:
console.log("Package %s has no script %s", pkg, script);
Please check these strings:
if (hasScript(dir, script)) {
return yarnExec(dir, pkg, 'run', args);
} else {
console.log("Package %s has no script %s", pkg, script);
}
If main package doesn't have same script that you want to execute in nested workspaces then it doing like this:
console.log("Package %s has no script %s", pkg, script);
Please check these strings: