From 5b2aaad87f70757dd76b59b5edd2631479bb02eb Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 3 Jul 2023 18:00:02 +0000 Subject: [PATCH] fix(scripts): skip downleveling of packages in private folder --- scripts/downlevel-dts/index.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/downlevel-dts/index.mjs b/scripts/downlevel-dts/index.mjs index 9f0038537008..20e6e184d7c9 100644 --- a/scripts/downlevel-dts/index.mjs +++ b/scripts/downlevel-dts/index.mjs @@ -17,9 +17,11 @@ yargs(process.argv.slice(2)) .alias("h", "help").argv; const workspaces = getWorkspaces(process.cwd()); -const tasks = workspaces.map(({ workspacesDir, workspaceName }) => async () => { - await downlevelWorkspace(workspacesDir, workspaceName); -}); +const tasks = workspaces + .filter(({ workspacesDir }) => workspacesDir !== "private") + .map(({ workspacesDir, workspaceName }) => async () => { + await downlevelWorkspace(workspacesDir, workspaceName); + }); parallelLimit(tasks, cpus().length, function (err) { if (err) {