TypeStrong / fork-ts-checker-webpack-plugin

Webpack plugin that runs typescript type checker on a separate process.
MIT License
1.96k stars 243 forks source link

Add "typescript" option from v4 back in some form #474

Closed onigoetz closed 4 years ago

onigoetz commented 4 years ago

Feature motivation

Hi, In v4 there was a "typescript" option which did

typescript string: If supplied this is a custom path where typescript can be found. Defaults to require.resolve('typescript').

This option was especially useful in the case of multi-module projects or projects that bundle webpack and its configuration in a separate dependency for reusability (I'm the maintainer of https://github.com/swissquote/crafty, one of such tools).

Would you accept a Pull Request that adds this feature back ?

Feature description

Add an option typescriptPath ( I'm open to propositions for the name :) ) That defaults to require.resolve("typescript") and allows to be changed with the path to another TypeScript module if needed.

Feature implementation

johnnyreilly commented 4 years ago

Hey @onigoetz!

I suspect this would be good to add back - @piotr-oles what are your thoughts?

piotr-oles commented 4 years ago

:tada: This issue has been resolved in version 5.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: