Skip to content

Commit 1161507

Browse files
committed
chore: move dep "semver" to "@vuepress/shared-utils"
1 parent fac65a8 commit 1161507

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"description": "Minimalistic doc generator with Vue component based layout system",
1010
"scripts": {
11-
"bootstrap": "lerna bootstrap",
11+
"bootstrap": "lerna bootstrap && yarn tsc",
1212
"boot": "node scripts/bootstrap.js",
1313
"dev": "yarn tsc && yarn workspace docs dev",
1414
"build": "yarn tsc && yarn workspace docs build",

packages/@vuepress/core/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"optimize-css-assets-webpack-plugin": "^4.0.0",
5555
"portfinder": "^1.0.13",
5656
"postcss-loader": "^2.1.5",
57-
"semver": "^5.5.0",
5857
"toml": "^2.3.3",
5958
"url-loader": "^1.0.1",
6059
"vue": "^2.5.16",

packages/@vuepress/shared-utils/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"globby": "^8.0.1",
3434
"gray-matter": "^4.0.1",
3535
"hash-sum": "^1.0.2",
36-
"upath": "^1.1.0"
36+
"upath": "^1.1.0",
37+
"semver": "^5.5.0"
3738
},
3839
"author": "ULIVZ <[email protected]>",
3940
"license": "MIT",

packages/@vuepress/shared-utils/src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import path from 'path'
3131
import globby from 'globby'
3232
import hash from 'hash-sum'
3333
import escapeHtml from 'escape-html'
34+
import semver from 'semver'
3435

3536
export {
3637
codegen,
@@ -65,4 +66,5 @@ export {
6566
globby,
6667
hash,
6768
escapeHtml,
69+
semver,
6870
}

packages/vuepress/lib/checkEnv.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
* Module dependencies.
55
*/
66

7-
const { chalk } = require('@vuepress/shared-utils')
8-
const semver = require('semver')
7+
const { chalk, semver } = require('@vuepress/shared-utils')
98

109
/**
1110
* Expose handleUnknownCommand function.

0 commit comments

Comments
 (0)