v8 uses the types from @salesforce/schemas
, for SfProject/SfProjectJson.
The schemas types are more accurate about the PackageDir type (what sfdx-project.json
packageDirectories is an array of). It is a union type of
- simply
path
, with an optional default property - 1, along with the
package
property and lots of optional properties used for packaging.
To support differentiating between the two structures, 2 type guards are now importable:
- isPackagingDirectory
- isNamedPackagingDirectory
PackageDir
and PackageDirDependency
are no longer re-exported. If you need them, import them from @salesforce/schemas