Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve comments in package yaml #5595

Closed
1 task
mptr opened this issue Nov 6, 2022 · 1 comment
Closed
1 task

preserve comments in package yaml #5595

mptr opened this issue Nov 6, 2022 · 1 comment

Comments

@mptr
Copy link

mptr commented Nov 6, 2022

It would be nice, if pnpm preserves comments placed in a package.yaml file.

Current behavior

package.yaml (pre install)

...
scripts:
  # just a test
  foo: echo bar
dependencies:
  ...

run pnpm install <dep>

package.yaml (post install)

...
scripts:
  foo: echo bar
dependencies:
  <dep>: <version>
  ...

Desired behavior

package.yaml (pre install)

...
scripts:
  # just a test
  foo: echo bar
dependencies:
  ...

run pnpm install <dep>

package.yaml (post install)

...
scripts:
  # just a test
  foo: echo bar
dependencies:
  <dep>: <version>
  ...
@danielbayley
Copy link

@mptr Duplicate of #2008

@mptr mptr closed this as completed Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants