-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
158 lines (158 loc) · 5.38 KB
/
package.json
File metadata and controls
158 lines (158 loc) · 5.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "@access-dlsu/leapify",
"version": "0.260604.1",
"description": "DLSU CSO LEAP backend (run as a standalone Cloudflare Worker or install as an npm module)",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./worker": {
"import": "./dist/worker.js"
},
"./client": {
"types": "./dist/client/index.d.ts",
"import": "./dist/client/index.js",
"require": "./dist/client/index.cjs"
},
"./types": {
"types": "./dist/client/types.d.ts",
"import": "./dist/client/types.js",
"require": "./dist/client/types.cjs"
},
"./middleware/turnstile-challenge": {
"types": "./dist/lib/middleware/turnstile-challenge.d.ts",
"import": "./dist/lib/middleware/turnstile-challenge.js",
"require": "./dist/lib/middleware/turnstile-challenge.cjs"
}
},
"files": [
"dist"
],
"sideEffects": false,
"scripts": {
"build": "npx tsup src/index.ts src/client/index.ts src/client/types.ts src/lib/middleware/turnstile-challenge.ts --format esm,cjs --outDir dist --target es2022 --splitting --sourcemap false --no-dts --no-clean --external @opentelemetry/api && npx tsup src/worker.ts --format esm --outDir dist --target es2022 --no-splitting --sourcemap false --no-dts --no-clean --external @opentelemetry/api && tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
"dev": "tsup --watch",
"start": "npm run build && wrangler dev",
"deploy": "npm run build && wrangler deploy",
"test": "vitest",
"test:run": "vitest run",
"cf-typegen": "wrangler types",
"typecheck": "tsc --noEmit",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"clean": "node scripts/clean.mjs",
"version:auto": "node scripts/auto-version.mjs",
"pack": "npm run clean && npm run version:auto && npm run build && npm pack",
"pub": "npm whoami && npm run clean && npm run build && npm publish --access public"
},
"cloudflare": {
"bindings": {
"ALLOWED_ORIGINS": {
"description": "Comma-separated allowed origins (e.g., https://yoursite.com). Leave empty to block all cross-origin requests."
},
"BETTER_AUTH_SECRET": {
"description": "Better Auth signing secret. Generate with: openssl rand -base64 32"
},
"BETTER_AUTH_URL": {
"description": "Public HTTPS base URL of this Worker (e.g. https://leap.yourdomain.com). Used for OAuth redirects."
},
"GOOGLE_CLIENT_ID": {
"description": "Google OAuth 2.0 Client ID from Google Cloud Console."
},
"GOOGLE_CLIENT_SECRET": {
"description": "Google OAuth 2.0 Client Secret from Google Cloud Console."
},
"GFORMS_SERVICE_ACCOUNT_JSON": {
"description": "Google Forms Service Account JSON."
},
"GFORMS_WEBHOOK_SECRET": {
"description": "Secret for Google Forms Webhook."
},
"CONTENTFUL_SPACE_ID": {
"description": "Contentful Space ID."
},
"CONTENTFUL_ACCESS_TOKEN": {
"description": "Contentful Access Token."
},
"CONTENTFUL_ENVIRONMENT": {
"description": "Contentful Environment (usually `master`)."
},
"SES_REGION": {
"description": "Amazon SES Region (e.g., `us-east-1`)."
},
"SES_ACCESS_KEY_ID": {
"description": "Amazon SES Access Key ID."
},
"SES_SECRET_ACCESS_KEY": {
"description": "Amazon SES Secret Access Key."
},
"SES_FROM_ADDRESS": {
"description": "Verified from address for Amazon SES."
},
"RESEND_API_KEY": {
"description": "Resend API Key for fallback email (Optional)."
},
"RESEND_FROM_ADDRESS": {
"description": "Resend From Address (Optional)."
},
"INTERNAL_API_SECRET": {
"description": "Secret key for internal API routes. Also used as HMAC signing key for PoW challenge cookies."
},
"TURNSTILE_SITE_KEY": {
"description": "Cloudflare Turnstile site key (public)."
},
"TURNSTILE_SECRET_KEY": {
"description": "Cloudflare Turnstile secret key (sensitive)."
}
}
},
"peerDependencies": {
"@cloudflare/workers-types": "^4.0.0",
"drizzle-orm": "^0.45.2",
"hono": "^4.0.0"
},
"peerDependenciesMeta": {
"@cloudflare/workers-types": {
"optional": true
}
},
"dependencies": {
"@hono/standard-validator": "^0.2.2",
"@hono/swagger-ui": "^0.6.1",
"@hono/zod-validator": "^0.7.6",
"better-auth": "^1.6.9 <1.6.12 || ^1.7",
"hono-openapi": "^1.3.0",
"wrangler": "^4.80.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20260402.1",
"@types/better-sqlite3": "^7.6.13",
"better-sqlite3": "^12.8.0",
"drizzle-kit": "^0.31.10",
"hono": "^4.12.0",
"prettier": "3.8.3",
"tsup": "^8.4.0",
"typescript": "^6.0.3",
"vitest": "^4.1.2"
},
"overrides": {
"esbuild": "^0.25.0"
},
"homepage": "https://github.com/access-dlsu/leapify#readme",
"bugs": {
"url": "https://github.com/access-dlsu/leapify/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/access-dlsu/leapify.git"
},
"license": "MIT",
"author": "ACCESS DLSU"
}