|
1 | 1 | { |
2 | 2 | "name": "better-auth-cloudflare", |
3 | 3 | "version": "0.2.5", |
| 4 | + "type": "module", |
4 | 5 | "description": "Seamlessly integrate better-auth with Cloudflare Workers, D1, Hyperdrive, KV, R2, and geolocation services.", |
5 | 6 | "author": "Zach Grimaldi", |
6 | 7 | "repository": { |
7 | 8 | "type": "git", |
8 | 9 | "url": "git+https://github.com/zpg6/better-auth-cloudflare.git" |
9 | 10 | }, |
10 | | - "main": "./dist/index.js", |
| 11 | + "main": "./dist/index.cjs", |
| 12 | + "module": "./dist/index.mjs", |
11 | 13 | "types": "./dist/index.d.ts", |
12 | 14 | "keywords": [ |
13 | 15 | "better-auth", |
|
27 | 29 | ], |
28 | 30 | "scripts": { |
29 | 31 | "clean": "rm -rf dist", |
30 | | - "build": "tsc", |
| 32 | + "build": "unbuild --clean", |
31 | 33 | "test": "jest", |
32 | 34 | "typecheck": "tsc --noEmit", |
33 | 35 | "format": "prettier --write ." |
|
45 | 47 | "jest": "^29.7.0", |
46 | 48 | "prettier": "^3.2.5", |
47 | 49 | "ts-jest": "^29.1.1", |
48 | | - "typescript": "^5.3.3" |
| 50 | + "typescript": "^5.3.3", |
| 51 | + "unbuild": "^3.0.0" |
49 | 52 | }, |
50 | 53 | "exports": { |
51 | 54 | ".": { |
52 | | - "types": "./dist/index.d.ts", |
53 | | - "default": "./dist/index.js" |
| 55 | + "import": { |
| 56 | + "types": "./dist/index.d.ts", |
| 57 | + "default": "./dist/index.mjs" |
| 58 | + }, |
| 59 | + "require": { |
| 60 | + "types": "./dist/index.d.cts", |
| 61 | + "default": "./dist/index.cjs" |
| 62 | + } |
54 | 63 | }, |
55 | 64 | "./client": { |
56 | | - "types": "./dist/client.d.ts", |
57 | | - "default": "./dist/client.js" |
| 65 | + "import": { |
| 66 | + "types": "./dist/client.d.ts", |
| 67 | + "default": "./dist/client.mjs" |
| 68 | + }, |
| 69 | + "require": { |
| 70 | + "types": "./dist/client.d.cts", |
| 71 | + "default": "./dist/client.cjs" |
| 72 | + } |
58 | 73 | } |
59 | 74 | }, |
60 | 75 | "publishConfig": { |
|
0 commit comments