You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default "exclude" property in tsconfig.json doesn't respect relative path of the "ourdir" #8998
It produces such gems as:
Build: Cannot write file '..../NodejsConsoleApp2/MyModule/lib/lib/lib/lib/lib/lib/lib/index.js' because it would overwrite input file.
(I'm using tsc 1.8.10 and Node.js Tools for Visual Studio 1.2 Alpha)
Jamie Cansdale (@jcansdale) this issue of not include "outdir" in "exclude" at all already fixed in the nightly built.
Though the nightly built will not include "outdir" into "exclude" correctly if "outdir" is in relative path format . However, with your format it should work correctly
Activity
jcansdale commentedon Jun 7, 2016
It doesn't seem to automatically exclude a simple outDir either. For example:
{
"compilerOptions": {
"outDir": "lib"
}
}
This is a problem if "allowJs" is true!
yuit commentedon Jun 8, 2016
Jamie Cansdale (@jcansdale) do you mean this won't work correctly:
{ "compilerOptions": { "outDir": "lib", "allowJs": true } } then default "exclude" won't exclude "outDir" valuejcansdale commentedon Jun 8, 2016
Yui (@yuit) Almost. The following isn't working correctly for me:
{
"compilerOptions": {
"outDir": "lib",
"allowJs": true
},
"exclude": [
"node_modules"
]
}
It produces such gems as:
Build: Cannot write file '..../NodejsConsoleApp2/MyModule/lib/lib/lib/lib/lib/lib/lib/index.js' because it would overwrite input file.
(I'm using tsc 1.8.10 and Node.js Tools for Visual Studio 1.2 Alpha)
yuit commentedon Jun 8, 2016
Jamie Cansdale (@jcansdale) this issue of not include "outdir" in "exclude" at all already fixed in the nightly built.
Though the nightly built will not include "outdir" into "exclude" correctly if "outdir" is in relative path format . However, with your format it should work correctly