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

Commit 764652a

Browse files
author
azlam-abdulsalam
committed
fix(fetch): 🐛 fix fetch crashing when using npm
1 parent 1aeb498 commit 764652a

File tree

1 file changed

+3
-3
lines changed
  • packages/sfpowerscripts-cli/src/commands/artifacts

1 file changed

+3
-3
lines changed

packages/sfpowerscripts-cli/src/commands/artifacts/fetch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Messages } from '@salesforce/core';
44
import FetchImpl, { ArtifactVersion } from '../../impl/artifacts/FetchImpl';
55
import ReleaseDefinition from '../../impl/release/ReleaseDefinition';
66
import FetchArtifactsError from '../../impl/artifacts/FetchArtifactsError';
7+
import { ConsoleLogger } from '@dxatscale/sfp-logger';
78

89
Messages.importMessagesDirectory(__dirname);
910
const messages = Messages.loadMessages('@dxatscale/sfpowerscripts', 'fetch');
@@ -73,7 +74,6 @@ export default class Fetch extends SfpowerscriptsCommand {
7374
this.validateFlags();
7475

7576
let releaseDefinition = (await ReleaseDefinition.loadReleaseDefinition(this.flags.releasedefinition)).releaseDefinition;
76-
7777
let result: {
7878
success: ArtifactVersion[];
7979
failed: ArtifactVersion[];
@@ -84,9 +84,9 @@ export default class Fetch extends SfpowerscriptsCommand {
8484
let fetchImpl: FetchImpl = new FetchImpl(
8585
this.flags.artifactdir,
8686
this.flags.scriptpath,
87-
this.flags.npm,
8887
this.flags.scope,
89-
this.flags.npmrcpath
88+
this.flags.npmrcpath,
89+
new ConsoleLogger()
9090
);
9191

9292
result = await fetchImpl.fetchArtifacts([releaseDefinition]);

0 commit comments

Comments
 (0)