Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
55 lines (55 loc) · 2.53 KB
/
Copy pathpackage.json
File metadata and controls
55 lines (55 loc) · 2.53 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
{
"name": "flowfi",
"version": "1.0.0",
"description": "DeFi Payment Streaming on Stellar",
"type": "module",
"private": true,
"workspaces": [
"frontend",
"backend"
],
"scripts": {
"prepare": "husky || true",
"verify-security": "node scripts/verify-security-setup.js",
"dev:mock": "npm run dev:mock:infra && npm run dev:mock:seed && npm run dev:mock:start",
"dev:mock:infra": "docker compose up -d postgres redis mock-soroban-rpc && node -e \"const {execSync}=require('child_process');let ok=false;for(let i=0;i<30;i++){try{execSync('docker compose exec -T postgres pg_isready -U flowfi -d flowfi',{stdio:'ignore'});ok=true;break;}catch(_){}}if(!ok)throw new Error('Postgres did not become healthy in time')\"",
"dev:mock:seed": "cd backend && npm run prisma:generate && DATABASE_URL=postgresql://flowfi:flowfi_dev_password@localhost:5433/flowfi npx prisma db push --accept-data-loss && cd .. && DATABASE_URL=postgresql://flowfi:flowfi_dev_password@localhost:5433/flowfi npx tsx scripts/seed-mock-data.ts",
"dev:mock:start": "echo \"\\n✅ Mock sandbox ready — starting services...\\n Backend: http://localhost:3001\\n Frontend: http://localhost:3000\\n API docs: http://localhost:3001/api-docs\\n\" && concurrently --kill-others --names backend,frontend --prefix-colors cyan,magenta \"cd backend && SANDBOX_MODE_ENABLED=true SOROBAN_RPC_URL=http://localhost:8000 DATABASE_URL=postgresql://flowfi:flowfi_dev_password@localhost:5433/flowfi REDIS_URL=redis://localhost:6379 npm run dev\" \"cd frontend && NEXT_PUBLIC_API_URL=http://localhost:3001 npm run dev\""
},
"devDependencies": {
"@vitest/coverage-v8": "^3.2.7",
"concurrently": "^9.1.2",
"husky": "^9.1.7",
"lint-staged": "^17.0.7",
"next": "16.3.8",
"vitest": "^3.2.7"
},
"lint-staged": {
"frontend/**/*.{ts,tsx,js,jsx}": [
"npm run lint --workspace=frontend --"
],
"contracts/**/*.rs": [
"bash scripts/lint-rust.sh"
]
},
"dependencies": {
"react-hot-toast": "^2.6.0"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.63.1",
"@tailwindcss/oxide-darwin-arm64": "^4.3.1",
"@tailwindcss/oxide-darwin-x64": "^4.3.1",
"@tailwindcss/oxide-linux-x64-gnu": "^4.3.1",
"lightningcss-darwin-arm64": "^1.31.1",
"lightningcss-darwin-x64": "^1.32.0",
"lightningcss-linux-x64-gnu": "^1.31.1"
},
"overrides": {
"postcss": "^8.5.23",
"sharp": "^0.35.0",
"deepmerge-ts": "^8.0.0",
"react": "19.2.7",
"react-dom": "19.2.7",
"mysql2": ">=3.22.0"
}
}