Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Nov 8, 2024
1 parent 16b9877 commit 0bb16a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/setup-care-apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ fs.readdirSync(appsDir, { withFileTypes: true })
.filter((dirent) => dirent.isDirectory())
.map((dirent) => dirent.name)
.filter(
(dir) =>
!appsConfig
.map((app) => path.join(appsDir, app.package.split("/")[1]))
.includes(dir),
(dir) => !appsConfig.map((app) => app.package.split("/")[1]).includes(dir),
)
.forEach((unusedApp) => {
console.log(`Removing existing app '${unusedApp}' as not configured.`);
Expand Down

0 comments on commit 0bb16a2

Please sign in to comment.