12 Commits

Author SHA1 Message Date
Javier Gonzalez
c183d33023
stop roll() from failing if the new cache folder is not created (#243)
* stop roll() from failing if the new cache has no files

Today I stumbled upon an error where it would fail when the cache folder was not present
```(typescript) Error: ENOENT: no such file or directory, rename 'REDACTED\node_modules\.cache\rollup-plugin-typescript2/rpt2_759e2fd8d3f20c1a0805faf5404af6bea36632fd/code/cache_' -> 'REDACTED\node_modules\.cache\rollup-plugin-typescript2/rpt2_759e2fd8d3f20c1a0805faf5404af6bea36632fd/code/cache'```

This PR fixes it by checking its existence before trying to rename it

* use existsSync instead of fs.existsSync

* use renameSync instead of fs.renameSync
2020-09-25 13:00:03 -06:00
Eugene Zolenko
4e824739eb - ignoring broken cache #13 2018-02-08 11:15:26 -07:00
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
88c8ad05c0 - removing dead code 2017-04-20 13:37:09 -06:00
ezolenko
0af3de8df6 - removing "there were errors" in watch mode
- finalizing cache when aborting build on empty transpile
2017-03-25 00:02:05 -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
2d49f9e12e - improved debug output 2017-03-05 23:04:43 -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