12 Commits

Author SHA1 Message Date
ezolenko
448913d411 - fix for #24. forcing declarations for project files even if they are ignored by rollup 2017-08-15 17:56:29 -06:00
ezolenko
81228203cf - option for overriding typescript version for #27 2017-08-11 00:33:36 -06:00
wessberg
29eae41e26 Refactoring. Declarations will now be local to the rollup destination directory 2017-07-27 04:22:49 +02:00
ezolenko
a102e115f1 - fix for #22 2017-06-28 19:02:26 -06:00
Eugene Zolenko
7a815cf685 - linting 2017-04-20 15:05:43 -06:00
ezolenko
068d839ffe - package version 2017-04-02 22:47:56 -06:00
ezolenko
65fb8834ed - normalizing paths used as snapshot cache keys (#6) 2017-04-02 22:40:09 -06:00
ezolenko
722cb2da00 - error codes and types 2017-03-24 23:08:10 -06:00
Eugene Zolenko
96b284635f Watch (#8)
* - partial fix for watch mode (#6)

* - trying to detect watch mode

* - support for watch mode
2017-03-14 19:04:59 -06:00
Ran Benita
01958a4fce - fix plugin chaining
If we have plugins that are ordered before typescript, e.g. `replace`,
the input to typescript should be the output of the previous plugin.
However, this doesn't happen, instead typescript transforms the original
file.

From my (possibly incorrect) analysis, this happens because of a cache
invalidation issue. If a module is processed by typescript before it is
transformed by the plugin, it seems the file is read directly from the
disk and inserted into the LanguageService `HostCache`. Later, when the
file is transformed by the plugin, there is a call to `setSnapshot` with
the "good" code (transformed by previous plugins), and then a call to
`getEmitOutput` which is expected to use the snapshot we had just set.
But this does *not* happen, instead we get the "bad" code from the
`HostCache`.

To fix this, make each call to `setSnapshot` increment the "script
version"; this tells typescript that it needs to reprocess the file.
2017-03-09 22:17:12 +02:00
ezolenko
6df208b9c4 - tracking global types 2017-02-09 23:09:43 -07:00
Eugene Zolenko
b9b2172f62 - cache 2017-02-08 18:30:44 -07:00