@envseal/cli 0.1.7 → 0.1.8
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/dist/bin.js +15 -1
- package/package.json +8 -8
package/dist/bin.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { findProjectRoot } from '@envseal/core';
|
|
3
|
+
import { readFileSync } from 'node:fs';
|
|
3
4
|
import { EXIT } from './exit-codes.js';
|
|
4
5
|
import { fail } from './output.js';
|
|
5
6
|
import { finish } from './exit.js';
|
|
@@ -14,7 +15,20 @@ import { revoke } from './commands/revoke.js';
|
|
|
14
15
|
import { audit } from './commands/audit.js';
|
|
15
16
|
import { mcp } from './commands/mcp.js';
|
|
16
17
|
import { init } from './commands/init.js';
|
|
17
|
-
|
|
18
|
+
/**
|
|
19
|
+
* The shipped version, read from this package's own package.json so a release
|
|
20
|
+
* can never ship a stale hardcoded string again (0.1.6 and 0.1.7 both
|
|
21
|
+
* reported 0.1.5). Falls back to 'unknown' — never a wrong number.
|
|
22
|
+
*/
|
|
23
|
+
const VERSION = (() => {
|
|
24
|
+
try {
|
|
25
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
26
|
+
return typeof pkg.version === 'string' ? pkg.version : 'unknown';
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return 'unknown';
|
|
30
|
+
}
|
|
31
|
+
})();
|
|
18
32
|
async function main() {
|
|
19
33
|
const argv = process.argv.slice(2);
|
|
20
34
|
if (argv.length === 0 || argv[0] === '--help' || argv[0] === '-h') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envseal/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"provenance": true
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@envseal/
|
|
27
|
-
"@envseal/prompters": "0.1.
|
|
28
|
-
"@envseal/
|
|
29
|
-
"@envseal/
|
|
30
|
-
"@envseal/
|
|
31
|
-
"@envseal/
|
|
32
|
-
"@envseal/
|
|
26
|
+
"@envseal/protocol": "0.1.8",
|
|
27
|
+
"@envseal/prompters": "0.1.8",
|
|
28
|
+
"@envseal/detector": "0.1.8",
|
|
29
|
+
"@envseal/registry": "0.1.8",
|
|
30
|
+
"@envseal/http-server": "0.1.8",
|
|
31
|
+
"@envseal/mcp-server": "0.1.8",
|
|
32
|
+
"@envseal/core": "0.1.8"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|