378 Commits

Author SHA1 Message Date
Anton Gilgur
4d2e7fd8d4
github: add spoiler tags to issue template (#244)
- long logs of output or long configs are hard on the eyes and make it
  difficult to read through issues as they just take up so much space
  - so it would be better, in my opinion, to hide them by default with
    spoiler tags, which can be opened up when further investigation is
    warranted

- some issue authors have already used this pattern, this just brings
  it to the template itself so everyone (hopefully) starts using it
0.28.0
2020-10-15 09:14:45 -06:00
Anton Gilgur
fadafeffb4
github: use envinfo for getting versions in issue reports (#245)
- replace the version list with a copy+paste this envinfo command,
  copy back the output
  - uses a modified, shortened variant of something being used
    successfully downstream in TSDX: 349f299976
- this should make reporting versions zero-effort and thereby
  significantly decrease non-reporting by making the hard thing easy
  - personally have experienced issues that didn't report but version
    was very relevant to the issue
  - also some folks report "latest" or used carets, which lack posterity
    or are confusing
2020-10-15 09:13:55 -06:00
ezolenko
fc2274d2ea - package version
- syntax
2020-10-02 10:49:00 -06:00
ezolenko
e2fdee4904 Merge branch 'agilgur5-fix-declaration-map-sources_2' 2020-10-02 09:27:10 -06:00
ezolenko
5f02a91820 - fix for windows path and build 2020-10-02 09:26:52 -06:00
ezolenko
ee33209beb Merge branch 'fix-declaration-map-sources' of https://github.com/agilgur5/rollup-plugin-typescript2 into agilgur5-fix-declaration-map-sources_2 2020-10-02 09:26:24 -06:00
Anton Gilgur
ec0568ba2c (fix): declaration maps should have correct sources
- previously, declarationDir was set to cwd if useTsconfigDeclarationDir
  wasn't true, however, declarations aren't output to cwd, but to
  Rollup's output destination, so this was incorrect
  - instead, don't set declarationDir, which defaults it to outDir,
    which is currently set to a placeholder
    - previously, it rewrote declarations to output to Rollup's dest
      from cwd, now rewrite from outDir placeholder instead
  - and add a rewrite of sources to match relative path from Rollup's
    output dest instead of outDir placeholder

- also change the one line in the docs that says it'll be
  `process.cwd()`; every other reference says it'll be the output dest
2020-09-30 19:46:37 -04:00
ezolenko
2f51110a8c - package version 2020-09-25 14:03:34 -06:00
ezolenko
2cace3fd80 - updating dependencies 0.27.3 2020-09-25 13:43:38 -06:00
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
ezolenko
dcf59ac488 - package version 2020-08-07 12:23:51 -06:00
ezolenko
76274d421b - updating dependencies 0.27.2 2020-08-07 12:04:35 -06:00
dependabot[bot]
b33126ba66
Bump lodash from 4.17.15 to 4.17.19 (#233)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-07 11:28:04 -06:00
ezolenko
428140bd22 - package version 0.27.1 2020-05-12 13:13:08 -06:00
ezolenko
8a6cdd8ae8 Merge branch 'ajlende-update-tslib' 0.27.1_a 2020-05-12 13:11:09 -06:00
ezolenko
d5045885df - rebuild 2020-05-12 13:10:43 -06:00
Alex Lende
b4a25cc48d Update tslb 2020-05-07 11:17:26 -05:00
Alex Lende
55dbb43672 Update package-lock.json 2020-05-07 11:14:00 -05:00
Alex Lende
c9161c3538 Build dist 2020-05-07 11:12:17 -05:00
Anton Gilgur
9e308c19b0
(refactor): use Rollup's Plugin interface instead of manual types (#222)
- more importantly, using Plugin ensures that the types are accurate
2020-03-31 11:39:41 -06:00
ezolenko
294d654f34 - package version 2020-03-27 00:08:57 -06:00
Eugene Zolenko
039bac46ec
CI status badge 2020-03-27 00:07:51 -06:00
Eugene Zolenko
5536380b9d
Update nodejs.yml 2020-03-27 00:04:02 -06:00
Eugene Zolenko
96df727ced
Create nodejs.yml 2020-03-27 00:01:28 -06:00
ezolenko
69502e151b - updating dependencies 0.27.0 2020-03-26 23:55:01 -06:00
ezolenko
034abe0a83 - updating dependencies 2020-03-26 23:45:45 -06:00
ezolenko
fd824dee9d Merge branch 'NotWoods-import-pluginutils' 2020-03-26 23:22:30 -06:00
ezolenko
cde185af0a - rebuild 2020-03-26 23:22:12 -06:00
Tiger Oakes
c6c733fcb5 Use imports with @rollup/pluginutils 2020-03-26 11:07:35 -07: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
Anton Gilgur
0caa1c427f
(docs): async plugins are now supported out-of-the-box (#205)
- so remove that reference to objectHashIgnoreUnknownHack

- also be more specific about what cases objectHashIgnoreUnknownHack
  might be needed for
  - asyncgeneratorfunctions are still one off the top of my head, but
    there are certainly others it just won't know about, including
    future syntaxes
2020-02-13 16:42:04 -07:00
Eugene Zolenko
e957a893a3 - fix for indent 2020-02-12 11:48:43 -07:00
Eugene Zolenko
ac821249f3 - package version 2020-02-11 17:33:17 -07:00
Eugene Zolenko
df241da73f - undoing debug code 0.26.0 2020-02-11 16:30:44 -07:00
Eugene Zolenko
cd76b42f55 - warning message for objectHashIgnoreUnknownHack option 2020-02-11 16:28:57 -07:00
Eugene Zolenko
417c8e53b8 - package version 2020-02-11 16:21:47 -07:00
Eugene Zolenko
c88688c5b1 - updating dependencies 2020-02-11 16:20:10 -07:00
Eugene Zolenko
7fd52b7210 - updating readme 2020-02-11 16:10:17 -07:00
Eugene Zolenko
6c4e53eeff Merge branch 'agilgur5-object-hash-update' 2020-02-11 16:05:44 -07:00
Eugene Zolenko
3d3e4eb99b - npm install and build 2020-02-11 16:04:38 -07:00
Anton Gilgur
9afc8df0a1 (fix): upgrade object-hash to support async/await syntax
- object-hash v2.0.2 adds/fixes support for async functions
  - object-hash v2 has no breaking changes, just drops testing of
    Node < 6
    - Node 5 was EOL April 2018, and on top of that Node 6
      was EOL April 2019, and Node 8 was EOL December 2019, so this is
      still more tested support than is necessary

- objectHashIgnoreUnknownHack isn't useful for its original purpose to
  workaround this, but is still useful for other types of
  objects/syntaxes that object-hash may not handle yet
  (e.g. async generator functions), so leave the hack in
  - might be good to add a warning though? so that those who used this
    option for async/await can upgrade and remove it (and have a
    stable cache again)
2020-02-10 21:26:42 -05:00
Anton Gilgur
9c265b3df4 (deps): auto-update outdated package-lock.json
- these are just the changes an `npm install` made
- it hadn't been changed since at least v0.25.2
2020-02-10 19:50:37 -05:00
chocolateboy
947da2523c Fix syntax error in transformer example (#195) 2019-12-04 15:15:55 -07:00
Eugene Zolenko
531f5f0a1b - package version 2019-12-03 10:28:31 -07:00
Eugene Zolenko
23f63b4da2 - build 0.25.3 2019-12-03 10:24:39 -07:00
chencheng (云谦)
4217346054 feat: support options.cwd (#197) 2019-12-03 10:20:41 -07:00
Eugene Zolenko
d6359af2b0
Update README.md 2019-11-13 18:42:51 -07:00
Eugene Zolenko
7e9f5c8c9f - package version 2019-11-05 11:02:44 -07:00
Eugene Zolenko
c03143b560 Merge branch 'marijnh-restore-emit-file' 0.25.2 2019-11-05 10:34:58 -07:00