2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-09 23:00:56 +00:00

List workspaces in build order

This commit is contained in:
Vjacheslav Trushkin 2022-01-29 09:33:02 +02:00
parent d761827dff
commit bdc2f9c24c
2 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,13 @@
{
"version": "independent",
"npmClient": "npm",
"packages": ["packages/*", "debug_packages/*"]
"packages": [
"packages/types",
"packages/library-builder",
"packages/api-redundancy",
"packages/utils",
"packages/core",
"packages/*",
"debug_packages/*"
]
}

View File

@ -20,7 +20,11 @@ export function findWorkspaces(): PackageInfo[] {
function checkWorkspace(path: PathList) {
const info = getPackageInfo(path);
if (info && info.name !== fixPackageName) {
if (
info &&
info.name !== fixPackageName &&
!workspaces.find((item) => item.name === info.name)
) {
workspaces.push({
...info,
path,