Skip to content

Commit 4c9edf8

Browse files
committed
🔧 Configure project for backend usage with express.js
1 parent 1d00cfa commit 4c9edf8

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

package.json

+17-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{
2-
"name": "pai-sho",
3-
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.js",
6-
"scripts": {},
7-
"keywords": [],
8-
"author": "",
9-
"license": "ISC",
10-
"dependencies": {}
2+
"name": "pai-sho",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "src/index.js",
6+
"type": "module",
7+
"scripts": {
8+
"start": "node ."
9+
},
10+
"keywords": [],
11+
"author": "",
12+
"license": "ISC",
13+
"dependencies": {
14+
"express": "^4.17.1"
15+
},
16+
"devDependencies": {
17+
"@types/express": "^4.17.11"
18+
}
1119
}

tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"module": "ES2020",
44
"target": "ES2020",
55
"lib": ["ES2020", "dom"],
6+
"moduleResolution": "Node",
67
"noImplicitAny": true,
78
"strictNullChecks": true,
89
"removeComments": true,
@@ -11,7 +12,8 @@
1112
"declaration": false,
1213
"listEmittedFiles": true,
1314
"incremental": true,
14-
"tsBuildInfoFile": "buildcache/tsbuildinfo.json"
15+
"tsBuildInfoFile": "buildcache/tsbuildinfo.json",
16+
"allowSyntheticDefaultImports": true
1517
},
1618
"include": ["src/**/*"]
1719
}

0 commit comments

Comments
 (0)