forked from tscircuit/jlcsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
41 lines (41 loc) · 1.82 KB
/
package.json
File metadata and controls
41 lines (41 loc) · 1.82 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
{
"name": "jlcpcb-parts-engine",
"module": "index.ts",
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@flydotio/dockerfile": "^0.5.9",
"@types/bun": "^1.2.19",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"better-sqlite3": "^11.7.0",
"kysely": "^0.28.3",
"kysely-codegen": "^0.17.0",
"winterspec": "^0.0.96"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"scripts": {
"start": "bun run --hot scripts/start-server.ts",
"generate:db-types": "bunx kysely-codegen --out-file ./lib/db/generated/kysely.ts --singular --dialect bun-sqlite --url ./db.sqlite3",
"setup": "bun run setup:7z && bun run setup:download-cache-fragments && bun run setup:extract-db && bun run setup:replace-db-file && bun run setup:optimize-db && bun run setup:derived-tables",
"setup:7z": "bun run scripts/setup-7z.ts",
"setup:download-cache-fragments": "bun scripts/download-cache-fragments.ts",
"setup:extract-db": ".bin/7zz x .buildtmp/cache.zip",
"setup:replace-db-file": "rm -f ./db.sqlite3 && mv ./cache.sqlite3 ./db.sqlite3",
"setup:optimize-db": "bun run scripts/setup-db-optimizations.ts",
"setup:derived-tables": "bun run scripts/setup-derived-tables.ts",
"setup:download": "curl -o db.sqlite \"https://jlcsearch.fly.dev/database/$DATABASE_DOWNLOAD_TOKEN\"",
"generate:openapi": "mkdir -p .tmp && TMPDIR=$(pwd)/.tmp WINTERSPEC_CODEGEN=true bunx winterspec codegen openapi --root . --routes-directory ./routes --platform node --tsconfig tsconfig.json --output docs/openapi.json",
"format": "biome format --write .",
"format:check": "biome format ."
},
"type": "module",
"dependencies": {
"@tscircuit/footprinter": "^0.0.143",
"kysely-bun-sqlite": "^0.3.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"redaxios": "^0.5.1"
}
}