Skip to content

Commit

Permalink
fix(dlx): print install output to stderr
Browse files Browse the repository at this point in the history
close #1698
  • Loading branch information
zkochan committed May 7, 2022
1 parent b22ba83 commit 64dbeed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-llamas-design.md
@@ -0,0 +1,5 @@
---
"pnpm": patch
---

`pnpm dlx` should print messages about installation to stderr [#1698](https://github.com/pnpm/pnpm/issues/1698).
3 changes: 3 additions & 0 deletions packages/pnpm/src/main.ts
Expand Up @@ -98,6 +98,9 @@ export default async function run (inputArgv: string[]) {
workspaceDir,
checkUnknownSetting: false,
}) as typeof config
if (cmd === 'dlx') {
config.useStderr = true
}
config.forceSharedLockfile = typeof config.workspaceDir === 'string' && config.sharedWorkspaceLockfile === true
config.argv = argv
config.fallbackCommandUsed = fallbackCommandUsed
Expand Down

0 comments on commit 64dbeed

Please sign in to comment.