-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
61 lines (61 loc) · 2.79 KB
/
Copy pathpackage.json
File metadata and controls
61 lines (61 loc) · 2.79 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
{
"name": "3dtracker0.3",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "wrangler pages dev .svelte-kit/cloudflare --port 4173",
"prepare": "npm run types && svelte-kit sync || echo ''",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"types": "wrangler types",
"lint": "eslint .",
"desktop:dev": "cd desktop/src-tauri && cargo tauri dev",
"desktop:build": "cd desktop/src-tauri && cargo tauri build",
"build:sidecar": "mkdir -p desktop/src-tauri/binaries && TARGET=$(rustc -vV | sed -n 's/host: //p') && (cd local-file-handler && bun install) && bun build --compile local-file-handler/server.js --outfile=desktop/src-tauri/binaries/pfc-file-handler-$TARGET && echo \"✅ Sidecar built for $TARGET\"",
"db:generate": "drizzle-kit generate",
"db:migrate:local": "wrangler d1 migrations apply DB --local",
"db:migrate:remote": "wrangler d1 migrations apply DB --remote",
"db:reset": "rm -rf .wrangler/state/v3/d1 && npm run db:migrate:local && npx wrangler d1 execute DB --local --file=seed.sql && echo '✅ Database reset complete!'",
"db:delete": "rm -rf .wrangler/state/v3/d1",
"db:seed": "npx wrangler d1 execute DB --local --file=seed.sql",
"db:pull": "npx wrangler d1 export DB --remote --output=./remote-backup.sql && rm -rf .wrangler/state/v3/d1 && npx wrangler d1 execute DB --local --command \"SELECT 1;\" > /dev/null && DB_FILE=$(ls .wrangler/state/v3/d1/miniflare-D1DatabaseObject/*.sqlite | head -1) && { echo 'PRAGMA foreign_keys=OFF;'; cat remote-backup.sql; } | sqlite3 \"$DB_FILE\" && echo ' Local DB synced from remote!'"
},
"devDependencies": {
"@eslint/compat": "^1.4.0",
"@eslint/js": "^9.39.1",
"@sveltejs/adapter-cloudflare": "^7.2.4",
"@sveltejs/kit": "^2.50.1",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.17",
"@tsconfig/svelte": "^5.0.6",
"@types/jszip": "^3.4.1",
"@types/node": "^22",
"drizzle-kit": "^0.31.10",
"eslint": "^9.39.1",
"eslint-plugin-svelte": "^3.13.1",
"globals": "^16.5.0",
"svelte": "^5.49.1",
"svelte-check": "^4.3.4",
"tailwindcss": "^4.1.17",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.1",
"vite": "^7.2.6",
"wrangler": "^4.56.0"
},
"dependencies": {
"@tauri-apps/api": "^2.10.1",
"drizzle-orm": "^0.45.2",
"echarts": "^6.0.0",
"jszip": "^3.10.1"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.56.0",
"@tailwindcss/oxide-linux-x64-gnu": "^4.1.18",
"lightningcss-linux-x64-gnu": "^1.31.1"
}
}