Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
60 lines (60 loc) · 3 KB
/
Copy pathpackage.json
File metadata and controls
60 lines (60 loc) · 3 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
{
"name": "openchat",
"version": "0.3.0",
"private": true,
"license": "AGPL-3.0-or-later",
"packageManager": "pnpm@12.8.1",
"engines": {
"node": ">=24"
},
"scripts": {
"build": "turbo run build",
"typecheck": "turbo run typecheck",
"test": "turbo run test",
"test:upgrade": "pnpm --filter @openchat/e2e exec tsx upgrade-test.ts",
"test:e2e": "pnpm --filter @openchat/dashboard --filter @openchat/widget build && pnpm --filter @openchat/e2e test:e2e",
"test:isolation": "pnpm --filter @openchat/api exec vitest run test/isolation.test.ts",
"lint": "eslint .",
"format": "prettier --write .",
"dev": "turbo run dev --filter=@openchat/api --filter=@openchat/dashboard --filter=@openchat/widget",
"dev:setup": "pnpm --filter @openchat/cli exec tsx src/dev-setup.ts",
"dev:reset": "pnpm --filter @openchat/cli exec tsx src/dev-setup.ts --reset",
"oc": "pnpm --filter @openchat/cli exec tsx src/index.ts",
"deploy": "pnpm --filter @openchat/cli exec tsx src/index.ts button-deploy",
"db:generate": "pnpm --filter @openchat/database generate",
"db:migrate:local": "pnpm --filter @openchat/api migrate:local",
"contracts:generate": "pnpm --filter @openchat/api-contracts generate",
"check:contracts": "pnpm --filter @openchat/api-contracts check",
"check:migrations": "pnpm --filter @openchat/database check:migrations",
"check:licenses": "node --test tooling/scripts/licenses.test.mjs && node tooling/scripts/check-licenses.mjs",
"check:budget": "node tooling/scripts/check-budget.mjs",
"check:secrets": "node tooling/scripts/check-secrets.mjs",
"check:channel": "node tooling/scripts/check-channel.mjs",
"verify": "pnpm lint && pnpm typecheck && pnpm test && pnpm build && pnpm check:contracts && pnpm check:migrations && pnpm check:licenses && pnpm check:budget && pnpm check:secrets && pnpm check:channel"
},
"cloudflare": {
"label": "OpenChat",
"products": ["Workers", "D1", "R2", "Queues", "Durable Objects"],
"bindings": {
"SETUP_CODE": {
"description": "Choose a code of your own, such as three random words. After the deploy, the first page asks for it **once**, to prove the installation is yours before it creates your admin account."
},
"DB": { "description": "Conversations, contacts and accounts." },
"ATTACHMENTS": { "description": "Files sent in conversations." },
"RELAY_URL": { "description": "The OpenChat project's notification relay, for push to the iPhone app. It carries only encrypted notifications. Leave as it is." },
"RELAY_ID": { "description": "Leave as it is." },
"RELAY_BUNDLE_IDS": { "description": "Leave as it is." },
"OPENCHAT_VERSION": { "description": "Leave as it is." }
}
},
"devDependencies": {
"@eslint/js": "^10.0.0",
"@openchat/eslint-config": "workspace:*",
"eslint": "^10.15.0",
"prettier": "^3.10.1",
"turbo": "^2.11.11",
"typescript": "~6.0.3",
"typescript-eslint": "^8.72.2",
"wrangler": "^4.162.0"
}
}