Non-relative paths such as lib/MyLib are resolved by attempting to transform each non-relative path into an absolute path in various ways. For instance, the TypeScript resolution algorithm might attempt to add a prefix such as c://projects/myProject/wwwroot, getting an absolute path of c://projects/myProject/wwwroot/lib/MyLib.
The TypeScript compiler performs several attempts to get an absolute path from each not-relative path, till an existing file is found, or no further attempt is possible. The way the various absolute paths are built, and the order in which they are tried, depends on various compiler options, which we will discuss in this subsection.
For each absolute path created during the search, ...