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

Commit bf655cf

Browse files
fix(install): remove apexcompileonlypackage
Remove this option as its hardly used, and often creates errors in brownfield orgs.
1 parent 93c1aed commit bf655cf

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • packages/sfpowerscripts-cli/src/commands/package

packages/sfpowerscripts-cli/src/commands/package/install.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ export default class Install extends InstallPackageCommand {
2323
description: messages.getMessage('packageFlagDescription'),
2424
}),
2525
targetorg: requiredUserNameFlag,
26-
apexcompileonlypackage: Flags.boolean({
27-
char: 'a',
28-
description: messages.getMessage('apexCompileOnlyPackageFlagDescription'),
29-
}),
3026
artifactdir: Flags.directory({
3127
description: messages.getMessage('artifactDirectoryFlagDescription'),
3228
default: 'artifacts',
@@ -74,7 +70,6 @@ export default class Install extends InstallPackageCommand {
7470
public async install() {
7571
try {
7672
const installationkey = this.flags.installationkey;
77-
const apexcompileonlypackage = this.flags.apexcompileonlypackage;
7873
const security_type = this.flags.securitytype;
7974
const upgrade_type = this.flags.upgradetype;
8075
const waitTime = this.flags.waittime;
@@ -97,7 +92,7 @@ export default class Install extends InstallPackageCommand {
9792

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

112107
let options: SfpPackageInstallationOptions = {
113108
installationkey: installationkey,
114-
apexcompile: apexcompileonlypackage ? `package` : `all`,
109+
apexcompile: `package`,
115110
securitytype: security_type,
116111
optimizeDeployment: optimizeDeployment,
117112
skipTesting: skipTesting,

0 commit comments

Comments
 (0)