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: /src/projects/file1.ts
|
|
|
|
import b1 = require('b.json');
|
|
|
|
let x = b1.a;
|
|
|
|
import b2 = require('c.json');
|
|
|
|
if (x) {
|
|
|
|
let b = b2.b;
|
|
|
|
x = (b1.b === b);
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: /src/projects/node_modules/b.json
|
|
|
|
{
|
|
|
|
"a": true,
|
|
|
|
"b": "hello"
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: /src/node_modules/c.json
|
|
|
|
{
|
|
|
|
"a": true,
|
|
|
|
"b": "hello"
|
|
|
|
}
|