Skip to content

Commit 488f151

Browse files
committed
feat: re-add depreciated cyclicDependencyProjects
1 parent db6b1ad commit 488f151

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

common/reviews/api/rush-lib.api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ export class RushConfigurationProject {
777777
// @internal
778778
constructor(options: IRushConfigurationProjectOptions);
779779
get consumingProjects(): ReadonlySet<RushConfigurationProject>;
780+
// @deprecated
781+
get cyclicDependencyProjects(): Set<string>;
780782
get decoupledLocalDependencies(): Set<string>;
781783
get dependencyProjects(): ReadonlySet<RushConfigurationProject>;
782784
// @deprecated

libraries/rush-lib/src/api/RushConfigurationProject.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,19 @@ export class RushConfigurationProject {
268268
return this._decoupledLocalDependencies;
269269
}
270270

271+
/**
272+
* A list of local projects that appear as devDependencies for this project, but cannot be
273+
* locally linked because it would create a cyclic dependency; instead, the last published
274+
* version will be installed in the Common folder.
275+
*
276+
* These are package names that would be found by RushConfiguration.getProjectByName().
277+
*
278+
* @deprecated Use `decoupledLocalDependencies` instead, as it better describes the purpose of the data.
279+
*/
280+
public get cyclicDependencyProjects(): Set<string> {
281+
return this._decoupledLocalDependencies;
282+
}
283+
271284
/**
272285
* An array of projects within the Rush configuration which directly depend on this package.
273286
* @deprecated Use `consumingProjectNames` instead, as it has Set semantics, which better reflect the nature

0 commit comments

Comments
 (0)