Skip to content

Commit 7115dbe

Browse files
committed
fix: move TypeScript types to dependencies and improve Vercel deployment
- Move @types/jest and @types/node to dependencies for Vercel builds - Add explicit project-id to Vercel CLI commands - Ensure all TypeScript types are available during production builds
1 parent 3b6056b commit 7115dbe

3 files changed

Lines changed: 7 additions & 51 deletions

File tree

.github/workflows/test-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ jobs:
146146
- uses: actions/setup-node@v4
147147
with:
148148
node-version: 20
149-
# Deploy from repo root with correct path
149+
# Deploy using explicit project ID
150150
- name: Vercel pull (production)
151-
run: npx vercel pull --yes --environment=production --token="$VERCEL_TOKEN"
151+
run: npx vercel pull --yes --environment=production --token="$VERCEL_TOKEN" --project-id="$VERCEL_PROJECT_ID"
152152
- name: Deploy built web to Vercel (prod)
153-
run: npx vercel deploy mobile/build/web --prod --yes --token="$VERCEL_TOKEN"
153+
run: npx vercel deploy mobile/build/web --prod --yes --token="$VERCEL_TOKEN" --project-id="$VERCEL_PROJECT_ID"

package-lock.json

Lines changed: 2 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
"@fastify/jwt": "^10.0.0",
3636
"@fastify/rate-limit": "^7.6.0",
3737
"@fastify/static": "^6.12.0",
38+
"@types/jest": "^29.5.12",
39+
"@types/node": "^20.14.10",
3840
"axios": "^1.6.2",
3941
"cheerio": "^1.0.0-rc.12",
4042
"dotenv": "^16.3.1",
@@ -48,8 +50,6 @@
4850
"url-parse": "^1.5.10"
4951
},
5052
"devDependencies": {
51-
"@types/jest": "^29.5.12",
52-
"@types/node": "^20.14.10",
5353
"@types/qs": "^6.9.9",
5454
"@typescript-eslint/eslint-plugin": "^6.13.1",
5555
"@typescript-eslint/parser": "^6.13.1",

0 commit comments

Comments
 (0)