chore(v2): migrate hapi/joi to joi (#3638)

This commit is contained in:
Alexey Pyltsyn 2020-10-26 17:18:51 +03:00 committed by GitHub
parent a64a34f077
commit 69bf68ae57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 58 additions and 79 deletions

View file

@ -19,7 +19,6 @@
"license": "MIT",
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-alpha.66",
"@types/hapi__joi": "^17.1.2",
"@types/picomatch": "^2.2.1",
"commander": "^5.0.0",
"picomatch": "^2.1.1"
@ -30,7 +29,7 @@
"@docusaurus/types": "2.0.0-alpha.66",
"@docusaurus/utils": "2.0.0-alpha.66",
"@docusaurus/utils-validation": "2.0.0-alpha.66",
"@hapi/joi": "17.1.1",
"joi": "^17.2.1",
"chalk": "^3.0.0",
"execa": "^3.4.0",
"fs-extra": "^8.1.0",

View file

@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as Joi from '@hapi/joi';
import * as Joi from 'joi';
import {PluginOptions} from './types';
import {
RemarkPluginsSchema,
@ -13,7 +13,7 @@ import {
URISchema,
} from '@docusaurus/utils-validation';
import {OptionValidationContext, ValidationResult} from '@docusaurus/types';
import {ValidationError} from '@hapi/joi';
import {ValidationError} from 'joi';
import chalk from 'chalk';
import admonitions from 'remark-admonitions';