typescript
typescript copied to clipboard
fix: TS program doesn't emit declaration files
This PR addresses 2 main issues:
- TS doesn't emit declaration files. TS isn't able to resolve the Source files passed to
ts.createProgram
, fromfederationOptions#exposes
. The file paths mentioned inexposes
may not always be relative to thecwd()
. -
__types_index.json
has wrong file paths that aren't in sync with the emitted.d.ts
files.
Creating a Draft PR fixing #1
. Will update the PR with #2
later today.