-
-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Description
Clear and concise description of the problem
Right now, if the plugin is running in a directory where Typescript is not installed, the types generation fails. This feature could allow to specify a cwd where the user knows Typescript is installed.
Suggested solution
- Add a new property inside
ModuleFederationPluginOptions.dtscalledcwd. - In the DTS plugin, inside the
compileTsfunction, use this new property in thecwdargument ofexecPromise. - Optionally, fallback to the dirname of
remoteOptions.tsConfigPath.
Alternative
Forcing the cwd to be the direname of remoteOptions.tsConfigPath.
Additional context
When I have this issue, running tsc manually throws this error.

Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels