hughsk / hughsk/envify

Package configurations taking priority over environment variables

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
895
Forks
57
PR merge metrics
No merged PRs in 30d

Description

I have a use case where I would like environment variable definitions to override properties to _envify_, the default values of which would be contained in the package.json file. Something like this:

``` json
"scripts" {
"build-yes": "MY_VAR=YES browserify .",
"build": "browserify ."
},
"browserify": {
"transform": [
"babelify",
"browserify-shim",
[
"envify",
{
"MY_VAR": "NO"
}
]
]
}
```

Unfortunately, the re-definition derived from the script "build-yes" does not take place. Removing the definition of `"MY_VAR":"NO"` in the package is the only way for `"MY_VAR=YES"` to reach the transform. Is this the desired behaviour? Could these priorities be reconsidered?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.