-
Notifications
You must be signed in to change notification settings - Fork 13.3k
TypeScript needs a baseDir option #287
Copy link
Copy link
Closed
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionOut of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScript
Metadata
Metadata
Assignees
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionOut of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScript
Say we have the File structure (
--outDir js):ts a.ts foo |> b.ts |> c.ts js a.js foo |> b.js |> c.jsIf we compile with all three files with
outDirits all okay. But if we only compileb.tsorc.tswithoutDir jsthen we would get a new folder insidets:js |> b.js |> c.jsCurrent workaround is to create a
.baseDir.tsfile under thetsfolder and always pass it to the compiler in addition to the individual files.Workaround from grunt-ts : TypeStrong/grunt-ts#77
Ported from Codeplex : https://typescript.codeplex.com/workitem/2297