This fixes an initialization regression in 0.34.0 where users saw TypeError: Cannot read property 'done' of undefined instead of their actual initialization error, such as a tsconfig issue (such as with ezolenko/rollup-plugin-typescript2#421)
0.34.0 introduced a type-only fix that relied on Rollup 2.60.0+ and would (accidentally) error out on older versions of Rollup. This fix handles it gracefully with a clear warning message instead and skips that check when using an older version of Rollup (i.e. partly backward-compatible).
This fixes a regression from 0.33.0 that could cause rpt2 to (accidentally) resolve files that should have been filtered out by the plugin include/exclude (such as with ezolenko/rollup-plugin-typescript2#427)
fix: handle all type-only imports by piping TS imports by @agilgur5 in #406
If you have ever had issues with some files not being type-checked or not generating declarations, this should conclusively fix all such issues. This type of issue used to occur if you had a type-only / interface-only / emit-less file, i.e. a file with only TS types and interfaces that would produce no JS.
NOTE: This requires Rollup version 2.60.0+ as it requires the use of this.load
0.34.0 will (accidentally) error out on older versions of Rollup. 0.34.1 patched this to instead give a warning and skip this check on older versions of Rollup.
fix(dx): remove extra quote in emitDeclarationOnly log statement by @agilgur5 in #412
Docs
docs: add a simple CHANGELOG.md that references GH releases by @agilgur5 in #419
i.e. it references this page
Internal (testing, refactors)
test: ensure declarationMap sources are correct by @agilgur5 in #403
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps rollup-plugin-typescript2 from 0.30.0 to 0.34.1.
Release notes
Sourced from rollup-plugin-typescript2's releases.
... (truncated)
Commits
f6db596
fix: don't resolvefilter
ed files (#428)3ef3289
fix: add compatibility checks w/semver
(#424)a1ae42b
test: increaseno-errors
integration timeout to 20s (#425)ffb562d
clean(deps): remove unused@types/resolve
(#423)e8f59ef
fix: don't error out while catching abuildStart
error (#422)0b99f8e
- build for 34.0ba26293
refactor: consolidatediagnostics
funcs into single file (#416)e98e0ed
docs: add a simple CHANGELOG.md that references GH releases (#419)560ed8d
fix: handle all type-only imports by piping TS imports (#406)c6be0eb
refactor(cache): simplify creating / using thecache
var (#415)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)