Use of multiple config file in build command
Last updated
Last updated
The configFile
flag in the build
command is used for features and settings of the scratch org used to validate your unlocked package. It is optional and if not passed in, it will assume the default one which is none.
Typically, all packages in the same repo share the same scratch org definition. Therefore, you pass in the definition that you are using to build your scratch org pool and use the same to build your unlocked package.
However, there is an option to use multiple definitions.
For example, if you have two packages, package 1 is dependent on SharedActivities
, and package 2 is not. You would pass a scratch org definition file to package 1 via scratchOrgDefFilePaths
in sfdx-project
. Package 2 would be using. the default definitionFile
.