Skip to content

Commit

Permalink
fix npm pack options
Browse files Browse the repository at this point in the history
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
  • Loading branch information
zFernand0 committed Feb 6, 2024
1 parent 650f75e commit 284ffca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/npm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/npm/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function npmInstall(pkgSpec: string, registry: string, inDir?: stri

export async function npmPack(pkgSpec: string, registry: string, inDir?: string): Promise<string> {
const registryPrefix = pkgSpec.startsWith("@") ? `${pkgSpec.split("/")[0]}:` : "";
const cmdArgs = ["pack", `${pkgSpec}`, "--json", `--${registryPrefix}registry=${registry}`];
const cmdArgs = ["pack", `--${registryPrefix}registry=${registry}`];
const cmdOutput = await exec.getExecOutput("npm", cmdArgs, { cwd: inDir });
return cmdOutput.stdout.trim().split(/\s+/).pop() as string;
}
Expand Down

0 comments on commit 284ffca

Please sign in to comment.