Skip to content

Commit 9749b77

Browse files
jog1tNathanFlurry
authored andcommitted
fix vercel deploy
1 parent a13e0e3 commit 9749b77

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

examples/express/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vercel

examples/express/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7+
"build": "tsc",
78
"dev": "tsx --watch src/server.ts",
89
"check-types": "tsc --noEmit"
910
},

examples/express/src/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ app.post("/increment/:name", async (req, res) => {
2020
app.listen(8080, () => {
2121
console.log("Listening at http://localhost:8080");
2222
});
23+
24+
export default app;

examples/express/tsconfig.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
"allowJs": true,
2323
/* Enable error reporting in type-checked JavaScript files. */
2424
"checkJs": false,
25-
26-
/* Disable emitting files from a compilation. */
27-
"noEmit": true,
28-
2925
/* Ensure that each file can be safely transpiled without relying on other imports. */
3026
"isolatedModules": true,
3127
/* Allow 'import x from y' when a module doesn't have a default export. */
@@ -37,7 +33,8 @@
3733
"strict": true,
3834

3935
/* Skip type checking all .d.ts files. */
40-
"skipLibCheck": true
36+
"skipLibCheck": true,
37+
"outDir": "dist"
4138
},
42-
"include": ["src/**/*"]
39+
"include": ["./src"]
4340
}

examples/express/turbo.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
22
"$schema": "https://turbo.build/schema.json",
3-
"extends": ["//"]
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"outputs": ["dist/**"]
7+
}
8+
}
49
}

0 commit comments

Comments
 (0)