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

yaml multiline string formatting is lost upon using npm #3

Open
airtonix opened this issue May 19, 2020 · 0 comments
Open

yaml multiline string formatting is lost upon using npm #3

airtonix opened this issue May 19, 2020 · 0 comments

Comments

@airtonix
Copy link

airtonix commented May 19, 2020

scripts:
  dev: |-
    echo "Something"
    echo "Something Else"
  dev:foo: |-
    echo "Yet more things"
    npm run dev
  dev:bar: >-
    echo "Yet more things"
    npm run dev

ends up being turned into:

scripts:
  dev: |-
    echo "Something"
    echo "Something Else"
  'dev:foo': |-
    echo "Yet more things";
    npm run dev
  'dev:bar': echo "Yet more things"; npm run dev

I posit that package-yml should either just ignore the scripts section or look in a key config.package-yml for some rules about desired behaviour.

scripts:
   ...
"package-yml":
  transform:
    out:
      - "*"
    in:
      - "!scripts"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant