Skip to content

Commit c9f13fd

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

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
- name: Install dependencies
5858
run: bun install
5959

60-
- name: Sync dependencies
61-
run: bun run sync
60+
- name: Generate artifacts
61+
run: bun run generate
6262

6363
- name: Run checks
6464
run: bun run check

apps/server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ COPY . .
1212
# Install deps from bun.lock
1313
RUN bun install --frozen-lockfile
1414

15-
# Generate OpenAPI spec
16-
RUN bun run sync
15+
# Generate artifacts
16+
RUN bun run generate
1717

1818
# Build the project
1919
RUN bun run build --filter=@scottystack/server...

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)