我正在使用TypeScript为Express应用程序供电。
我有nodemon实例化具有--inspect
选项的节点。
这是我的 tsconfig.json
{
"compilerOptions": {
"target": "es6",
"lib": ["es2017"],
"module": "commonjs",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noResolve": false,
"noEmitOnError": false,
"noImplicitAny": true,
"declaration": true,
"sourceMap": true,
"outDir": "dist/",
"moduleResolution": "node",
"skipLibCheck": true
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
],
"exclude": [
"node_modules"
]
}
的package.json
"ts-node": "^5.0.1",
"typescript": "^2.7.2"
为什么WebStorm不会遇到正确的断点并检查req / res?