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

fix(envs): revert behavior of array in npm config #191

Closed
wants to merge 3 commits into from

Conversation

siemhesda
Copy link
Contributor

This is a fix for [BUG] package.json#/config/*: Array changed behaviour to joining items with double new-line #3775

package.json:

{
"config": {
    "array": [
      "item1",
      "item2", "item3"
    ]
}}

Before:

{
  "npm_package_config_array": "item1\n\nitem2\n\nitem3"
}

After


{
  "npm_package_config_array_0": "item1",
  "npm_package_config_array_1": "item2",
  "npm_package_config_array_2": "item3"
}

References

Closes npm/cli#3775

package.json:
```
{
"config": {
    "array": [
      "item1",
      "item2", "item3"
    ]
}}
```
Before:
```
{
  "npm_package_config_array": "item1\n\nitem2\n\nitem3"
}
```

After
```

{
  "npm_package_config_array_0": "item1",
  "npm_package_config_array_1": "item2",
  "npm_package_config_array_2": "item3"
}
```
@siemhesda siemhesda requested a review from a team as a code owner January 16, 2024 18:32
@wraithgar
Copy link
Member

#192 cause quite a bit of change in this module, namely a rewrite of the tests and some formatting on the code changed in this PR. It's gonna have to have conflicts resolved.

@wraithgar
Copy link
Member

Rebased in #191

@wraithgar wraithgar self-assigned this Jan 22, 2024
@wraithgar wraithgar closed this Jan 22, 2024
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.

[BUG] package.json#/config/*: Array changed behaviour to joining items with double new-line
2 participants