254 Commits

Author SHA1 Message Date
ezolenko
52297b9bd3 - trying not to fail too badly on old rollup 2017-03-24 23:21:16 -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
ezolenko
1dbe1cca94 - codeship status 0.3.0 2017-03-11 15:14:55 -07:00
ezolenko
e9415132d3 - not forcing source map option in tsconfig 2017-03-11 15:01:13 -07:00
ezolenko
93b5947270 - checking semantic diagnostics in transform()
(possible fix for #3)
- meaningful verbosity level 2
2017-03-11 14:56:54 -07:00
ezolenko
54942a6c0e - package version, tslint settings 2017-03-11 14:48:09 -07:00
ezolenko
664788a5ab - commonjs hack documentation and build 0.2.2 2017-03-09 20:57:35 -07:00
ezolenko
014431b1c8 - more verbose output 2017-03-09 20:34:34 -07:00
ezolenko
78edaf3648 - a splash of color 2017-03-09 20:27:26 -07:00
Eugene Zolenko
8ebfc89582 Merge pull request #5 from bluetech/fix-plugin-chaining
Fix plugin chaining
2017-03-09 20:25:13 -07: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
e06785ffdd - hack for issue #2
Passing resolved import through resolve to match key in rollup-plugin-commonjs namedExports map.
2017-03-06 21:45:46 -07:00
ezolenko
c59b8cece7 - tracking changes to automatic ambient types 2017-03-06 21:22:37 -07:00
ezolenko
bf90c3ad7e - debug/info messages in transform go to console 0.2.1 2017-03-05 23:10:52 -07:00
ezolenko
2d49f9e12e - improved debug output 2017-03-05 23:04:43 -07:00
ezolenko
f15f068eaa - removing debug output 2017-03-05 22:09:36 -07:00
ezolenko
5891f93427 - reporting tsconfig parsing errors 2017-03-05 15:14:51 -07:00
ezolenko
a99c6cd9c1 - bug reporting section in readme 2017-03-05 14:13:54 -07:00
ezolenko
cf591d572e - fix for typo 0.2.0 2017-03-04 23:44:07 -07:00
Eugene Zolenko
08c76cb75a Merge pull request #4 from ezolenko/error_categories
Error categories
2017-03-04 18:57:13 -07:00
ezolenko
883cee62bb - better diagnostics treatment 2017-03-04 18:50:39 -07:00
ezolenko
903bd3fbf9 - vscode settings 2017-03-04 16:59:55 -07:00
ezolenko
c97acf84df - update dependencies 2017-03-04 16:43:04 -07:00
ezolenko
5dacf10b27 - package version 0.1.2 2017-02-15 22:07:58 -07:00
ezolenko
045b172275 - better errors when noEmitOnError set to true 2017-02-15 22:07:26 -07:00
ezolenko
32287495d4 - package version 2017-02-10 23:05:53 -07:00
ezolenko
5ecfff64cd - readme 2017-02-10 23:05:01 -07:00
ezolenko
05b6637edb - badges 2017-02-10 23:03:10 -07:00
ezolenko
e54ae06aa4 - updating dependencies 2017-02-10 22:59:24 -07:00
ezolenko
7a70ba02ee - switching to selfrolling, fixing ts errors 2017-02-10 22:57:08 -07:00
Eugene Zolenko
0a13321fc6 Merge pull request #1 from ezolenko/cache
Cache
2017-02-10 22:35:51 -07:00
ezolenko
e039c74695 - readme, options 2017-02-10 22:35:00 -07:00
Eugene Zolenko
37fe6093b7 - options 2017-02-10 18:24:28 -07:00
Eugene Zolenko
c485cd3aa6 - comments, safe colors 2017-02-10 17:40:27 -07:00
ezolenko
6df208b9c4 - tracking global types 2017-02-09 23:09:43 -07:00
ezolenko
3cc2c6a8e2 - cache 2017-02-08 23:22:57 -07:00
Eugene Zolenko
b9b2172f62 - cache 2017-02-08 18:30:44 -07:00
Eugene Zolenko
6633ef1414 - merge 2017-02-08 17:43:49 -07:00
Eugene Zolenko
acad7e7eaf - cashe 2017-02-08 17:39:41 -07:00
Eugene Zolenko
93fa5680d2 - cache 2017-02-08 17:39:41 -07:00
Eugene Zolenko
3994d41607 - cache for transpiled code and diagnostics 2017-02-08 17:39:41 -07:00
Eugene Zolenko
3cac1aae62 - cache 2017-02-08 15:01:33 -07:00
Eugene Zolenko
93042e103e - cache for transpiled code and diagnostics 2017-02-07 18:46:44 -07:00
ezolenko
3cffdce9ab - npm badges 2017-02-05 20:31:11 -07:00
ezolenko
ed725e312a - readme 2017-02-05 20:22:20 -07:00
ezolenko
accfc9f4b7 - cleaning up dependencies 2017-02-05 20:05:58 -07:00
ezolenko
04d73daad0 - fix for compiler options 2017-02-05 19:44:09 -07:00
ezolenko
cb3a4df7c5 - tslib imports 2017-02-04 00:59:09 -07:00
ezolenko
3573518406 - works 2017-02-04 00:25:14 -07:00