This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
Orchestrator should ignore packageDirectories without a "package" attribute #842
Labels
enhancement
enhancement to existing feature
Milestone
Orchestrator requires all
packageDirectories
in thesfdx-project.json
to be declared as packages (i.e. it requirespackage
andversionNumber
attributes).Salesforce DX allows to declare directories that are not packages. This is quite useful when you want to have a specific path for the metadata that you pull from a Scratch Org.
To Reproduce
Add the following to the
packageDirectories
insfdx-project.json
:and run
sfdx sfpowerscripts:orchestrator:build
It results in the following error
Expected behavior
The
tmp
packageDirectory is ignored from the list of packages to create (because it does not have apackage
orversionNumber
attribute). The other packages are built.Optionally a info message could be displayed saying that the directory is ignored because it's not a package.
Implementation note: If
package
is present but notversionNumber
(and vice-versa), then sfpowerscripts should fail with an error message, since the package definition is incomplete.The text was updated successfully, but these errors were encountered: