@o-town/local.dev 1.0.0 → 1.1.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.
Files changed (2) hide show
  1. package/README.md +21 -9
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -11,13 +11,13 @@ npx local.dev 3000
11
11
  ## Install
12
12
 
13
13
  ```bash
14
- npm install -g local.dev
14
+ npm install -g @o-town/local.dev
15
15
  ```
16
16
 
17
17
  Or use without installing:
18
18
 
19
19
  ```bash
20
- npx local.dev 3000
20
+ npx @o-town/local.dev 3000
21
21
  ```
22
22
 
23
23
  ---
@@ -25,7 +25,7 @@ npx local.dev 3000
25
25
  ## CLI Usage
26
26
 
27
27
  ```
28
- local.dev [port] [options]
28
+ npx local.dev [port] [options]
29
29
  ```
30
30
 
31
31
  ### Arguments
@@ -50,19 +50,19 @@ local.dev [port] [options]
50
50
 
51
51
  ```bash
52
52
  # Expose port 3000
53
- local.dev 3000
53
+ npx local.dev 3000
54
54
 
55
55
  # Expose port 8080 with a custom subdomain
56
- local.dev 8080 --subdomain myapp
56
+ npx local.dev 8080 --subdomain myapp
57
57
 
58
58
  # Show QR code (great for mobile testing)
59
- local.dev 3000 --qr
59
+ npx local.dev 3000 --qr
60
60
 
61
61
  # Open tunnel URL in browser + log requests
62
- local.dev 3000 --open --print-requests
62
+ npx local.dev 3000 --open --print-requests
63
63
 
64
64
  # Expose a non-localhost server
65
- local.dev 3000 --host 192.168.1.10
65
+ npx local.dev 3000 --host 192.168.1.10
66
66
  ```
67
67
 
68
68
  ---
@@ -72,7 +72,7 @@ local.dev 3000 --host 192.168.1.10
72
72
  You can also use `local.dev` as a Node.js library:
73
73
 
74
74
  ```js
75
- const { tunnel } = require('local.dev');
75
+ const { tunnel } = require('@o-town/local.dev');
76
76
 
77
77
  async function main() {
78
78
  // Simple: just pass a port
@@ -142,3 +142,15 @@ t.on('close', () => {
142
142
  ## License
143
143
 
144
144
  MIT
145
+
146
+ ---
147
+
148
+ ## Publishing
149
+
150
+ ```bash
151
+ npm install
152
+ npm login
153
+ npm publish --access public
154
+ ```
155
+
156
+ > Scoped packages require `--access public` to be visible on the npm registry.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@o-town/local.dev",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Expose your local website to the internet instantly — no config, no signup.",
5
- "main": "lib/index.js",
5
+ "main": "./lib/index.js",
6
6
  "bin": {
7
7
  "local.dev": "./bin/cli.js",
8
8
  "localdev": "./bin/cli.js"
@@ -25,12 +25,12 @@
25
25
  "dependencies": {
26
26
  "axios": "^1.6.0",
27
27
  "chalk": "^4.1.2",
28
+ "ws": "^8.16.0",
28
29
  "http-proxy": "^1.18.1",
29
- "localtunnel": "^1.8.3",
30
+ "localtunnel": "^2.0.2",
30
31
  "ora": "^5.4.1",
31
32
  "qrcode-terminal": "^0.12.0",
32
- "update-notifier": "^7.3.1",
33
- "ws": "^8.16.0",
33
+ "update-notifier": "^5.1.0",
34
34
  "yargs": "^17.7.2"
35
35
  },
36
36
  "engines": {
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "https://github.com/yourusername/local.dev.git"
41
+ "url": "https://github.com/o-town/local.dev.git"
42
42
  },
43
43
  "homepage": "https://localdev.sh",
44
44
  "bugs": {
45
- "url": "https://github.com/yourusername/local.dev/issues"
45
+ "url": "https://github.com/o-town/local.dev/issues"
46
46
  }
47
- }
47
+ }