6 Commits

Author SHA1 Message Date
Anton Gilgur
60f3489e87
deps: upgrade tslib to 2.4.0, remove @yarn-tool/resolve-package (#326)
- tslib 2.4.0 is forward and backward-compatible with older and newer
  Node exports mechanisms, so the Node 17 error should no longer be
  present
  - it has the older `./` and the newer `./*` in its package exports,
    which should allow for `package.json` to be read in both older and
    newer implementations

- this allows us to remove the extra dep on `@yarn-tool/resolve-package`
  as well
  - other than less unnecessary deps being good,
    `@yarn-tool/resolve-package` is also a not well-documented package
    with very few users, which does not make for a good security posture
    for rpt2 (which has historically prioritized supply chain security
    in other issues around deps) or, in particular, its consumers, which
    there are very many of (in contrast with `@yarn-tool`)
  - per my issue comment, we could also have avoided the extra dep prior
    to the tslib upgrade by resolving to absolute paths, as Node only
    does a "weak" encapsulation of relative imports

- test: add a small unit test for tslib.ts to ensure that this method
  works and passes on different Node versions in CI
  - more a smoke test that it runs at all, the testing is additional
    and a bit duplicative of the source tbh
2022-05-16 14:45:47 -06:00
bluelovers
34005979e9 fix(tslib): https://github.com/ezolenko/rollup-plugin-typescript2/issues/286 2021-11-04 02:10:43 +08:00
Mateusz Burzyński
dca40becaf Add .js extension to virtual tslib (#170) 2019-09-09 14:56:07 -06:00
Eugene Zolenko
b9a93eb5d9 - fix for #82
- printing tslib version
2018-06-04 17:07:22 -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