mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 19:01:38 +01:00
Merge main into proxy branch (formatting and docs)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,14 +15,11 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const rootDir = path.join(__dirname, "..");
|
||||
|
||||
// Read root package.json to get workspaces
|
||||
const rootPkg = JSON.parse(
|
||||
fs.readFileSync(path.join(rootDir, "package.json"), "utf8"),
|
||||
);
|
||||
const rootPkg = JSON.parse(fs.readFileSync(path.join(rootDir, "package.json"), "utf8"));
|
||||
const workspaces = rootPkg.workspaces || [];
|
||||
|
||||
const requestedWorkspaces = process.argv.slice(2);
|
||||
const workspaceCandidates =
|
||||
requestedWorkspaces.length > 0 ? requestedWorkspaces : workspaces;
|
||||
const workspaceCandidates = requestedWorkspaces.length > 0 ? requestedWorkspaces : workspaces;
|
||||
|
||||
// Find all candidate workspaces with a dev script
|
||||
const workspacesWithDev = workspaceCandidates.filter((ws) => {
|
||||
|
||||
Reference in New Issue
Block a user