You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,24 +65,19 @@ To this:
65
65
}
66
66
```
67
67
68
-
_The `betterScripts` script definition can either be a string or sub-object with `command` and `env` attributes._
68
+
_The `betterScripts` script definition can either be a string or sub-object with `command` and `env` attributes. Values defined in the `env` block will override previously set environment variables._
69
69
70
70
# .env File
71
71
72
-
If you have an `.env` file in your project root it will be loaded on every command
72
+
If you have an `.env` file in your project root it will be loaded on every command.
73
73
74
74
```
75
75
NODE_PATH=./:./lib
76
76
NODE_ENV=development
77
77
PORT=5000
78
78
```
79
79
80
-
Environment variables will be merged in the following order:
81
-
*`package.json` options
82
-
*`.env` file content
83
-
* parent `process.env` values
84
-
85
-
Whoever comes last, will set the actual value.
80
+
_Environment variables defined in the `betterScripts` script definition will take precedence over `.env` values._
0 commit comments