Skip to content

Commit 4f1c798

Browse files
Add npm wrapper: package.json + cli.js for npm publishing
1 parent f212786 commit 4f1c798

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

cli.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env node
2+
const { spawnSync } = require('child_process');
3+
const path = require('path');
4+
5+
// Find python3 or python
6+
const python = process.platform === 'win32' ? 'python' : 'python3';
7+
const args = ['-m', 'envault.cli', ...process.argv.slice(2)];
8+
const result = spawnSync(python, args, { stdio: 'inherit' });
9+
process.exit(result.status != null ? result.status : 1);

package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "envault-secrets",
3+
"version": "0.1.0",
4+
"description": "Secure environment variable manager for development teams. Encrypt, store, and share .env files.",
5+
"author": "Revenue Holdings <engineering@revenueholdings.dev>",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/Coding-Dev-Tools/envault.git"
10+
},
11+
"homepage": "https://github.com/Coding-Dev-Tools/envault#readme",
12+
"bugs": {
13+
"url": "https://github.com/Coding-Dev-Tools/envault/issues"
14+
},
15+
"bin": {
16+
"envault": "cli.js"
17+
},
18+
"keywords": [
19+
"env",
20+
"environment",
21+
"secrets",
22+
"vault",
23+
"cli",
24+
"dotenv",
25+
"encryption"
26+
],
27+
"files": [
28+
"cli.js"
29+
],
30+
"engines": {
31+
"node": ">=16.0.0"
32+
},
33+
"preferGlobal": true
34+
}

0 commit comments

Comments
 (0)