Skip to content

Commit

Permalink
fix(scripts): skip downleveling of packages in private folder
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Jul 3, 2023
1 parent e136ef5 commit 5b2aaad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/downlevel-dts/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b2aaad

Please sign in to comment.