@@ -87,7 +87,8 @@ export interface IRushRepositoryJson {
8787export interface IPnpmOptionsJson {
8888 strictPeerDependencies ?: boolean ;
8989 resolutionStrategy ?: ResolutionStrategy ;
90- disablePerProjectDependencyManifest ?: boolean ;
90+ /** @beta */
91+ incrementalBuildDependencyGranularity ?: IncrementalBuildDependencyGranularity ;
9192}
9293
9394/**
@@ -188,16 +189,26 @@ export class PnpmOptionsConfiguration {
188189 public readonly resolutionStrategy : ResolutionStrategy ;
189190
190191 /**
191- * If set to `true`, don't attempt to generate a file that records the dependencies of each project to be used for
192- * incremental builds.
192+ * This is the mode for tracking external dependencies to detect if a project needs to be rebuilt
193+ * during an incremental build.
194+ *
195+ * If set to "project," track individual projects' dependencies when detecting if a project needs
196+ * to be rebuilt during an incremental build.
197+ *
198+ * If set to "repository," rebuild all projects when any dependencies across the repository are changed
199+ * during an incremental build.
200+ *
201+ * If unset, defaults to "project."
202+ *
203+ * @beta
193204 */
194- public readonly disablePerProjectDependencyManifest : boolean ;
205+ public readonly incrementalBuildDependencyGranularity : IncrementalBuildDependencyGranularity ;
195206
196207 /** @internal */
197208 public constructor ( json : IPnpmOptionsJson ) {
198209 this . strictPeerDependencies = ! ! json . strictPeerDependencies ;
199210 this . resolutionStrategy = json . resolutionStrategy || 'fewer-dependencies' ;
200- this . disablePerProjectDependencyManifest = ! ! json . disablePerProjectDependencyManifest ;
211+ this . incrementalBuildDependencyGranularity = json . incrementalBuildDependencyGranularity || 'project' ;
201212 }
202213}
203214
@@ -248,6 +259,12 @@ export interface ITryFindRushJsonLocationOptions {
248259 */
249260export type ResolutionStrategy = 'fewer-dependencies' | 'fast' ;
250261
262+ /**
263+ * This represents the available dependency-tracking granularities during incremental builds.
264+ * @beta
265+ */
266+ export type IncrementalBuildDependencyGranularity = 'project' | 'repository' ;
267+
251268/**
252269 * This represents the Rush configuration for a repository, based on the "rush.json"
253270 * configuration file.
0 commit comments