Skip to content

Commit 9ab15bc

Browse files
committed
fix: debug verifySign method
1 parent cdaf99a commit 9ab15bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/commands/npm/package/release.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as os from 'os';
99
import * as chalk from 'chalk';
1010
import { flags, FlagsConfig, SfdxCommand } from '@salesforce/command';
1111
import { Messages, SfdxError } from '@salesforce/core';
12+
import { exec } from 'shelljs';
1213
import { PackageInfo } from '../../../repository';
1314
import { verifyDependencies } from '../../../dependencies';
1415
import { Access, isMonoRepo, SinglePackageRepo } from '../../../repository';
@@ -144,13 +145,15 @@ export default class Release extends SfdxCommand {
144145
};
145146
}
146147

148+
// eslint-disable-next-line @typescript-eslint/require-await
147149
protected async verifySign(pkgInfo: PackageInfo): Promise<void> {
148150
const cmd = 'plugins:trust:verify';
149151
const argv = `--npm ${pkgInfo.name}@${pkgInfo.nextVersion} ${pkgInfo.registryParam}`;
150152

151153
this.ux.log(chalk.dim(`sf-release ${cmd} ${argv}`) + os.EOL);
152154
try {
153-
await this.config.runCommand(cmd, argv.split(' '));
155+
// await this.config.runCommand(cmd, argv.split(' '));
156+
exec(`DEBUG=sfdx:* ${this.config.root}/bin/run ${cmd} ${argv}`);
154157
} catch (err) {
155158
throw new SfdxError(err, 'FailedCommandExecution');
156159
}

0 commit comments

Comments
 (0)