Skip to content

Instantly share code, notes, and snippets.

@alexeagle
Created May 1, 2017 17:39
Show Gist options
  • Save alexeagle/d56ca2e0b22a7973f93aef5173467fcb to your computer and use it in GitHub Desktop.
Save alexeagle/d56ca2e0b22a7973f93aef5173467fcb to your computer and use it in GitHub Desktop.
TypeScript path mapping in google3
export let c = 1;
{
"compilerOptions": {
"outDir": "../out",
// rootDir?
// rootDirs??
},
"files": [
"b/c.ts",
"../genfiles/a/b/d.ts"
]
}
import {c} from './c';
export let d = c + 1;
"use strict";
exports.__esModule = true;
exports.c = 1;
"use strict";
exports.__esModule = true;
exports.d = 1;
@alexeagle
Copy link
Author

given a/b/c.ts and genfiles/a/b/t.ts as inputs on the disk and
some 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment