From 93a194f0bc1f3f4c89abb6bf9a5b3d557330835e Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 3 Jul 2023 12:05:45 -0700 Subject: [PATCH] fix(scripts): skip downleveling of packages in private folder (#4914) --- 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 9f00385370085..20e6e184d7c98 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) {