mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-23 14:06:59 +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
|
@ -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"
|
||||||
|
|
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.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {Joi} from '@docusaurus/utils-validation';
|
import Joi from '../Joi';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
AdmonitionsSchema,
|
AdmonitionsSchema,
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue