Skip to content

Commit b0a2347

Browse files
committed
chore(init): add server generate command and update vercel.json
1 parent 721f453 commit b0a2347

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"check": "tsc -b && biome check",
3535
"dev": "concurrently 'bun run server' 'bun run tsoa:watch' 'bun run openapi:watch'",
3636
"format": "biome format",
37+
"generate": "bun run tsoa && bun run openapi",
3738
"lint": "biome lint",
3839
"openapi": "openapi-typescript ./build/swagger.yaml -o ./build/swagger.d.ts",
3940
"openapi:watch": "onchange './build/swagger.yaml' -- bun run openapi",

apps/web/vercel.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"$schema": "https://openapi.vercel.sh/vercel.json",
33
"framework": "vite",
44
"rewrites": [{ "source": "/(.*)", "destination": "/" }],
5-
"buildCommand": "cd ../server && bun run tsoa && bun run openapi && cd ../web && bun run build"
5+
"installCommand": "bun install && cd ../server && bun run generate",
6+
"buildCommand": "bun run build"
67
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"check": "turbo run check",
2828
"dev": "turbo run dev",
2929
"format": "turbo run format",
30+
"generate": "cd apps/server && bun run generate",
3031
"lint": "turbo run lint",
3132
"preinstall": "bunx only-allow bun",
3233
"prepare": "husky",
3334
"secrets:pull": "PROJECT=scottystack APPS='web server' ENVS='local dev staging prod' ./scripts/secrets/multi/pull.sh",
3435
"secrets:push": "PROJECT=scottystack APPS='web server' ENVS='local dev staging prod' ./scripts/secrets/multi/push.sh",
3536
"secrets:setup": "./scripts/secrets/setup.sh",
3637
"start": "turbo start",
37-
"sync": "cd apps/server && bun run tsoa && bun run openapi",
3838
"syncpack": "syncpack lint",
3939
"syncpack:fix": "syncpack format && syncpack fix-mismatches",
4040
"syncpack:update": "syncpack update",

0 commit comments

Comments
 (0)