'Resolve missing tsconfig

I am trying to import a TS package that has been published from a monorepo but has not been compiled to JS. The build fails since the extending tsconfig cannot be found.

"extends": "../../tsconfig.json"

The package is in node_modules, which means that tsconfig is in one directory up. The best way to solve this would be to build the package first. I am just wondering if there is a way to use the app's tsconfig for this package that is inside node_modules. I know you can map paths but is there something similar you can do for files?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source