mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-24 13:38:02 +02:00
refactor: fix more type-aware linting errors (#7479)
This commit is contained in:
parent
bf1513a3e3
commit
624735bd92
51 changed files with 192 additions and 189 deletions
|
@ -14,7 +14,9 @@ import logger from '@docusaurus/logger';
|
|||
import semver from 'semver';
|
||||
import {program} from 'commander';
|
||||
|
||||
const packageJson = createRequire(import.meta.url)('../package.json');
|
||||
const packageJson = /** @type {import("../package.json")} */ (
|
||||
createRequire(import.meta.url)('../package.json')
|
||||
);
|
||||
const requiredVersion = packageJson.engines.node;
|
||||
|
||||
if (!semver.satisfies(process.version, requiredVersion)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue