Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 682 Bytes

MIGRATING_V7-V8.md

File metadata and controls

15 lines (9 loc) · 682 Bytes

Migrating @salesforce/core from v7 to v8

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

  1. simply path, with an optional default property
  2. 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:

  1. isPackagingDirectory
  2. isNamedPackagingDirectory

PackageDir and PackageDirDependency are no longer re-exported. If you need them, import them from @salesforce/schemas