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

Commit

Permalink
fix(npm-scope): converts npm scope to lowercase during publish and fe…
Browse files Browse the repository at this point in the history
…tch (#833)

* fix(npm-scope): converts npm scope to lowercase during publish and fetch

fix #799

* Update packages/sfpowerscripts-cli/src/impl/artifacts/FetchAnArtifactFromNPM.ts

Fixed to Use toLowerCase
  • Loading branch information
azlam-abdulsalam authored Feb 9, 2022
1 parent 3747612 commit e737e9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export default class Promote extends SfpowerscriptsCommand {
let name: string = packageName.toLowerCase() + "_sfpowerscripts_artifact";

if (this.flags.scope)
name = `@${this.flags.scope}/` + name;
name = `@${this.flags.scope.toLowerCase()}/` + name;

let packageJson = {
name: name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class FetchAnArtifactFromNPM implements FetchAnArtifact {

let cmd: string;
if (this.scope)
cmd = `npm pack @${this.scope}/${packageName}_sfpowerscripts_artifact`;
cmd = `npm pack @${this.scope.toLowerCase()}/${packageName}_sfpowerscripts_artifact`;
else cmd = `npm pack ${packageName}_sfpowerscripts_artifact`;

cmd += `@${version}`;
Expand Down

0 comments on commit e737e9e

Please sign in to comment.