@qui-cli/env 5.1.1 → 5.1.2
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 +10 -12
- package/README.md +16 -3
- package/package.json +8 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,45 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
## [5.1.
|
|
5
|
+
## [5.1.2](https://github.com/battis/qui-cli/compare/env/5.1.1...env/5.1.2) (2026-03-10)
|
|
6
|
+
|
|
7
|
+
Update README
|
|
6
8
|
|
|
9
|
+
## [5.1.1](https://github.com/battis/qui-cli/compare/env/5.1.0...env/5.1.1) (2026-01-21)
|
|
7
10
|
|
|
8
11
|
### Bug Fixes
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
- configure 1Password before looking up secret references ([7046af5](https://github.com/battis/qui-cli/commit/7046af55ed2720b7b74bd437f335fe49fa8bc00f))
|
|
11
14
|
|
|
12
15
|
## [5.1.0](https://github.com/battis/qui-cli/compare/env/5.0.4...env/5.1.0) (2026-01-19)
|
|
13
16
|
|
|
14
|
-
|
|
15
17
|
### Features
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
- support 1Password secret references if @1password/sdk (and 1Password) installed ([ed4570c](https://github.com/battis/qui-cli/commit/ed4570cd5cf19ae34fc03f6b88b01f0ebf72e72d))
|
|
19
20
|
|
|
20
21
|
### Bug Fixes
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
- detect missing 1Password CLI ([3c306ba](https://github.com/battis/qui-cli/commit/3c306ba7e37394948666f96b1ad728e8abc65a4e)), closes [#81](https://github.com/battis/qui-cli/issues/81)
|
|
23
24
|
|
|
24
25
|
## [5.0.4](https://github.com/battis/qui-cli/compare/env/5.0.3...env/5.0.4) (2026-01-18)
|
|
25
26
|
|
|
26
|
-
|
|
27
27
|
### Bug Fixes
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
- compile against Node.js v24 ([7b06b4f](https://github.com/battis/qui-cli/commit/7b06b4f4ac4f9688719041ab8b1d837b3a0ee214))
|
|
30
30
|
|
|
31
31
|
## [5.0.3](https://github.com/battis/qui-cli/compare/env/5.0.2...env/5.0.3) (2026-01-02)
|
|
32
32
|
|
|
33
|
-
|
|
34
33
|
### Bug Fixes
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
- normalize peer dependencies ([cdd81b7](https://github.com/battis/qui-cli/commit/cdd81b7c4bea7c769021ff58177750c5a1369f76))
|
|
37
36
|
|
|
38
37
|
## [5.0.2](https://github.com/battis/qui-cli/compare/env/5.0.1...env/5.0.2) (2025-12-19)
|
|
39
38
|
|
|
40
|
-
|
|
41
39
|
### Bug Fixes
|
|
42
40
|
|
|
43
|
-
|
|
41
|
+
- increase accuracy of README ([94e2c4c](https://github.com/battis/qui-cli/commit/94e2c4c2f8d146715d19c7f36b6f8f1d0d8980f8))
|
|
44
42
|
|
|
45
43
|
## [5.0.1](https://github.com/battis/qui-cli/compare/env/5.0.0...env/5.0.1) (2025-11-08)
|
|
46
44
|
|
package/README.md
CHANGED
|
@@ -8,16 +8,29 @@
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
10
|
```sh
|
|
11
|
-
npm install @qui-cli/env
|
|
11
|
+
npm install @qui-cli/env @qui-cli/core @1password/sdk
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`@1password/sdk` is an [optional](#1password-integration), but recommended, peer depedency.
|
|
15
|
+
|
|
16
|
+
If developing a reusable plugin:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm install --save-peer @qui-cli/env@>=5
|
|
12
20
|
```
|
|
13
21
|
|
|
14
22
|
## Usage
|
|
15
23
|
|
|
16
24
|
```ts
|
|
25
|
+
import { Core } from '@qui-cli/core';
|
|
17
26
|
import { Env } from '@qui-cli/env';
|
|
27
|
+
import path from 'node:path'
|
|
28
|
+
|
|
29
|
+
// (optional) configure desired environment path
|
|
30
|
+
Env.configure({ path: path.resolve(import.meta.dirname, '../.env')});
|
|
18
31
|
|
|
19
|
-
//
|
|
20
|
-
|
|
32
|
+
// process user-provided command-line arguments and load environment
|
|
33
|
+
await Core.run();
|
|
21
34
|
|
|
22
35
|
// update .env
|
|
23
36
|
Env.set({ key: 'EXAMPLE', value: parseInt(process.env.EXAMPLE || '0') + 1 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qui-cli/env",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "@qui-cli Plugin: Standardized environment configuration",
|
|
5
5
|
"homepage": "https://github.com/battis/qui-cli/tree/main/packages/env#readme",
|
|
6
6
|
"repository": {
|
|
@@ -18,26 +18,20 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@battis/import-package-json": "^0.1.7",
|
|
21
|
-
"dotenv": "^17.
|
|
22
|
-
"ora": "^9.
|
|
21
|
+
"dotenv": "^17.3.1",
|
|
22
|
+
"ora": "^9.3.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@1password/sdk": "^0.3.1",
|
|
26
25
|
"@tsconfig/node24": "^24.0.4",
|
|
27
|
-
"@types/node": "^24.10.
|
|
26
|
+
"@types/node": "^24.10.13",
|
|
28
27
|
"commit-and-tag-version": "^12.6.1",
|
|
29
28
|
"del-cli": "^7.0.0",
|
|
30
29
|
"npm-run-all": "^4.1.5",
|
|
31
|
-
"typescript": "^5.9.3"
|
|
32
|
-
"@qui-cli/log": "4.0.3",
|
|
33
|
-
"@qui-cli/plugin": "4.1.0",
|
|
34
|
-
"@qui-cli/colors": "3.2.3",
|
|
35
|
-
"@qui-cli/root": "3.1.0",
|
|
36
|
-
"@qui-cli/shell": "3.1.2"
|
|
30
|
+
"typescript": "^5.9.3"
|
|
37
31
|
},
|
|
38
32
|
"peerDependencies": {
|
|
39
|
-
"@1password/sdk": "0.3
|
|
40
|
-
"@qui-cli/colors": ">=3",
|
|
33
|
+
"@1password/sdk": ">=0.3",
|
|
34
|
+
"@qui-cli/colors": ">=3.2",
|
|
41
35
|
"@qui-cli/log": ">=3",
|
|
42
36
|
"@qui-cli/plugin": ">=3",
|
|
43
37
|
"@qui-cli/root": ">=3",
|
|
@@ -54,6 +48,6 @@
|
|
|
54
48
|
"build": "run-s build:*",
|
|
55
49
|
"build:clean": "run-s clean",
|
|
56
50
|
"build:compile": "tsc",
|
|
57
|
-
"
|
|
51
|
+
"release": "commit-and-tag-version"
|
|
58
52
|
}
|
|
59
53
|
}
|