fix(js): remove check for non-buildable libs being used when packaging. (#11835)
- unblocks custom server in next.js - builds are guaranteed to happen if nx.json is configured correctly - if a package isn't buildable it will be included in the package in the near-future
This commit is contained in:
parent
46be7fc67b
commit
cd3352aaa2
@ -14,8 +14,7 @@ export function checkDependencies(
|
||||
target: ProjectGraphProjectNode<any>;
|
||||
dependencies: DependentBuildableProjectNode[];
|
||||
} {
|
||||
const { target, dependencies, nonBuildableDependencies } =
|
||||
calculateProjectDependencies(
|
||||
const { target, dependencies } = calculateProjectDependencies(
|
||||
context.projectGraph,
|
||||
context.root,
|
||||
context.projectName,
|
||||
@ -24,16 +23,6 @@ export function checkDependencies(
|
||||
);
|
||||
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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user