dividab / tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API.
MIT License
1.8k stars 100 forks source link

Cannot resolve base config from other module #182

Open rethab opened 2 years ago

rethab commented 2 years ago

Hi, I reference my base config like so:

  "extends": "@myorg/typescript-config"

This works with tsc, but this library cannot resolve the config.

I looked at the code in https://github.com/dividab/tsconfig-paths/blob/master/src/tsconfig-loader.ts#L101 and tricked it by appending the filename like so:

  "extends": "@myorg/typescript-config/tsconfig.json"

Not sure if you want feature partity with tsc, but this would be one difference / missing feature :)