better-auth-studio 1.0.72 → 1.0.73
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.md +31 -23
- package/dist/cli.js +0 -0
- package/package.json +26 -27
- package/public/assets/{main-Cp6rbsZT.js → main-aKKBakSP.js} +4 -4
- package/public/index.html +1 -1
- package/frontend/package.json +0 -64
package/README.md
CHANGED
|
@@ -227,6 +227,7 @@ pnpx better-auth-studio start [options]
|
|
|
227
227
|
- `--host <string>` - Specify host (default: localhost)
|
|
228
228
|
- `--no-open` - Don't automatically open browser
|
|
229
229
|
- `--config <path>` - Path to auth config file (default: auto-detect)
|
|
230
|
+
- `--watch` - Watch for changes in auth config file and reload server automatically
|
|
230
231
|
|
|
231
232
|
**Examples:**
|
|
232
233
|
```bash
|
|
@@ -241,33 +242,40 @@ pnpm better-auth-studio start --no-open
|
|
|
241
242
|
|
|
242
243
|
# Use custom config file
|
|
243
244
|
pnpm better-auth-studio start --config ./custom-auth.ts
|
|
245
|
+
|
|
246
|
+
# Enable watch mode for auto-reload on config changes
|
|
247
|
+
pnpm better-auth-studio start --watch
|
|
248
|
+
|
|
249
|
+
# Combine multiple options
|
|
250
|
+
pnpx better-auth-studio start --port 3001 --watch --config ./src/auth.ts
|
|
244
251
|
```
|
|
245
252
|
|
|
246
253
|
### Using `--config` Option
|
|
247
254
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
255
|
+
Specify a custom path to your auth config file when it's in a non-standard location or auto-detection fails.
|
|
256
|
+
|
|
257
|
+
**Example:**
|
|
258
|
+
```bash
|
|
259
|
+
# With relative path
|
|
260
|
+
pnpm better-auth-studio start --config ./src/lib/auth.ts
|
|
261
|
+
|
|
262
|
+
# With absolute path
|
|
263
|
+
pnpm better-auth-studio start --config /path/to/project/auth.ts
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
**How it works:** Studio automatically searches for config files in common locations (`auth.ts`, `src/auth.ts`, `lib/auth.ts`, etc.). Use `--config` to specify a custom path when needed.
|
|
267
|
+
|
|
268
|
+
### Using `--watch` Option
|
|
269
|
+
|
|
270
|
+
Automatically reload the server when your `auth.ts` file changes. Perfect for development when iterating on your auth configuration.
|
|
271
|
+
|
|
272
|
+
**Example:**
|
|
273
|
+
```bash
|
|
274
|
+
# Start with watch mode enabled
|
|
275
|
+
pnpx better-auth-studio start --watch
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
**How it works:** Monitors your auth config file for changes, automatically restarts the server, and updates the browser UI via WebSocket - no manual refresh needed.
|
|
271
279
|
|
|
272
280
|
### Other Commands
|
|
273
281
|
```bash
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,35 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth-studio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"description": "Studio for Better Auth",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"better-auth-studio": "./dist/cli.js"
|
|
8
8
|
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsc && pnpm run frontend:build",
|
|
11
|
-
"dev": "tsx src/cli.ts",
|
|
12
|
-
"start": "node dist/cli.js",
|
|
13
|
-
"studio": "tsx src/cli.ts",
|
|
14
|
-
"clean": "rm -rf dist",
|
|
15
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
16
|
-
"frontend:dev": "cd frontend && pnpm run dev",
|
|
17
|
-
"frontend:build": "cd frontend && pnpm run build",
|
|
18
|
-
"frontend:preview": "cd frontend && pnpm run preview",
|
|
19
|
-
"lint": "biome check . --max-diagnostics=1000",
|
|
20
|
-
"lint:fix": "biome check --write .",
|
|
21
|
-
"format": "biome format --write .",
|
|
22
|
-
"type-check": "tsc --noEmit",
|
|
23
|
-
"test": "vitest",
|
|
24
|
-
"test:watch": "vitest --watch",
|
|
25
|
-
"test:coverage": "vitest --coverage",
|
|
26
|
-
"test:ci": "pnpm test --run",
|
|
27
|
-
"release": "pnpm build && bumpp && pnpm publish --access public --no-git-checks",
|
|
28
|
-
"release:beta": "pnpm build && bumpp --preid beta && pnpm publish --access public --tag beta --no-git-checks",
|
|
29
|
-
"release:no-build": "bumpp && pnpm publish --access public --no-git-checks --tag next",
|
|
30
|
-
"release:canary": "pnpm build && bumpp --preid canary --no-commit --no-tag --no-push && pnpm publish --access public --tag canary --no-git-checks",
|
|
31
|
-
"bump": "bumpp"
|
|
32
|
-
},
|
|
33
9
|
"keywords": [
|
|
34
10
|
"better-auth",
|
|
35
11
|
"studio",
|
|
@@ -87,5 +63,28 @@
|
|
|
87
63
|
"data/",
|
|
88
64
|
"README.md",
|
|
89
65
|
"package.json"
|
|
90
|
-
]
|
|
91
|
-
|
|
66
|
+
],
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "tsc && pnpm run frontend:build",
|
|
69
|
+
"dev": "tsx src/cli.ts",
|
|
70
|
+
"start": "node dist/cli.js",
|
|
71
|
+
"studio": "tsx src/cli.ts",
|
|
72
|
+
"clean": "rm -rf dist",
|
|
73
|
+
"frontend:dev": "cd frontend && pnpm run dev",
|
|
74
|
+
"frontend:build": "cd frontend && pnpm run build",
|
|
75
|
+
"frontend:preview": "cd frontend && pnpm run preview",
|
|
76
|
+
"lint": "biome check . --max-diagnostics=1000",
|
|
77
|
+
"lint:fix": "biome check --write .",
|
|
78
|
+
"format": "biome format --write .",
|
|
79
|
+
"type-check": "tsc --noEmit",
|
|
80
|
+
"test": "vitest",
|
|
81
|
+
"test:watch": "vitest --watch",
|
|
82
|
+
"test:coverage": "vitest --coverage",
|
|
83
|
+
"test:ci": "pnpm test --run",
|
|
84
|
+
"release": "pnpm build && bumpp && pnpm publish --access public --no-git-checks",
|
|
85
|
+
"release:beta": "pnpm build && bumpp --preid beta && pnpm publish --access public --tag beta --no-git-checks",
|
|
86
|
+
"release:no-build": "bumpp && pnpm publish --access public --no-git-checks --tag next",
|
|
87
|
+
"release:canary": "pnpm build && bumpp --preid canary --no-commit --no-tag --no-push && pnpm publish --access public --tag canary --no-git-checks",
|
|
88
|
+
"bump": "bumpp"
|
|
89
|
+
}
|
|
90
|
+
}
|