Skip to content

Conversation

@gwennlbh
Copy link

@gwennlbh gwennlbh commented Jul 3, 2024

Some shells and tooling expect multiline env vars to be single-quoted. It is also particularly cumbersome when you have a JSON literal as the variable's value: you would need to escape every " without single quotes

This PR adds support for parsing single-quoted multiline strings, and serializes multiline strings that don't include ' in their value to single-quoted mulitline strings.

It also joins declarations with a single newline instead of two. This is more of a personal preference thing though, so maybe making this configurable would be more appropriate.
This is there mainly because this PR comes from a yarn patch of the package I did to use it directly.

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

Successfully merging this pull request may close these issues.

1 participant