mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 08:19:07 +02:00
refactor: make entire project typecheck with root tsconfig (#7466)
This commit is contained in:
parent
89b0fff128
commit
2d94d575a1
17 changed files with 74 additions and 36 deletions
|
@ -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.',
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue