{
"compilerOptions": {
"declaration": true,
"target": "es2017",
"module": "commonjs",
"esModuleInterop": true,
"outDir": "dist",
"sourceMap": true,
"skipLibCheck": true,
"typeRoots": ["node_modules/@types", "./typings", "node_modules/**/*.d.ts"],
"lib": ["esnext"]
},
"include": ["src/**/*.ts", "./typings/**/*.d.ts"],
"exclude": ["node_modules/**", "dist"]
}
当我进行任何更改时,我会得到一个小弹出窗口,但实际上并不重新启动服务器,不确定我在这里做错了什么。
注:我第一次在手动重新启动后进行更改后,它向我显示了一个弹出窗口,类似终端中的东西
[INFO] 22:07:09 Restarting: src/analytics-engine.ts has been modified
之后没有更改检测。
现在解决了问题。我发现了使用--debug
--exit-child
脚本中添加了一个标志。
npm start
也为我工作。
示例
--exit-child
package.json
flag似乎已解决了问题
您可以尝试将
-respawn
和--在您的软件包中flags。
示例:
其他人现在也有这个问题,添加
write: EPIPE
,为我工作
--exit-child
您可以在索引文件中对其进行处理:
{
"scripts": {
"start:dev": "tsnd --respawn --inspect --transpile-only --ignore-watch node_modules src/server"
}
}