42 Commits

Author SHA1 Message Date
ezolenko
e9ede1d50b - build 2023-09-27 11:08:57 -06:00
ezolenko
fc853768ec - build version 2023-07-17 09:25:30 -06:00
ezolenko
31f61f7e24 - build for 0.35.0 2023-06-22 22:17:23 -06:00
Anton Gilgur
f6db59613a
fix: don't resolve filtered files (#428)
* fix: don't resolve `filter`ed files

- if they're `exclude`d / not `include`d, then we shouldn't be processing them
  - we're already not transforming them, so this just applies the same exclusion to resolving
  - this is _partly_ a regression from b0e39228b639229ce29d5d8d0b4bd236e4b20852, as that removed the `allImportedFiles` Set that previously filtered out files not in the `tsconfig` `include`
    - but that _itself_ was a regression that was removed -- files that didn't pass `filter` should have _never_ been resolved
      - basically, the `allImportedFiles` regression was covering up this long-standing bug

- also move `.d.ts` check to above the `filter` check
  - we shouldn't be adding declarations to the `cache`, in particular as we don't process declarations, so they'll never be marked as dirty
  - having this check above the `filter` should be slighltly more efficient as well (as would not having these files in the cache graph)

types: be more specific with `filter`'s type
- no need for this to be `any`

* build

- patch release has been waiting for a few weeks

* pub: release v0.34.1

- patch bump with the past few fixes

- bump internal rpt2 version to 0.34.0
2022-10-03 13:24:16 -06:00
Anton Gilgur
3ef3289fc1
fix: add compatibility checks w/ semver (#424)
* hotfix: `this.load` was added in Rollup `2.60.0`; don't run on older versions

- this is my bad, I didn't realize `this.load` came out _much_ later than `this.resolve`
  - c.f. https://github.com/rollup/rollup/blob/master/CHANGELOG.md#2600

- since we're backward-compatible w/ Rollup `1.26.3`, add in a version check for the type-only fix
  - the type-only fix will error out in Rollup versions less than `2.60.0`, so instead of erroring out, just skip this functionality

- TODO: should move back to using `semver` that was removed in 08d2f5bcad7cb9a9a0974f3707a27d29dd89da7c

* deps: add back `semver` and use for version checking

- reverts the `semver` removal in 08d2f5bcad7cb9a9a0974f3707a27d29dd89da7c
  - add back the TS version range check

- add a Rollup version range check, fixing an old issue
- check `this.load` Rollup version with `semver` instead of string comparison

- add `semver` to `external`s list
  - also remove `resolve` as it's no longer used as of 74f6761ff63863cdb3e92ca1f33640fe6f4fc7db
  - and re-organize the list so that Node built-ins are in one section while deps are in another
    - makes it clearer what we're marking as external

* dx: add a nice warning when `this.load` is not supported

- so it doesn't just silently skip the type-only fix on Rollup versions <2.60.0

* fix(test): add globals for strings that are replaced during build

- `TS_VERSION_RANGE`, `ROLLUP_VERSION_RANGE`, `RPT2_VERSION` were previously only defined during builds, so would cause tests to fail
  - add these vars as (namespaced) globals in the Jest config so that they can be used in tests too
  - if they don't exist on `global` (or if `global` doesn't exist), then use the built strings instead
  - see in-line comments for more details

- also reorder `re` placement to match the usage order in the code
- and fix lint issues (`no-string-literal`)

Co-authored-by: Eugene Zolenko <zolenkoe@gmail.com>
2022-09-20 13:15:10 -06:00
ezolenko
0b99f8ec62 - build for 34.0 2022-09-12 10:18:56 -06:00
ezolenko
bba2f19301 - build for 0.33.0 2022-08-19 15:29:07 -06:00
ezolenko
4d5debaa83 - build 2022-06-01 16:27:43 -06:00
ezolenko
08d2f5bcad - removing semver dependency (refuses to be rolled up for some reason)
- updating dependencies
2022-04-21 11:58:01 -06:00
ezolenko
5f02a91820 - fix for windows path and build 2020-10-02 09:26:52 -06:00
Alex Lende
c9161c3538 Build dist 2020-05-07 11:12:17 -05:00
ezolenko
034abe0a83 - updating dependencies 2020-03-26 23:45:45 -06:00
Eugene Zolenko
67748cc7cd - fix for plugin option type 2020-03-10 10:43:17 -06:00
Eugene Zolenko
b7c7389dcd - exporting IOptions type 2020-03-03 17:08:53 -07:00
Eugene Zolenko
cd76b42f55 - warning message for objectHashIgnoreUnknownHack option 2020-02-11 16:28:57 -07:00
Eugene Zolenko
23f63b4da2 - build 2019-12-03 10:24:39 -07:00
Marijn Haverbeke
e12631c160 Restore "Use PluginContext.emitFile to emit declarations (when possible) (#181)""
This reverts commit c35e35d627ec2b00739dede33ef1d6746ece7ad4.
2019-11-04 14:07:38 +01:00
Eugene Zolenko
c35e35d627 Revert "Use PluginContext.emitFile to emit declarations (when possible) (#181)"
This reverts commit 551a14e773141cd993bb9d1ffd349c92481edf11.
2019-10-15 11:15:21 -06:00
Marijn Haverbeke
551a14e773 Use PluginContext.emitFile to emit declarations (when possible) (#181)
Issue #180
2019-10-15 11:00:06 -06:00
Charles Simard-Lecours
f24359e668 fix(plugin) fix missing files 2019-09-26 14:52:56 -04:00
Eugene Zolenko
0420a5f06a - build with updated packages 2019-08-28 17:49:56 -06:00
Eugene Zolenko
24284605f3 - build and package version 2019-08-28 17:35:44 -06:00
Eugene Zolenko
b0a0ecb5ee - not trying to resolve imports unrelated to this plugin
- version
#162
2019-08-01 15:57:35 -06:00
Eugene Zolenko
23420c4b89 - not generating typings for files that are not actually imported
#162, #136
2019-08-01 15:45:37 -06:00
Eugene Zolenko
e60eb417d4 - fix for declarations for type only imports on watch
#163
2019-07-26 11:36:19 -06:00
Eugene Zolenko
9be93f36d0 - updating dependencies 2019-07-10 14:21:21 -06:00
Eugene Zolenko
2d33064031 - adding all imports to rollup watch #147, #7 2019-03-25 16:25:03 -06:00
Yu Chao Liang
b00ae06943
- if output.file not exist use output.dir 2019-03-09 02:18:35 +08:00
Eugene Zolenko
9188132749 - refactoring 2019-02-25 11:18:48 -07:00
Eugene Zolenko
36aabef5ca - printing rollup version 2019-02-25 10:56:01 -07:00
Eugene Zolenko
ac9b15defa - fix for #137 2019-02-19 12:25:57 -07: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
eef600da27
Revert "Do not use deprecated rollup options (#127)" (#128)
This reverts commit b1d5c07b5cc3c2249e2d2972920f6973f261650c.
2019-01-03 11:35:04 -07:00
Florent Cailhol
b1d5c07b5c Do not use deprecated rollup options (#127) 2019-01-03 11:20:33 -07:00
Eugene Zolenko
02ed7acf1d - buuild for #122 2018-12-11 10:46:49 -07:00
Eugene Zolenko
c400b95296 - fix for #32 2018-12-03 16:40:42 -07:00
Eugene Zolenko
4195cb85b0 - adapting #92, fix for #88
- updating dependencies
2018-09-25 16:06:27 -06:00
Eugene Zolenko
829bd0adb2 - updating dependencies 2018-08-24 10:56:46 -06:00
Eugene Zolenko
3b46e8d599 - object-hash hack optional #105 2018-08-14 11:01:28 -06:00
Eugene Zolenko
433c8fad6b - writing out types for vue virtual modules #97 2018-07-17 15:33:52 -06:00
Eugene Zolenko
f0e466c89f - fix for attempting to write declarations for virtual modules generated by rollup-plugin-vue #97 2018-07-09 10:22:54 -06:00
Eugene Zolenko
aaecd86fd1 - build 2018-06-25 11:00:27 -06:00