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) {