mobbdev 0.0.2 → 0.0.4
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/bin/cli.mjs +0 -0
- package/package.json +2 -2
- package/src/constants.mjs +4 -1
package/bin/cli.mjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobbdev",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Automated secure code remediation tool",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"prepack": "dotenv-vault pull production .env"
|
|
11
11
|
},
|
|
12
12
|
"bin": {
|
|
13
|
-
"
|
|
13
|
+
"mobbdev": "bin/cli.mjs"
|
|
14
14
|
},
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
package/src/constants.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
1
3
|
import * as dotenv from 'dotenv';
|
|
2
4
|
import { z } from 'zod';
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
dotenv.config({ path: path.join(__dirname, '../.env') });
|
|
5
8
|
|
|
6
9
|
const envVariablesSchema = z
|
|
7
10
|
.object({
|