@rpcbase/cli 0.28.0 → 0.30.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/cli",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "license": "SSPL-1.0",
5
5
  "bin": {
6
6
  "rb": "./bin.js"
@@ -26,19 +26,25 @@ const get_port = (run_configs) => {
26
26
 
27
27
  const start = (run_configs) => {
28
28
  const {server_port, wss_port} = get_port(run_configs)
29
-
30
- execSync(`${TAILSCALE_PATH} serve https:443 /wss http://127.0.0.1:${wss_port}`, {stdio: "inherit"})
31
- execSync(`${TAILSCALE_PATH} serve https:443 / http://127.0.0.1:${server_port}`, {stdio: "inherit"})
32
- execSync(`${TAILSCALE_PATH} funnel 443 on`, {stdio: "inherit"})
29
+ try {
30
+ execSync(`${TAILSCALE_PATH} serve https:443 /wss http://127.0.0.1:${wss_port}`, {stdio: "inherit"})
31
+ execSync(`${TAILSCALE_PATH} serve https:443 / http://127.0.0.1:${server_port}`, {stdio: "inherit"})
32
+ execSync(`${TAILSCALE_PATH} funnel 443 on`, {stdio: "inherit"})
33
+ } catch (err) {
34
+ console.log("TAILSCALE ERR", err)
35
+ }
33
36
  }
34
37
 
35
38
 
36
39
  const stop = (run_configs) => {
37
40
  const {server_port, wss_port} = get_port(run_configs)
38
-
39
- execSync(`${TAILSCALE_PATH} serve https:443 /wss http://127.0.0.1:${wss_port} off`, {stdio: "inherit"})
40
- execSync(`${TAILSCALE_PATH} serve https:443 / http://127.0.0.1:${server_port} off`, {stdio: "inherit"})
41
- execSync(`${TAILSCALE_PATH} funnel 443 off`, {stdio: "inherit"})
41
+ try {
42
+ execSync(`${TAILSCALE_PATH} serve https:443 /wss http://127.0.0.1:${wss_port} off`, {stdio: "inherit"})
43
+ execSync(`${TAILSCALE_PATH} serve https:443 / http://127.0.0.1:${server_port} off`, {stdio: "inherit"})
44
+ execSync(`${TAILSCALE_PATH} funnel 443 off`, {stdio: "inherit"})
45
+ } catch (err) {
46
+ console.log("TAILSCALE ERR", err)
47
+ }
42
48
  }
43
49
 
44
50
  module.exports = {start, stop}
@@ -28,7 +28,7 @@ const start_command = async(args) => {
28
28
  if (cfg.type === "client") {
29
29
  name = "client"
30
30
  // command = "yarn dev"
31
- command = "./node_modules/.bin/rb-webpack-browser dev"
31
+ command = "./node_modules/.bin/bundler-client dev"
32
32
  prefixColor = "#C678DD"
33
33
  // server
34
34
  } else if (cfg.type === "server") {