You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesarmano2#7
Funny how these things go. I reported the issue then I started fixing a similar issue for npm to pnpm for sapphiredev/documentation-plugins#80 and turns out this fix also works for npm to yarn
Example regexr: regexr.com/6phbp
Is there an existing issue for this?
Description of the bug
Two related issues regarding the conversion of the
npm
command topnpm
:1. Missing space
When converting commands such as
npm install prisma
, everything works fine.However, when passing flags, like
npm install --save-dev prisma
, thepnpm
conversion is missing a space.i.e. this:
Turns into:
Examples:
2. Mis-translated flag
Will render, in the
pnpm
tab, to:When it should be
pnpm add --save-dev prisma
Steps To Reproduce
Create a bash code block with an
npm install
command using a double dashed flag, i.e.--save-dev
.For example:
Will render, in the
pnpm
tab, to:Notice the flag being mistranslated from
--save-dev
to--save-prod-dev
, as well as the missing space betweenprisma
and--save...
.Expected behavior
npm install --save-dev prisma
should be translated topnpm add --save-dev prisma
Screenshots
See above.
Additional context
No response
The text was updated successfully, but these errors were encountered: