Skip to content

Commit

Permalink
build: change tsconfig outdir to dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayobami6 committed Oct 28, 2023
1 parent 86cb162 commit 5bdbb78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"lint": "eslint . --ext .ts",
"bundle": "tsc",
"build": "tsc",
"build": "tsc && node dist/index.js",
"watch": "tsc --w",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --detectOpenHandles --forceExit",
"dev": "nodemon --experimental-json-modules --exec babel-node dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"outDir": "./public",
"outDir": "./dist",
"moduleResolution": "node",
"allowJs": true,
"target": "ES6",
Expand Down
8 changes: 1 addition & 7 deletions server/vercel.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{
"version": 2,
"builds": [
{
"src": "tsconfig.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "./public/index.js"
"dest": "/"
}
]
}

0 comments on commit 5bdbb78

Please sign in to comment.