Skip to content

Commit a8885b7

Browse files
aimuzZakaryCode
andauthored
chore(deps): move @hapi/joi to joi (NervJS#11639)
Co-authored-by: Zakary <zakarycode@gmail.com>
1 parent fe90fbb commit a8885b7

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/taro-service/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
},
3434
"homepage": "https://github.com/NervJS/taro#readme",
3535
"dependencies": {
36-
"@hapi/joi": "17.1.1",
3736
"@tarojs/helper": "3.4.6",
3837
"@tarojs/shared": "3.4.6",
3938
"@tarojs/taro": "3.4.6",
40-
"fs-extra": "^8.0.1",
39+
"fs-extra": "^8.1.0",
40+
"joi": "^17.6.0",
4141
"lodash": "^4.17.21",
42-
"resolve": "^1.6.0",
42+
"resolve": "^1.22.0",
4343
"tapable": "^1.1.3",
4444
"webpack-merge": "^4.2.2"
4545
}

packages/taro-service/src/Kernel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default class Kernel extends EventEmitter {
160160
if (typeof pluginCtx.optsSchema !== 'function') {
161161
return
162162
}
163-
const joi = require('@hapi/joi')
163+
const joi = require('joi')
164164
const schema = pluginCtx.optsSchema(joi)
165165
if (!joi.isSchema(schema)) {
166166
throw new Error(`插件${pluginCtx.id}中设置参数检查 schema 有误,请检查!`)

packages/taro-service/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import helper from '@tarojs/helper'
22
import { IProjectConfig } from '@tarojs/taro/types/compile'
3-
import joi from '@hapi/joi'
3+
import joi from 'joi'
44

55
import { IPlugin, IPaths, IHook, ICommand, IPlatform } from '../src/utils/types'
66

0 commit comments

Comments
 (0)