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,26 +14,15 @@ export function checkDependencies(
|
|||||||
target: ProjectGraphProjectNode<any>;
|
target: ProjectGraphProjectNode<any>;
|
||||||
dependencies: DependentBuildableProjectNode[];
|
dependencies: DependentBuildableProjectNode[];
|
||||||
} {
|
} {
|
||||||
const { target, dependencies, nonBuildableDependencies } =
|
const { target, dependencies } = calculateProjectDependencies(
|
||||||
calculateProjectDependencies(
|
context.projectGraph,
|
||||||
context.projectGraph,
|
context.root,
|
||||||
context.root,
|
context.projectName,
|
||||||
context.projectName,
|
context.targetName,
|
||||||
context.targetName,
|
context.configurationName
|
||||||
context.configurationName
|
);
|
||||||
);
|
|
||||||
const projectRoot = target.data.root;
|
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) {
|
if (dependencies.length > 0) {
|
||||||
return {
|
return {
|
||||||
tmpTsConfig: createTmpTsConfig(
|
tmpTsConfig: createTmpTsConfig(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user