diff --git a/compiled/sfdx-project.schema.json b/compiled/sfdx-project.schema.json index c982e8a..b8155dc 100644 --- a/compiled/sfdx-project.schema.json +++ b/compiled/sfdx-project.schema.json @@ -225,6 +225,12 @@ "required": ["permissionSets", "permissionSetLicenses"], "type": "object" }, + "calculateTransitiveDependencies": { + "default": false, + "description": "Set to true if only specifing direct package dependencies and the transitive (i.e., indirect) dependencies should be calculated by Salesforce.", + "title": "Use Transitive Dependencies", + "type": "boolean" + }, "default": { "default": true, "description": "If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.", diff --git a/examples/sfdx-project/package-complex.json b/examples/sfdx-project/package-complex.json index a722b88..f934e11 100644 --- a/examples/sfdx-project/package-complex.json +++ b/examples/sfdx-project/package-complex.json @@ -32,6 +32,7 @@ "definitionFile": "config/scratch-org-def.json", "ancestorId": "3", "includeProfileUserLicenses": false, + "calculateTransitiveDependencies": true, "dependencies": [ { "package": "Expense Manager - Util", diff --git a/sfdx-project.schema.json b/sfdx-project.schema.json index f5b9fb9..813cab3 100644 --- a/sfdx-project.schema.json +++ b/sfdx-project.schema.json @@ -253,6 +253,12 @@ ], "type": "object" }, + "calculateTransitiveDependencies": { + "default": false, + "description": "Set to true if only specifing direct package dependencies and the transitive (i.e., indirect) dependencies should be calculated by Salesforce.", + "title": "Calculate Transitive Dependencies", + "type": "boolean" + }, "default": { "default": true, "description": "If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.", diff --git a/src/sfdx-project/packageDir.ts b/src/sfdx-project/packageDir.ts index 8ac13cb..1b6d484 100644 --- a/src/sfdx-project/packageDir.ts +++ b/src/sfdx-project/packageDir.ts @@ -140,6 +140,14 @@ export type PackagePackageDir = BasePackageDir & { * @title Uninstall Script */ uninstallScript?: string; + + /** + * Set to true if only specifing direct package dependencies and the transitive (i.e., indirect) dependencies should be calculated by Salesforce. + * @title Calculate Transitive Dependencies + * @default false + */ + calculateTransitiveDependencies?: boolean; + /** * Human readable version information, format not specified. * @title Version Description