chore(v2): Joi cyclic dep warning (#4464)

This commit is contained in:
Sébastien Lorber 2021-03-18 20:19:09 +01:00 committed by GitHub
parent 9117a5b7df
commit 962c3748ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 5 deletions

View file

@ -19,7 +19,6 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@docusaurus/utils": "2.0.0-alpha.72", "@docusaurus/utils": "2.0.0-alpha.72",
"@docusaurus/utils-validation": "2.0.0-alpha.72",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"joi": "^17.4.0", "joi": "^17.4.0",
"tslib": "^2.1.0" "tslib": "^2.1.0"

View file

@ -0,0 +1,8 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export {default} from 'joi';

View file

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {Joi} from '@docusaurus/utils-validation'; import Joi from '../Joi';
import { import {
AdmonitionsSchema, AdmonitionsSchema,

View file

@ -6,7 +6,7 @@
*/ */
// /!\ don't remove this export, as we recommend plugin authors to use it // /!\ don't remove this export, as we recommend plugin authors to use it
export {default as Joi} from 'joi'; export {default as Joi} from './Joi';
export * from './validationUtils'; export * from './validationUtils';
export * from './validationSchemas'; export * from './validationSchemas';

View file

@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import * as Joi from 'joi'; import Joi from './Joi';
import {isValidPathname} from '@docusaurus/utils'; import {isValidPathname} from '@docusaurus/utils';
export const PluginIdSchema = Joi.string() export const PluginIdSchema = Joi.string()

View file

@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import * as Joi from 'joi'; import Joi from './Joi';
import chalk from 'chalk'; import chalk from 'chalk';
import {PluginIdSchema} from './validationSchemas'; import {PluginIdSchema} from './validationSchemas';