Skip to content

Commit

Permalink
Fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Sep 4, 2024
1 parent 040c74d commit fe2a09f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/hardis/package/version/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class PackageVersionCreate extends SfCommand<any> {
const debugMode = flags.debug || false;
const config = await getConfig('project');
// List project packages
const packageDirectories = this.project?.getUniquePackageDirectories() || [];
const packageDirectories: any[] = this.project?.getUniquePackageDirectories() || [];
// Ask user to select package and input install key if not sent as command arguments
if (this.package == null) {
if (isCI) {
Expand All @@ -90,7 +90,7 @@ export default class PackageVersionCreate extends SfCommand<any> {
),
choices: packageDirectories.map((packageDirectory) => {
return {
title: packageDirectory.package || packageDirectory.path,
title: packageDirectory?.package || packageDirectory?.path || packageDirectory?.fullPath || packageDirectory?.name,
value: packageDirectory.name,
};
}),
Expand Down

0 comments on commit fe2a09f

Please sign in to comment.