jonkwheeler / tsconfig-replace-paths

Replace absolute paths to relative paths for package compilation
MIT License
72 stars 11 forks source link

Use Typescript default `rootDir` without flag nor `compilerOptions.rootDir` #11

Closed AgainPsychoX closed 3 years ago

AgainPsychoX commented 3 years ago

I get warning: Whoops! Please set compilerOptions.rootDir in your tsconfig or supply a flag and it's fine, but it would be nice if default value could be deduced just as Typescript docs suggest.

https://www.typescriptlang.org/tsconfig#rootDir

Default: The longest common path of all non-declaration input files. If composite is set, the default is instead the directory containing the tsconfig.json file.

AgainPsychoX commented 3 years ago

Any explanation why its closed?

jonkwheeler commented 3 years ago

Maybe I'm getting this confused with something else. You want rootDir to default to ./ if nothing is set in the tsconfigs?

jonkwheeler commented 3 years ago

I released 0.0.10. See if it works. https://github.com/jonkwheeler/tsconfig-replace-paths/pull/19