Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
fix(validate): aliasified packages are ignored in validate (#1293)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: validate command will now respect aliasified
[packages. This means aliasified packages which do not have
a default directory will fail during validation. To fix this,
either ignore the package or add a default directory to the
aliasified package which is the contents that you want
to deploy to the scratch origin

fixes #1289]
  • Loading branch information
azlam-abdulsalam authored Apr 24, 2023
1 parent 31a8409 commit 3bcf94a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ export default class BuildImpl {
});
}

// Ignore aliasfied packages on validate & prepare stages
// Ignore aliasfied packages on stages fix #1289
packageDescriptors = packageDescriptors.filter((pkg) => {
return !(
(this.props.currentStage === 'prepare' || this.props.currentStage === 'validate') &&
(this.props.currentStage === 'prepare') &&
pkg.aliasfy &&
pkg.type !== PackageType.Data
);
Expand Down

0 comments on commit 3bcf94a

Please sign in to comment.