Skip to content

Commit

Permalink
Merge pull request #13 from All-Hands-AI/fix-vercel-build
Browse files Browse the repository at this point in the history
Fix cache generation in Vercel build process
  • Loading branch information
neubig authored Dec 2, 2024
2 parents 07586c1 + ad40808 commit 3b61113
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build:cache": "cd scripts && tsc && cd .. && npm run cache-data",
"build": "tsc -b && vite build --mode production",
"build:cache": "cd scripts && npx tsc && node dist/scripts/github-api.js",
"build:all": "npm run build:cache && npm run build",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
Expand Down
2 changes: 1 addition & 1 deletion scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"outDir": ".",
"outDir": "./dist",
"rootDir": "..",
"skipLibCheck": true,
"noEmit": false
Expand Down
13 changes: 13 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": {
"buildCommand": "npm run build:all",
"outputDirectory": "dist"
}
}
]
}

0 comments on commit 3b61113

Please sign in to comment.