diff --git a/lerna.json b/lerna.json index 4ece115..fd5bc01 100644 --- a/lerna.json +++ b/lerna.json @@ -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/*" + ] } diff --git a/monorepo/src/helpers/workspaces.ts b/monorepo/src/helpers/workspaces.ts index d497860..9419f64 100644 --- a/monorepo/src/helpers/workspaces.ts +++ b/monorepo/src/helpers/workspaces.ts @@ -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,