Closed nampdn closed 5 years ago
Thanks :) Actually, we're currently working on that exact feature - environments that will use the root project's configuration.
@nampdn Thanks for this PR, but I don't think it will work with this change.
see here some references:
generate-definitions-d-ts-with-transpilemodule
Emit Declarations when using transpileModule()
According to this, you will have to use createProgram
as describe here - Using-the-Compiler-API#a-minimal-compiler
It's useless if we export a compiled typescript module without the .d.ts file. So I added the
declaration
property totrue
. This is very handy, it would be great if we could read thecompilerOptions
from root projecttsconfig.json
file.