Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Commit ac36bee

Browse files
committed
Minor restoration
1 parent 03aea37 commit ac36bee

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

generator/index.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
* @Author: isboyjc
33
* @Date: 2019-12-14 16:38:18
44
* @LastEditors: isboyjc
5-
* @LastEditTime: 2020-03-26 16:58:57
5+
* @LastEditTime: 2020-03-27 14:43:53
66
* @Description: generator 允许一个 generator 向 package.json 注入额外的依赖或字段,并向项目中添加文件
77
*/
88
module.exports = (api, options, rootOptions) => {
9-
let version = null
10-
options.addVersion.startsWith("*")
11-
? (version = "*")
12-
: (version = options.addVersion)
9+
let version = options.addVersion
10+
version.startsWith("*") ? (version = "*") : null
1311
// 拓展 package.json,默认merge已有依赖项,可以设置参数 merge: false
1412
api.extendPackage({
1513
dependencies: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-cesium",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Cesium encapsulation based on Vue cli",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)