-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
88 lines (88 loc) · 5.35 KB
/
Copy pathpackage.json
File metadata and controls
88 lines (88 loc) · 5.35 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
{
"name": "openpcb",
"private": true,
"type": "module",
"license": "AGPL-3.0-or-later",
"workspaces": [
"src/core/backend",
"src/core/frontend",
"electron"
],
"scripts": {
"setup": "npm install",
"dev": "concurrently --kill-others-on-fail --names backend,frontend --prefix-colors blue,green \"npm run dev:backend\" \"npx wait-on tcp:127.0.0.1:3000 && npm run dev:frontend\"",
"dev:desktop": "npm run dev:electron",
"dev:electron": "node scripts/ensure-electron-native-deps.mjs && concurrently --kill-others-on-fail --names frontend,electron-build,electron --prefix-colors green,yellow,magenta \"npm run dev:frontend\" \"npm run build:watch --workspace electron\" \"npx wait-on http-get://127.0.0.1:1420 file:electron/dist/main/index.js file:electron/dist/preload/index.js && npm run start --workspace electron\"",
"dev:browser": "concurrently --kill-others-on-fail --names backend,frontend --prefix-colors blue,green \"npm run dev:backend\" \"npx wait-on tcp:127.0.0.1:3000 && npx playwright test --ui\"",
"dev:backend": "cd src/core/backend && PORT=3000 NODE_ENV=development bun --watch main.ts",
"dev:frontend": "npm run dev --workspace src/core/frontend",
"dev:corelib": "npm run corelib:pack:dev && concurrently --kill-others-on-fail --names corelib,app --prefix-colors cyan,green \"npm run corelib:watch:dev\" \"npm run dev\"",
"dev:backend:corelib": "npm run corelib:pack:dev && concurrently --kill-others-on-fail --names corelib,backend --prefix-colors cyan,blue \"npm run corelib:watch:dev\" \"npm run dev:backend\"",
"dev:electron:corelib": "npm run corelib:pack:dev && concurrently --kill-others-on-fail --names corelib,electron --prefix-colors cyan,magenta \"npm run corelib:watch:dev\" \"npm run dev:electron\"",
"build": "npm run corelib:fetch && node scripts/ensure-electron-native-deps.mjs && npm run build:frontend && npm run make --workspace electron",
"corelib:fetch": "bun scripts/fetch-core-library.ts",
"corelib:pack:dev": "bun scripts/pack-dev-core-library.ts",
"corelib:watch:dev": "bun scripts/pack-dev-core-library.ts --watch",
"build:frontend": "npm run build --workspace src/core/frontend",
"typecheck": "tsc -b",
"typecheck:frontend": "npm run lint --workspace src/core/frontend --if-present",
"module": "bun scripts/module-cli.ts",
"module:create": "bun scripts/module-cli.ts --create",
"module:validate": "bun scripts/module-cli.ts --validate",
"module:codegen": "bun scripts/module-cli.ts --codegen",
"modules:generate": "npm run scripts:build && bun scripts/module-cli.ts --codegen-registry",
"modules:validate": "npm run scripts:build && bun scripts/module-cli.ts --validate",
"scripts:build": "bun run --bun tsc -p tsconfig.scripts.json",
"sdk:generate": "npm run scripts:build && bun scripts/module-cli.ts --codegen-sdk",
"gen": "npm run module:codegen",
"gen:check": "npm run gen && git diff --quiet -- src/core/frontend/src/generated/modules.ts src/core/frontend/src/generated/sdk || (echo 'Codegen not committed. Run npm run gen and commit generated files.' && git --no-pager diff -- src/core/frontend/src/generated/modules.ts src/core/frontend/src/generated/sdk && exit 1)",
"gen:contracts": "bun scripts/gen-contract-types.ts",
"db:generate": "drizzle-kit generate",
"db:migrate": "node -e \"console.log('Module SQL migrations are applied automatically on backend startup. No standalone db:migrate script configured yet.')\"",
"db:push": "drizzle-kit push",
"db:studio": "drizzle-kit studio",
"db:check": "drizzle-kit check",
"test:backend": "npm run test --workspace src/core/backend",
"test:backend:watch": "npm run test:watch --workspace src/core/backend",
"test:react": "npm run test --workspace src/core/frontend",
"test:react:watch": "npm run test:watch --workspace src/core/frontend",
"test:e2e": "playwright test",
"test:e2e:electron": "playwright test --project=electron-desktop",
"release:sourcemaps": "node scripts/upload-sourcemaps.mjs",
"shared:link": "bash scripts/shared-link.sh",
"shared:unlink": "bash scripts/shared-unlink.sh",
"shared:status": "bash scripts/shared-status.sh"
},
"devDependencies": {
"@inquirer/prompts": "^8.0.2",
"@playwright/test": "^1.0.0",
"@types/bun": "^1.3.5",
"ajv": "^8.17.1",
"bun-types": "^1.3.5",
"concurrently": "^9.2.1",
"drizzle-kit": "^0.31.8",
"typescript": "~5.8.3",
"vite": "^7.0.4",
"wait-on": "^9.0.4"
},
"version": "0.1.0-beta.8",
"packageManager": "npm@10.9.2",
"dependencies": {
"@openpcb/ai-core": "github:OpenPCB-app/shared#ai-core-v0.3.0",
"@openpcb/command-pattern": "github:OpenPCB-app/shared#command-pattern-v0.1.0",
"@openpcb/contracts": "github:OpenPCB-app/shared#contracts-v0.2.6",
"@openpcb/kicad-import": "github:OpenPCB-app/shared#kicad-import-v0.1.2",
"@openpcb/kicad-parsers": "github:OpenPCB-app/shared#kicad-parsers-v0.1.3",
"@openpcb/opclib-pack": "github:OpenPCB-app/shared#opclib-pack-v0.3.0",
"@openpcb/r3f-eda-canvas": "github:OpenPCB-app/shared#r3f-eda-canvas-v0.1.4",
"@openpcb/rendering-core": "github:OpenPCB-app/shared#rendering-core-v0.1.3",
"@openpcb/step-to-glb": "github:OpenPCB-app/shared#step-to-glb-v0.1.3",
"drizzle-orm": "^0.45.1",
"dxf-parser": "^1.1.2",
"zod": "^4.1.13"
},
"overrides": {
"react": "19.2.0",
"react-dom": "19.2.0"
}
}