I have a few typescript files for my app myapp in my Visual Studio 2017 ASP.NET project. I use a gulp task to generate the JS files, so I don't want the build or language service creating these JS and JS.MAP files.
This is how my TSCONFIG file look like:
{
"compileOnSave": false,
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"module": "system",
"types": [ "" ],
"lib": [
"es6",
"dom"
]
},
"include": [
"./myapp/**/*"
]
}
I tried the following:
I added the
myappto theexcludesection of the tsconfig.js. Both the js and js.map are not generated at that time if I close Visual Studio and open again. But I see a lot of compilation errors.I added
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>to the.csprojfile. I closed VS 2017, opened again and did a build. I see the JS and JS.MAP files.I changed the
BuildActionproperty to none, but still see the JS and JS.MAP files
What should I do so the syntax check of the TS file will work but does not generate any JS and JS.MAP files?
