TypeScript/tests/cases/compiler/pathMappingWithoutBaseUrl1.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

18 lines
288 B
TypeScript

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