Skip to content

Commit

Permalink
chore: move dep "semver" to "@vuepress/shared-utils"
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jan 17, 2019
1 parent fac65a8 commit 1161507
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/@vuepress/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/@vuepress/shared-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions packages/@vuepress/shared-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -65,4 +66,5 @@ export {
globby,
hash,
escapeHtml,
semver,
}
3 changes: 1 addition & 2 deletions packages/vuepress/lib/checkEnv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1161507

Please sign in to comment.