TypeScript/tests/cases/compiler/commonSourceDirectory_dts.ts
2016-11-10 10:25:33 -08:00

23 lines
585 B
TypeScript

// Test that importing a file from `node_modules` does not affect calculation of the common source directory.
// @noImplicitReferences: true
// @moduleResolution: node
// @fullEmitPaths: true
// @filename: /app/lib/bar.d.ts
declare const y: number;
// @filename: /app/src/index.ts
/// <reference path="../lib/bar.d.ts" />
export const x = y;
// @filename: /app/tsconfig.json
{
"compilerOptions": {
"outDir": "bin",
"sourceMap": true,
"mapRoot": "myMapRoot",
"sourceRoot": "mySourceRoot",
"declaration": true
}
}