Skip to content

Commit

Permalink
fix(install): remove apexcompileonlypackage
Browse files Browse the repository at this point in the history
Remove this option as its hardly used, and often creates errors in brownfield orgs.
  • Loading branch information
azlam-abdulsalam committed Oct 11, 2023
1 parent 93c1aed commit bf655cf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/sfpowerscripts-cli/src/commands/package/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export default class Install extends InstallPackageCommand {
description: messages.getMessage('packageFlagDescription'),
}),
targetorg: requiredUserNameFlag,
apexcompileonlypackage: Flags.boolean({
char: 'a',
description: messages.getMessage('apexCompileOnlyPackageFlagDescription'),
}),
artifactdir: Flags.directory({
description: messages.getMessage('artifactDirectoryFlagDescription'),
default: 'artifacts',
Expand Down Expand Up @@ -74,7 +70,6 @@ export default class Install extends InstallPackageCommand {
public async install() {
try {
const installationkey = this.flags.installationkey;
const apexcompileonlypackage = this.flags.apexcompileonlypackage;
const security_type = this.flags.securitytype;
const upgrade_type = this.flags.upgradetype;
const waitTime = this.flags.waittime;
Expand All @@ -97,7 +92,7 @@ export default class Install extends InstallPackageCommand {

SFPLogger.log(COLOR_HEADER(`Security Type: ${this.flags.securitytype}`));
SFPLogger.log(COLOR_HEADER(`Upgrade Type: ${this.flags.upgradetype}`));
SFPLogger.log(COLOR_HEADER(`Apex Compile Mode: ${ apexcompileonlypackage ? `package` : `all`}`));
SFPLogger.log(COLOR_HEADER(`Apex Compile Mode: package`));
}
else if(this.sfpPackage.packageType == PackageType.Source)
{
Expand All @@ -111,7 +106,7 @@ export default class Install extends InstallPackageCommand {

let options: SfpPackageInstallationOptions = {
installationkey: installationkey,
apexcompile: apexcompileonlypackage ? `package` : `all`,
apexcompile: `package`,
securitytype: security_type,
optimizeDeployment: optimizeDeployment,
skipTesting: skipTesting,
Expand Down

0 comments on commit bf655cf

Please sign in to comment.