提交 11615073 编写于 作者: U ULIVZ

chore: move dep "semver" to "@vuepress/shared-utils"

上级 fac65a88
......@@ -8,7 +8,7 @@
],
"description": "Minimalistic doc generator with Vue component based layout system",
"scripts": {
"bootstrap": "lerna bootstrap",
"bootstrap": "lerna bootstrap && yarn tsc",
"boot": "node scripts/bootstrap.js",
"dev": "yarn tsc && yarn workspace docs dev",
"build": "yarn tsc && yarn workspace docs build",
......
......@@ -54,7 +54,6 @@
"optimize-css-assets-webpack-plugin": "^4.0.0",
"portfinder": "^1.0.13",
"postcss-loader": "^2.1.5",
"semver": "^5.5.0",
"toml": "^2.3.3",
"url-loader": "^1.0.1",
"vue": "^2.5.16",
......
......@@ -33,7 +33,8 @@
"globby": "^8.0.1",
"gray-matter": "^4.0.1",
"hash-sum": "^1.0.2",
"upath": "^1.1.0"
"upath": "^1.1.0",
"semver": "^5.5.0"
},
"author": "ULIVZ <chl814@foxmail.com>",
"license": "MIT",
......
......@@ -31,6 +31,7 @@ import path from 'path'
import globby from 'globby'
import hash from 'hash-sum'
import escapeHtml from 'escape-html'
import semver from 'semver'
export {
codegen,
......@@ -65,4 +66,5 @@ export {
globby,
hash,
escapeHtml,
semver,
}
......@@ -4,8 +4,7 @@
* Module dependencies.
*/
const { chalk } = require('@vuepress/shared-utils')
const semver = require('semver')
const { chalk, semver } = require('@vuepress/shared-utils')
/**
* Expose handleUnknownCommand function.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册