Skip to content

Commit 237e2f2

Browse files
authored
fix: add registry param to sfdx-trust calls (#215)
1 parent 09a0008 commit 237e2f2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/repository.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,10 @@ export class LernaRepo extends Repository {
267267
// https://github.com/lerna/lerna#lernajson
268268
// "By default, lerna initializes the packages list as ["packages/*"]"
269269
const packageGlobs = lernaJson.packages || ['*'];
270-
const packages = packageGlobs
270+
return packageGlobs
271271
.map((pGlob) => glob.sync(pGlob))
272272
.reduce((x, y) => x.concat(y), [])
273273
.map((pkg) => path.join(workingDir, pkg));
274-
return packages;
275274
}
276275

277276
public validate(): VersionValidation[] {
@@ -331,7 +330,9 @@ export class LernaRepo extends Repository {
331330
public verifySignature(packageNames: string[]): void {
332331
const packages = this.packages.filter((pkg) => packageNames.includes(pkg.name));
333332
for (const pkg of packages) {
334-
const cmd = `sfdx-trust plugins:trust:verify --npm ${pkg.name}@${pkg.getNextVersion()}`;
333+
const cmd = `sfdx-trust plugins:trust:verify --npm ${
334+
pkg.name
335+
}@${pkg.getNextVersion()} ${this.registry.getRegistryParameter()}`;
335336
this.execCommand(cmd);
336337
}
337338
}
@@ -429,7 +430,9 @@ export class SinglePackageRepo extends Repository {
429430
}
430431

431432
public verifySignature(): void {
432-
const cmd = `sfdx-trust plugins:trust:verify --npm ${this.name}@${this.nextVersion}`;
433+
const cmd = `sfdx-trust plugins:trust:verify --npm ${this.name}@${
434+
this.nextVersion
435+
} ${this.registry.getRegistryParameter()}`;
433436
this.execCommand(cmd);
434437
}
435438

0 commit comments

Comments
 (0)