@junwu168/openshell 0.1.2 → 0.1.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.
@@ -9,7 +9,17 @@
9
9
  "Bash(npx tsc:*)",
10
10
  "Bash(npm pack:*)",
11
11
  "Bash(npm view:*)",
12
- "Bash(tar -xzf junwu168-openshell-0.1.1.tgz)"
12
+ "Bash(tar -xzf junwu168-openshell-0.1.1.tgz)",
13
+ "Bash(npm install:*)",
14
+ "Bash(openshell server-registry:*)",
15
+ "Bash(npm root:*)",
16
+ "Bash(node /opt/homebrew/lib/node_modules/@junwu168/openshell/dist/cli/openshell.js server-registry list)",
17
+ "Bash(echo \"Exit code: $?\")",
18
+ "Bash(echo \"Exit: $?\")",
19
+ "Read(//tmp/**)",
20
+ "Bash(npm version:*)",
21
+ "Bash(npm publish:*)",
22
+ "Bash(node dist/cli/openshell.js server-registry list)"
13
23
  ]
14
24
  }
15
25
  }
@@ -40,3 +40,7 @@ export const runOpenShellCli = async (argv, deps) => {
40
40
  }
41
41
  };
42
42
  export const main = async (argv = process.argv.slice(2)) => runOpenShellCli(argv);
43
+ main().catch((err) => {
44
+ console.error(err);
45
+ process.exit(1);
46
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junwu168/openshell",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "openshell": "./dist/cli/openshell.js"
@@ -58,3 +58,8 @@ export const runOpenShellCli = async (argv: string[], deps?: Partial<OpenShellCl
58
58
  }
59
59
 
60
60
  export const main = async (argv: string[] = process.argv.slice(2)) => runOpenShellCli(argv)
61
+
62
+ main().catch((err) => {
63
+ console.error(err)
64
+ process.exit(1)
65
+ })