2018-02-24 00:08:18 +01:00
|
|
|
// @module: commonjs
|
|
|
|
// @outdir: out/
|
|
|
|
// @allowJs: true
|
2018-02-24 19:15:32 +01:00
|
|
|
// @fullEmitPaths: true
|
2018-04-06 00:27:44 +02:00
|
|
|
// @resolveJsonModule: true
|
2018-02-24 00:08:18 +01:00
|
|
|
|
|
|
|
// @Filename: file1.ts
|
|
|
|
import c1 = require('./c'); // resolves to c.ts
|
|
|
|
let x2 = c1.a;
|
|
|
|
import c2 = require('./c.json'); // resolves to c.json
|
|
|
|
if (x2) {
|
|
|
|
let b = c2.b;
|
|
|
|
let x = (c1.b === b);
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: b.json
|
|
|
|
{
|
|
|
|
"a": true,
|
|
|
|
"b": "hello"
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: c.json
|
|
|
|
{
|
|
|
|
"a": true,
|
|
|
|
"b": "hello"
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: c.ts
|
|
|
|
export = { a: true, b: "hello" };
|