mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
chore(v2): Joi cyclic dep warning (#4464)
This commit is contained in:
parent
9117a5b7df
commit
962c3748ea
6 changed files with 12 additions and 5 deletions
8
packages/docusaurus-utils-validation/src/Joi.ts
Normal file
8
packages/docusaurus-utils-validation/src/Joi.ts
Normal 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';
|
|
@ -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,
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue