Created
May 1, 2017 17:39
-
-
Save alexeagle/d56ca2e0b22a7973f93aef5173467fcb to your computer and use it in GitHub Desktop.
TypeScript path mapping in google3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export let c = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"outDir": "../out", | |
// rootDir? | |
// rootDirs?? | |
}, | |
"files": [ | |
"b/c.ts", | |
"../genfiles/a/b/d.ts" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {c} from './c'; | |
export let d = c + 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
exports.__esModule = true; | |
exports.c = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
exports.__esModule = true; | |
exports.d = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
given
a/b/c.ts
andgenfiles/a/b/t.ts
as inputs on the disk andsome content in
a/tsconfig.json
can we get typescript to lay out the outputs as
out/a/b/c.js
out/a/b/d.js