【发布时间】:2015-07-30 14:00:13
【问题描述】:
我正在使用 Visual Studio Code IDE 和 typescript,如何让它在构建过程中忽略 node_modules 文件夹?还是让它在保存时构建.ts 文件?它显示了很多错误,因为它正在尝试编译 node_modules tsd。
目前我的 tasks.json 是
{
"version": "0.1.0",
// The command is tsc.
"command": "tsc",
// Show the output window only if unrecognized errors occur.
"showOutput": "silent",
// Under windows use tsc.exe. This ensures we don't need a shell.
"windows": {
"command": "tsc.exe"
},
"isShellCommand": true,
// args is the HelloWorld program to compile.
"args": [],
// use the standard tsc problem matcher to find compile problems
// in the output.
"problemMatcher": "$tsc"
}
【问题讨论】:
标签: typescript visual-studio-code