unictive-angular 1.0.21 → 1.0.23

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.
@@ -11,22 +11,22 @@ const { execSync, spawn} = require("child_process");
11
11
  const fs = require("fs");
12
12
  const os = require("os");
13
13
  const path = require("path");
14
- const { show_status, run_with_spinner } = require('./utils/showStatus');
15
- const { refactorAngularJson } = require('./utils/refactorAngularJson');
16
- const { create_project } = require('./utils/createProject');
17
- const { copy_template } = require('./utils/createStructure');
14
+ const { show_status, run_with_spinner } = require('./bin/utils/showStatus');
15
+ const { refactorAngularJson } = require('./bin/utils/refactorAngularJson');
16
+ const { create_project } = require('./bin/utils/createProject');
17
+ const { copy_template } = require('./bin/utils/createStructure');
18
18
  // const { update_package_json } = require('./utils/updatePackageJson');
19
19
  const updateNotifier = require('update-notifier');
20
20
  const chalk = require('chalk');
21
21
 
22
22
 
23
- require("dotenv").config({ path: path.join(__dirname, "..", ".env") , silent: true});
23
+ require("dotenv").config({silent: true});
24
24
 
25
- const { login, logout } = require("./utils/auth");
25
+ const { login, logout } = require("./bin/utils/auth");
26
26
 
27
27
 
28
28
  // Baca versi dari package.json
29
- const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "../package.json"), "utf8"));
29
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "./package.json"), "utf8"));
30
30
 
31
31
 
32
32
 
@@ -174,7 +174,6 @@ async function main() {
174
174
 
175
175
  await login();
176
176
 
177
- const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "../package.json"), "utf8"));
178
177
  clear_and_header(pkg.version);
179
178
 
180
179
  const OS = check_os();
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "unictive-angular",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
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"
7
7
  },
8
8
  "bin": {
9
- "unictive-angular": "./bin/index.js"
9
+ "unictive-angular": "./index.js"
10
10
  },
11
11
  "keywords": [
12
12
  "angular",