Closed thtliife closed 1 year ago
When using this completion for pnpm run scripts, if the script key contains a colon, it is not output correctly in terminal.
pnpm run
Reproduction repo here
eg: For a minimal package json like below:
{ "name": "colon-in-scripts-repro", "version": "0.0.1", "description": "", "scripts": { "test": "echo \"this is working in pnpm-shell-completion\"", "test:broken": "echo \"this should output test:broken in pnpm-shell-completion\"" } }
the resulting output of pnpm <tab><tab> or pnpm run <tab><tab> is as below:
pnpm <tab><tab>
pnpm run <tab><tab>
When using this completion for
pnpm run
scripts, if the script key contains a colon, it is not output correctly in terminal.Reproduction repo here
eg: For a minimal package json like below:
the resulting output of
pnpm <tab><tab>
orpnpm run <tab><tab>
is as below: