@azrico/azcli 1.0.0 → 1.0.3

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0,exports.handle=handle;var _commons=require("../commons"),cmd1=["rimraf node_modules && rimraf ./**/node_modules"],cmd2=["rimraf yarn.lock && rimraf ./**/yarn.lock"];function handle(a){(0,_commons.show_msg)("Cleaning up node_module & lock files");var b=a.q?void 0:console.log;(0,_commons.do_exec)(cmd1,b).then(function(){return(0,_commons.do_exec)(cmd2,b)})["finally"](function(){(0,_commons.show_msg)("Node cleanup done")})["catch"](function(){(0,_commons.err_unknown)("cleanup failed")})}var _default=handle;exports["default"]=_default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0,exports.handle=handle;var _commons=require("../commons"),cmd1=["rimraf ./**/node_modules"],cmd_clean_cache=["rimraf ./**/.yarn/cache && rimraf ./**/.jest/cache"],cmd_clean_lock=["rimraf ./**/yarn.lock && rimraf ./**/package-lock.json"];function handle(a){(0,_commons.show_msg)("Cleaning up node_module & lock files");var b=a.q?void 0:console.log;(0,_commons.do_exec)(cmd1,b).then(function(){return(0,_commons.do_exec)(cmd_clean_cache,b)}).then(function(){return(0,_commons.do_exec)(cmd_clean_cache,b)}).then(function(){return(0,_commons.do_exec)(cmd_clean_lock,b)})["finally"](function(){(0,_commons.show_msg)("Node cleanup done")})["catch"](function(){(0,_commons.err_unknown)("cleanup failed")})}var _default=handle;exports["default"]=_default;
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
- {
2
- "name": "@azrico/azcli",
3
- "version": "1.0.0",
4
- "private": false,
5
- "description": "",
6
- "author": "Azrideus",
7
- "license": "MIT",
8
- "main": "dist/cli.js",
9
- "scripts": {
10
- "build": "rimraf dist && tsc && babel dist --out-dir dist --presets minify",
11
- "start": "nodemon -e ts,json --exec yarn run build"
12
- },
13
- "bin": {
14
- "azcli": "./dist/cli.js"
15
- },
16
- "keywords": [],
17
- "devDependencies": {
18
- "@babel/cli": "^7.17.10",
19
- "@babel/core": "^7.18.5",
20
- "@babel/eslint-parser": "^7.18.2",
21
- "@babel/node": "^7.18.5",
22
- "@babel/plugin-proposal-class-properties": "^7.17.12",
23
- "@babel/preset-env": "^7.18.2",
24
- "@babel/preset-typescript": "^7.17.12",
25
- "@types/chalk": "^2.2.0",
26
- "@types/clear": "^0.1.2",
27
- "@types/figlet": "^1.5.4",
28
- "@types/node": "^18.0.0",
29
- "babel-preset-minify": "^0.5.2",
30
- "nodemon": "^2.0.16",
31
- "tsc": "^2.0.4",
32
- "typescript": "^4.7.4"
33
- },
34
- "dependencies": {
35
- "@types/yargs": "^17.0.10",
36
- "chalk": "^4.1.2",
37
- "clear": "^0.1.0",
38
- "figlet": "^1.5.2",
39
- "ora-classic": "^5.4.2",
40
- "path": "^0.12.7",
41
- "shell-exec": "^1.1.2",
42
- "yargs": "^17.5.1"
43
- },
44
- "files": [
45
- "dist"
46
- ]
47
- }
1
+ {
2
+ "name": "@azrico/azcli",
3
+ "version": "1.0.3",
4
+ "description": "",
5
+ "main": "dist/cli.js",
6
+ "scripts": {
7
+ "build": "rimraf dist && tsc && babel dist --out-dir dist --presets minify",
8
+ "start": "nodemon -e ts,json --exec yarn run build"
9
+ },
10
+ "bin": {
11
+ "azcli": "./dist/cli.js"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "keywords": [],
17
+ "private": false,
18
+ "author": "Azrideus",
19
+ "license": "MIT",
20
+ "devDependencies": {
21
+ "@babel/cli": "^7.17.10",
22
+ "@babel/core": "^7.18.5",
23
+ "@babel/eslint-parser": "^7.18.2",
24
+ "@babel/node": "^7.18.5",
25
+ "@babel/plugin-proposal-class-properties": "^7.17.12",
26
+ "@babel/preset-env": "^7.18.2",
27
+ "@babel/preset-typescript": "^7.17.12",
28
+ "@types/chalk": "^2.2.0",
29
+ "@types/clear": "^0.1.2",
30
+ "@types/figlet": "^1.5.4",
31
+ "@types/node": "^18.0.0",
32
+ "babel-preset-minify": "^0.5.2",
33
+ "nodemon": "^2.0.16",
34
+ "tsc": "^2.0.4",
35
+ "typescript": "^4.7.4"
36
+ },
37
+ "dependencies": {
38
+ "@types/yargs": "^17.0.10",
39
+ "chalk": "^4.1.2",
40
+ "clear": "^0.1.0",
41
+ "figlet": "^1.5.2",
42
+ "ora-classic": "^5.4.2",
43
+ "path": "^0.12.7",
44
+ "shell-exec": "^1.1.2",
45
+ "yargs": "^17.5.1"
46
+ }
47
+ }