Skip to content

Commit

Permalink
force the npx equivalent to use the available commands instead of alw…
Browse files Browse the repository at this point in the history
…ays downloading (dlx vs exec)

Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
  • Loading branch information
zFernand0 committed Oct 12, 2023
1 parent 904ae8a commit f385bd5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/lerna.js

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

2 changes: 1 addition & 1 deletion dist/vsce.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/lerna/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function npxCmd(): Promise<string> {
usePnpm = false;
}
}
return usePnpm ? "pnpm dlx" : "npx";
return usePnpm ? "pnpm exec" : "npx";
}

export async function lernaList(onlyChanged?: boolean): Promise<Record<string, any>[]> {
Expand Down
2 changes: 1 addition & 1 deletion packages/vsce/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function npxCmd(): Promise<string> {
usePnpm = false;
}
}
return usePnpm ? "pnpm dlx" : "npx";
return usePnpm ? "pnpm exec" : "npx";
}

export async function ovsxInfo(extensionName: string): Promise<Record<string, any> | undefined> {
Expand Down

0 comments on commit f385bd5

Please sign in to comment.