Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions compiled/sfdx-project.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
1 change: 1 addition & 0 deletions examples/sfdx-project/package-complex.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"definitionFile": "config/scratch-org-def.json",
"ancestorId": "3",
"includeProfileUserLicenses": false,
"calculateTransitiveDependencies": true,
Copy link
Copy Markdown
Contributor Author

@luop90 luop90 Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to the "complex" test case here.

"dependencies": [
{
"package": "Expense Manager - Util",
Expand Down
6 changes: 6 additions & 0 deletions sfdx-project.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
8 changes: 8 additions & 0 deletions src/sfdx-project/packageDir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Comment on lines +143 to +150
Copy link
Copy Markdown
Contributor Author

@luop90 luop90 Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the change itself. Everything else is from compilation / linting.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ts syntax is wild

/**
* Human readable version information, format not specified.
* @title Version Description
Expand Down
Loading