unictive-angular 1.0.22 → 1.0.24

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.
Files changed (3) hide show
  1. package/.env +10 -2
  2. package/index.js +4 -3
  3. package/package.json +2 -2
package/.env CHANGED
@@ -1,2 +1,10 @@
1
- ADMIN_PASS=UnictiveMedia
2
- DOTENV_CONFIG_SILENT=true
1
+ #/-------------------[DOTENV_PUBLIC_KEY]--------------------/
2
+ #/ public-key encryption for .env files /
3
+ #/ [how it works](https://dotenvx.com/encryption) /
4
+ #/----------------------------------------------------------/
5
+ # DOTENV_PUBLIC_KEY="025c7ddc5d6c235d0d8d5b300769f7d1f58928f42d1aa274cc95921f73be459c5a"
6
+
7
+ # .env
8
+ ADMIN_PASS=encrypted:BFFqWzwiHsKV/Jk9xVNh18OfRAfWKW/IZI5Nq4bIeglYMxARv1IPTIK8ioxIj2n06O/UgVzznTztlXiudqWP6tOA9Zk+ft/QrYuun7O+UX2jxXLp6akJ9NRSyFXC2l/HJd+EnXe2RSQas2zebFg=
9
+ DOTENV_CONFIG_SILENT=encrypted:BCjHKtfF1z9cfU+r3ckIA8d5BPKlc7+ca2mxiDu91zc2kzlutfscl/+Q1CEM46Jqfa0OgB15h20P+FSXw/Wpptx8Iv1hL621kqS+LVJDXzNIM0vLkm6aD2PnPyNUlleQYuUa6j8=
10
+ TES=cobaa
package/index.js CHANGED
@@ -7,10 +7,12 @@
7
7
  * 👤 by - EkaHersada
8
8
  */
9
9
 
10
+
10
11
  const { execSync, spawn} = require("child_process");
11
12
  const fs = require("fs");
12
13
  const os = require("os");
13
14
  const path = require("path");
15
+
14
16
  const { show_status, run_with_spinner } = require('./bin/utils/showStatus');
15
17
  const { refactorAngularJson } = require('./bin/utils/refactorAngularJson');
16
18
  const { create_project } = require('./bin/utils/createProject');
@@ -20,13 +22,13 @@ const updateNotifier = require('update-notifier');
20
22
  const chalk = require('chalk');
21
23
 
22
24
 
23
- require("dotenv").config({silent: true});
25
+ require('@dotenvx/dotenvx').config({ path: path.resolve(__dirname, ".env") })
24
26
 
25
27
  const { login, logout } = require("./bin/utils/auth");
26
28
 
27
29
 
28
30
  // Baca versi dari package.json
29
- const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "../package.json"), "utf8"));
31
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "./package.json"), "utf8"));
30
32
 
31
33
 
32
34
 
@@ -174,7 +176,6 @@ async function main() {
174
176
 
175
177
  await login();
176
178
 
177
- const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "../package.json"), "utf8"));
178
179
  clear_and_header(pkg.version);
179
180
 
180
181
  const OS = check_os();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unictive-angular",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "CLI untuk membuat project Angular dengan struktur kustom (Modules, Core, API, Shared).",
5
5
  "scripts": {
6
6
  "build": "npm version patch && npm publish --access public"
@@ -17,8 +17,8 @@
17
17
  "author": "EkaHersada",
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
+ "@dotenvx/dotenvx": "^1.49.0",
20
21
  "chalk": "^4.1.2",
21
- "dotenv": "^17.2.1",
22
22
  "update-notifier": "^5.1.0"
23
23
  }
24
24
  }