Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tczhao committed Dec 11, 2024
1 parent bf2d6fe commit f2dd2e8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions bin/local-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,15 @@ async function run(
skipVersionCheck,
snapshotInstall
);
const skipPackagesArray = JSON.parse(skipPackages)
.map((item) => item.split(","))
.flat();
const packagesToInstall = initPackagesToInstall.removeAll(skipPackagesArray);
console.log("Packages skipped install: " + skipPackages);
const skipPackagesArray = Array.from(
JSON.parse(skipPackages)
.map((item) => item.split(","))
.flat()
);
const packagesToInstall = Array.from(initPackagesToInstall).filter(
(item) => !skipPackagesArray.includes(item.name)
);
console.log("Packages skipped install: " + skipPackagesArray);
console.log(
"Packages to install: " +
Array.from(packagesToInstall)
Expand Down

0 comments on commit f2dd2e8

Please sign in to comment.