Use resolution options of project reference if the file is from the project reference

This commit is contained in:
Sheetal Nandi
2018-10-01 15:30:06 -07:00
parent 0ac96580d5
commit 0e4b10d726
11 changed files with 97 additions and 57 deletions

View File

@@ -1,2 +1,2 @@
import {A} from './a';
import {A} from '@ref/a';
export const b = new A();

View File

@@ -1 +1,11 @@
{"compilerOptions": {"composite": true}, "files": ["b.ts"], "references": [{"path": "tsconfig.a.json"}]}
{
"compilerOptions": {
"composite": true,
"baseUrl": "./",
"paths": {
"@ref/*": [ "./*" ]
}
},
"files": [ "b.ts" ],
"references": [ { "path": "tsconfig.a.json" } ]
}