TypeScript/tests/cases/compiler/pathMappingWithoutBaseUrl2.ts
Andrew Branch 9c8d11b5ed
Allow 'paths' without 'baseUrl' (#40101)
* Allow paths without baseUrl

* Remove exception for leading * paths

* Add comment, remove commented code

* Update baselines

* Remove unnecessary default

* Fix test harness

* Fix baseline

* Resolve relative to host.getCurrentDirectory() with createProgram API
2020-09-11 12:58:40 -07:00

25 lines
401 B
TypeScript

// @noTypesAndSymbols: true
// @Filename: /other/tsconfig.base.json
{
"compilerOptions": {
"paths": {
"p1": ["./lib/p1"]
}
}
}
// @Filename: /project/tsconfig.json
{
"extends": "../other/tsconfig.base.json",
"compilerOptions": {
"module": "commonjs"
}
}
// @Filename: /other/lib/p1/index.ts
export const p1 = 0;
// @Filename: /project/index.ts
import { p1 } from "p1";