@dotenvx/dotenvx 1.32.1 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/README.md +2 -1
- package/package.json +11 -1
- package/src/lib/config.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.
|
|
5
|
+
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.33.0...main)
|
|
6
|
+
|
|
7
|
+
## [1.33.0](https://github.com/dotenvx/dotenvx/compare/v1.32.1...v1.33.0)
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
* support ESM import convenience `import '@dotenvx/dotenvx/config'` ([#508](https://github.com/dotenvx/dotenvx/pull/508))
|
|
6
12
|
|
|
7
13
|
## [1.32.1](https://github.com/dotenvx/dotenvx/compare/v1.32.0...v1.32.1)
|
|
8
14
|
|
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ npm install @dotenvx/dotenvx --save
|
|
|
19
19
|
```js
|
|
20
20
|
// index.js
|
|
21
21
|
require('@dotenvx/dotenvx').config()
|
|
22
|
+
// or import('@dotenvx/dotenvx/config') if you're using esm
|
|
22
23
|
|
|
23
24
|
console.log(`Hello ${process.env.HELLO}`)
|
|
24
25
|
```
|
|
@@ -2024,7 +2025,7 @@ More examples
|
|
|
2024
2025
|
|
|
2025
2026
|
```js
|
|
2026
2027
|
// index.js
|
|
2027
|
-
require('@dotenvx/dotenvx').config({envKeysFile: '../../.env.keys'})
|
|
2028
|
+
require('@dotenvx/dotenvx').config({path: ['.env'], envKeysFile: '../../.env.keys'})
|
|
2028
2029
|
```
|
|
2029
2030
|
|
|
2030
2031
|
</details>
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.33.0",
|
|
3
3
|
"name": "@dotenvx/dotenvx",
|
|
4
4
|
"description": "a better dotenv–from the creator of `dotenv`",
|
|
5
5
|
"author": "@motdotla",
|
|
@@ -19,6 +19,16 @@
|
|
|
19
19
|
],
|
|
20
20
|
"main": "src/lib/main.js",
|
|
21
21
|
"types": "src/lib/main.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./src/lib/main.d.ts",
|
|
25
|
+
"require": "./src/lib/main.js",
|
|
26
|
+
"default": "./src/lib/main.js"
|
|
27
|
+
},
|
|
28
|
+
"./config": "./src/lib/config.js",
|
|
29
|
+
"./config.js": "./src/lib/config.js",
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
22
32
|
"bin": {
|
|
23
33
|
"dotenvx": "./src/cli/dotenvx.js",
|
|
24
34
|
"git-dotenvx": "./src/cli/dotenvx.js"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('./main.js').config()
|