diff --git a/packages/js/src/utils/check-dependencies.ts b/packages/js/src/utils/check-dependencies.ts index 2b6858ce16..6c75352f1e 100644 --- a/packages/js/src/utils/check-dependencies.ts +++ b/packages/js/src/utils/check-dependencies.ts @@ -14,26 +14,15 @@ export function checkDependencies( target: ProjectGraphProjectNode; dependencies: DependentBuildableProjectNode[]; } { - const { target, dependencies, nonBuildableDependencies } = - calculateProjectDependencies( - context.projectGraph, - context.root, - context.projectName, - context.targetName, - context.configurationName - ); + const { target, dependencies } = calculateProjectDependencies( + context.projectGraph, + context.root, + context.projectName, + context.targetName, + context.configurationName + ); const projectRoot = target.data.root; - if (nonBuildableDependencies.length > 0) { - throw new Error( - `Buildable libraries can only depend on other buildable libraries. You must define the ${ - context.targetName - } target for the following libraries: ${nonBuildableDependencies - .map((t) => `"${t}"`) - .join(', ')}` - ); - } - if (dependencies.length > 0) { return { tmpTsConfig: createTmpTsConfig(