traforo 0.0.5 → 0.0.6
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/README +1 -2
- package/dist/cli.js +1 -4
- package/package.json +1 -1
package/README
CHANGED
|
@@ -39,8 +39,7 @@ OPTIONS
|
|
|
39
39
|
-p, --port <port> Local port to expose (required)
|
|
40
40
|
-t, --tunnel-id [id] Tunnel ID (random if omitted)
|
|
41
41
|
-h, --host [host] Local host (default: localhost)
|
|
42
|
-
-
|
|
43
|
-
-s, --server [url] Custom tunnel server URL (overrides domain)
|
|
42
|
+
-s, --server [url] Custom tunnel server URL
|
|
44
43
|
--help Show help
|
|
45
44
|
--version Show version
|
|
46
45
|
|
package/dist/cli.js
CHANGED
|
@@ -8,13 +8,11 @@ cli
|
|
|
8
8
|
.option('-p, --port <port>', 'Local port to expose (required)')
|
|
9
9
|
.option('-t, --tunnel-id [id]', 'Tunnel ID (random if omitted)')
|
|
10
10
|
.option('-h, --host [host]', 'Local host (default: localhost)')
|
|
11
|
-
.option('-
|
|
12
|
-
.option('-s, --server [url]', 'Tunnel server URL (overrides domain)')
|
|
11
|
+
.option('-s, --server [url]', 'Tunnel server URL')
|
|
13
12
|
.example(`${CLI_NAME} -p 3000`)
|
|
14
13
|
.example(`${CLI_NAME} -p 3000 -- next start`)
|
|
15
14
|
.example(`${CLI_NAME} -p 3000 -- pnpm dev`)
|
|
16
15
|
.example(`${CLI_NAME} -p 5173 -t my-app -- vite`)
|
|
17
|
-
.example(`${CLI_NAME} -p 3000 -d traforo.dev -- pnpm dev`)
|
|
18
16
|
.action(async (options) => {
|
|
19
17
|
if (!options.port) {
|
|
20
18
|
console.error('Error: --port is required');
|
|
@@ -30,7 +28,6 @@ cli
|
|
|
30
28
|
port,
|
|
31
29
|
tunnelId: options.tunnelId,
|
|
32
30
|
localHost: options.host,
|
|
33
|
-
baseDomain: options.domain,
|
|
34
31
|
serverUrl: options.server,
|
|
35
32
|
command: command.length > 0 ? command : undefined,
|
|
36
33
|
});
|