refactor: make entire project typecheck with root tsconfig (#7466)

This commit is contained in:
Joshua Chen 2022-05-23 12:54:25 +08:00 committed by GitHub
parent 89b0fff128
commit 2d94d575a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 74 additions and 36 deletions

View file

@ -26,7 +26,7 @@ function getNextBetaVersionName() {
const expectedPrefix = '2.0.0-beta.';
const lastReleasedVersion = versions[0];
if (!lastReleasedVersion.includes(expectedPrefix)) {
if (!lastReleasedVersion || !lastReleasedVersion.includes(expectedPrefix)) {
throw new Error(
'this code is only meant to be used during the 2.0 beta phase.',
);