forked from vivid-planet/comet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
waitForPackages.js
20 lines (18 loc) · 904 Bytes
/
waitForPackages.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const packageFolderMapping = {
"@comet/admin": "packages/admin/admin",
"@comet/admin-color-picker": "packages/admin/admin-color-picker",
"@comet/admin-date-time": "packages/admin/admin-date-time",
"@comet/admin-icons": "packages/admin/admin-icons",
"@comet/admin-react-select": "packages/admin/admin-react-select",
"@comet/admin-rte": "packages/admin/admin-rte",
"@comet/admin-theme": "packages/admin/admin-theme",
"@comet/blocks-admin": "packages/admin/blocks-admin",
"@comet/cms-admin": "packages/admin/cms-admin",
"@comet/blocks-api": "packages/api/blocks-api",
"@comet/cms-api": "packages/api/cms-api",
"@comet/cms-site": "packages/site/cms-site",
};
const waitForPackages = (...packages) => {
return "npx wait-on -l " + packages.map((package) => `${packageFolderMapping[package]}/lib/index.d.ts`).join(" ");
};
module.exports = waitForPackages;