23 Commits

Author SHA1 Message Date
Anton Gilgur
197061bf92
refactor: prefer native methods to lodash where possible (#328)
- _.endsWith -> String.endsWith

- _.concat -> Array.concat
- _.each -> Array.forEach
- _.filter -> Array.filter
- _.map -> Array.map
- _.some -> Array.some

- _.has -> `key in Object`
- _.defaults -> Object.assign
- _.get -> `?.` and `??` (optional chaining and nullish coalescing)

- refactor: replace fairly complicated `expandIncludeWithDirs` func to
  just use a few simple `forEach`s
  - not as FP anymore, more imperative, but much simpler to read IMO
- refactor: add a `getDiagnostics` helper to DRY up some code
  - also aids readability IMO

- a few places are still using lodash, but this paves the way toward
  removing it or replacing it with much smaller individual deps
  - _.compact still used because Array.filter heavily complicates the
    type-checking currently
  - _.isFunction still used because while it's a one-liner natively,
    need to import a function in several places
    - also the package `lodash.isFunction` is lodash v3 and quite
      different from the v4 implementation, so couldn't replace with it
      unfortunately
  - _.merge is a deep merge, so there's no native version of this
    - but we may remove deep merges entirely in the future (as tsconfig
      doesn't quite perform a deep merge), or could replace this with a
      smaller `lodash.merge` package or similar

- see also https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore
2022-05-16 16:30:48 -06:00
Eugene Zolenko
2d33064031 - adding all imports to rollup watch #147, #7 2019-03-25 16:25:03 -06:00
Eugene Zolenko
6b0225a7de - redoing switch to generateBundle (#126 #127 #128)
- using rollup's own types
- min rollup bumped to 0.68
- updating dependencies
- package version 0.19
2019-01-04 15:52:31 -07:00
Eugene Zolenko
ad9d16cf1a - fixing lint errors 2018-08-24 12:16:50 -06:00
Eugene Zolenko
4e3a14f466 - saner cache cleaning, not hashing configs if cache is not used 2018-08-24 12:11:33 -06:00
Eugene Zolenko
3b46e8d599 - object-hash hack optional #105 2018-08-14 11:01:28 -06:00
Eugene Zolenko
4d7552206f - workaround for object hash not supporting async/await 2018-08-14 10:35:33 -06:00
Eugene Zolenko
707c6fc300 - fixes for tslint 2018-06-26 10:54:15 -06:00
Eugene Zolenko
84f27fcdb8 - fix for #93 2018-06-25 11:00:01 -06:00
Eugene Zolenko
f15cb84dcc - "clean: true" will not create cache in the first place #68 2018-03-29 18:24:49 -06:00
Eugene Zolenko
a0b835d51a - fix for sourcemaps taken from cache 2018-03-28 10:38:02 -06:00
Eugene Zolenko
4e824739eb - ignoring broken cache #13 2018-02-08 11:15:26 -07:00
ezolenko
f57f8e7fb9 - updating dependencies 2018-02-01 20:57:19 -07:00
Eugene Zolenko
e26cb55dd9 - error output follows tsconfig pretty option #47 2017-12-15 18:02:25 -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
wessberg
919f72ba51 Declarations will now be placed within the 'dest' folder and shadow the filename of the bundle 2017-07-27 02:23:48 +02:00
ezolenko
a102e115f1 - fix for #22 2017-06-28 19:02:26 -06:00
Bryan Ross
b948b49d75 write out DTS file structure 2017-05-29 11:50:31 -06:00
Eugene Zolenko
b471b987fa - using active rollup config as part of cache hash
Partial solution for #15 and a number of other potential conflicts.
2017-04-20 15:14:01 -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