@bigio/better-auth-electron 1.0.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 ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@bigio/better-auth-electron",
3
+ "version": "1.0.0",
4
+ "author": "bigmusic",
5
+ "license": "MIT",
6
+ "private": false,
7
+ "description": "A type-safe, IPC-based Better Auth integration for Electron, featuring strict process isolation and secure authentication flows.",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/bigmusic/better-auth-electron.git"
11
+ },
12
+ "type": "module",
13
+ "files": [
14
+ "dist",
15
+ "README.md",
16
+ "LICENSE.md"
17
+ ],
18
+ "dependencies": {
19
+ "@nanostores/react": "^1.0.0",
20
+ "@oslojs/encoding": "^1.1.0",
21
+ "electron-log": "^5.4.3",
22
+ "jotai": "^2.17.1",
23
+ "nanostores": "^1.1.0",
24
+ "zod": "^4.3.6"
25
+ },
26
+ "devDependencies": {
27
+ "@biomejs/biome": "^2.3.14",
28
+ "@types/node": "^25.2.0",
29
+ "@types/react": "^19.2.11",
30
+ "@types/react-dom": "^19.2.3",
31
+ "better-auth": "^1.4.18",
32
+ "electron": "^39.5.1",
33
+ "esbuild": "^0.27.2",
34
+ "preact": "^10.28.3",
35
+ "preact-render-to-string": "^6.6.5",
36
+ "tsup": "^8.5.1",
37
+ "tsx": "^4.21.0",
38
+ "typescript": "^5.9.3"
39
+ },
40
+ "peerDependenciesMeta": {
41
+ "preact": {
42
+ "optional": true
43
+ },
44
+ "electron": {
45
+ "optional": false
46
+ },
47
+ "better-auth": {
48
+ "optional": false
49
+ }
50
+ },
51
+ "peerDependencies": {
52
+ "better-auth": ">1",
53
+ "electron": "^39",
54
+ "preact": ">10",
55
+ "react": "^19",
56
+ "react-dom": "^19"
57
+ },
58
+ "exports": {
59
+ "./web": {
60
+ "types": "./dist/web.d.ts",
61
+ "import": "./dist/web.js"
62
+ },
63
+ "./renderer": {
64
+ "types": "./dist/renderer.d.ts",
65
+ "import": "./dist/renderer.js"
66
+ },
67
+ "./server": {
68
+ "types": "./dist/server.d.ts",
69
+ "import": "./dist/server.js"
70
+ },
71
+ "./main": {
72
+ "types": "./dist/main.d.ts",
73
+ "import": "./dist/main.js"
74
+ },
75
+ "./options": {
76
+ "types": "./dist/options.d.ts",
77
+ "import": "./dist/options.js"
78
+ },
79
+ "./package.json": "./package.json"
80
+ },
81
+ "scripts": {
82
+ "push": "pnpm build && yalc publish --push",
83
+ "build": "tsup",
84
+ "_dev": "tsup --watch",
85
+ "typecheck": "tsc --noEmit",
86
+ "clean": "rm -rf node_modules",
87
+ "lint": "biome check .",
88
+ "format": "biome check --write .",
89
+ "build:login": "esbuild src/preact/better-auth/electron-preact-oauth.tsx --bundle --minify --sourcemap --format=esm --outfile=dist/preact-electron-login.js --jsx-import-source=preact",
90
+ "dev:login": "esbuild src/preact/better-auth/electron-preact-oauth.tsx --bundle --sourcemap=inline --format=esm --outfile=dist/preact-electron-login.js --jsx-import-source=preact --watch"
91
+ }
92
+ }