mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
- Store raw JSONC content in database, parse on-the-fly for validation - Return rawContent field in API response for editing with comments preserved - Update frontend to use rawContent for config editing - Accept string or object content in create/update requests - Download configs as .jsonc when they contain comments - Add strip-json-comments dependency for JSONC parsing - Add .jsonc MIME type support in backend file service This preserves comments in opencode.jsonc files when editing through the UI
33 lines
787 B
JSON
33 lines
787 B
JSON
{
|
|
"name": "backend",
|
|
"module": "index.ts",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "bun --watch src/index.ts",
|
|
"start": "bun src/index.ts",
|
|
"build": "bun build src/index.ts --outdir=dist --target=bun",
|
|
"test": "vitest",
|
|
"test:ui": "vitest --ui",
|
|
"test:coverage": "vitest --coverage",
|
|
"test:watch": "vitest --watch"
|
|
},
|
|
"dependencies": {
|
|
"@hono/node-server": "^1.19.5",
|
|
"@opencode-manager/shared": "workspace:*",
|
|
"dotenv": "^17.2.3",
|
|
"hono": "^4.10.1",
|
|
"strip-json-comments": "^3.1.1",
|
|
"zod": "^4.1.12"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/bun": "latest",
|
|
"@vitest/ui": "^3.2.4",
|
|
"vitest": "^3.2.4"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5"
|
|
}
|
|
}
|