@naseej/blox 0.1.9 → 0.1.10

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/dist/run.js +12 -2
  2. package/package.json +1 -1
  3. package/readme.md +13 -0
package/dist/run.js CHANGED
@@ -31,7 +31,7 @@ var option = (flags, description) => {
31
31
  };
32
32
 
33
33
  // package.json
34
- var version = "0.1.9";
34
+ var version = "0.1.10";
35
35
 
36
36
  // src/services/git.ts
37
37
  var import_node_path = __toESM(require("path"));
@@ -618,8 +618,18 @@ var update2 = command("update").description("Update app/block").alias("u").addOp
618
618
  }
619
619
  });
620
620
 
621
+ // src/commands/upgrade/index.ts
622
+ var upgrade = command("upgrade").description("Upgrade blox cli to latest version").action(async () => {
623
+ try {
624
+ await $("npm", ["i", "-g", "@naseej/blox"]);
625
+ import_prompts2.log.success("Blox updated successfully.");
626
+ } catch (e) {
627
+ error(e);
628
+ }
629
+ });
630
+
621
631
  // src/commands/index.ts
622
- var commands = [init2, add, update2, sync, conf];
632
+ var commands = [init2, add, update2, sync, conf, upgrade];
623
633
 
624
634
  // bin/run.ts
625
635
  import_extra_typings2.program.name("blox").version(version);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naseej/blox",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "blox cli",
5
5
  "bin": {
6
6
  "blox": "./bin/run"
package/readme.md CHANGED
@@ -51,6 +51,7 @@ Options:
51
51
  * [update](#update)
52
52
  * [sync](#sync)
53
53
  * [conf](#conf)
54
+ * [upgrade](#upgrade)
54
55
 
55
56
  #### init
56
57
 
@@ -129,6 +130,18 @@ Options:
129
130
  -r, --registries Remote registries urls
130
131
  ```
131
132
 
133
+ #### upgrade
134
+
135
+ ```sh
136
+ blox upgrade
137
+ ```
138
+
139
+ ```
140
+ blox upgrade
141
+
142
+ Upgrade blox cli to latest version
143
+ ```
144
+
132
145
  ### Docs
133
146
 
134
147
  - [Design](./docs/design.md)