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

@ -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.
*/
import {Joi} from '@docusaurus/utils-validation';
import Joi from '../Joi';
import {
AdmonitionsSchema,

View file

@ -6,7 +6,7 @@
*/
// /!\ 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 './validationSchemas';

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 'joi';
import Joi from './Joi';
import {isValidPathname} from '@docusaurus/utils';
export const PluginIdSchema = Joi.string()

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 'joi';
import Joi from './Joi';
import chalk from 'chalk';
import {PluginIdSchema} from './validationSchemas';