authhero 3.0.0 → 3.2.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/README.md +29 -0
- package/dist/authhero.cjs +155 -148
- package/dist/authhero.d.ts +348 -508
- package/dist/authhero.mjs +22021 -23164
- package/dist/client.js +1 -0
- package/dist/stats.html +1 -1
- package/dist/tailwind.css +3 -0
- package/package.json +9 -16
package/README.md
CHANGED
|
@@ -65,6 +65,35 @@ hooks: {
|
|
|
65
65
|
- `onExecutePostUserRegistration`
|
|
66
66
|
- `onExecutePostLogin`
|
|
67
67
|
|
|
68
|
+
## Development
|
|
69
|
+
|
|
70
|
+
### Building
|
|
71
|
+
|
|
72
|
+
The package uses a multi-step build process that must be run in sequence:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pnpm build
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
This runs the following steps in order:
|
|
79
|
+
|
|
80
|
+
1. Clean the `dist` directory
|
|
81
|
+
2. Build Tailwind CSS styles
|
|
82
|
+
3. Build ShadCN UI styles
|
|
83
|
+
4. Build client-side JavaScript
|
|
84
|
+
5. Compile TypeScript
|
|
85
|
+
6. Build server-side bundle with Vite
|
|
86
|
+
7. Generate TypeScript declaration files
|
|
87
|
+
8. Copy static assets
|
|
88
|
+
|
|
89
|
+
**Important:** Always use `pnpm build` rather than running individual build commands or `vite build` directly. The build steps are interdependent and use `emptyOutDir: false` to preserve files built in previous steps. Running commands individually or out of order may result in incomplete or stale artifacts.
|
|
90
|
+
|
|
91
|
+
To clean build artifacts manually:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
pnpm clean
|
|
95
|
+
```
|
|
96
|
+
|
|
68
97
|
## Email Providers
|
|
69
98
|
|
|
70
99
|
Authhero supports email providers for sending authentication-related emails. You can use pre-built email provider packages or configure a custom provider. Example:
|