@lazycatcloud/lzc-cli 1.3.7 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.3.8
2
+
3
+ 1. 修复hellowrold路由路径不对
4
+
1
5
  # 1.3.7
2
6
 
3
7
  1. 修复错误的 lzc-manifest 字段读取匹配
package/lib/utils.js CHANGED
@@ -178,16 +178,23 @@ export function fakeLoadManifestYml(file) {
178
178
  subdomain: undefined,
179
179
  },
180
180
  }
181
+
181
182
  res.split("\n").forEach(v => {
182
- let line = v.trim().replace(" ", "")
183
- if (!obj.package && line.includes("package:") && line.split(":").length == 2) {
184
- obj.package = line.split(":")[1]
183
+ let line = v.trim()
184
+ const arr = line.split(":")
185
+ if (arr.length != 2) {
186
+ return
187
+ }
188
+ let [key, value] = arr
189
+ value = value.trim()
190
+ if (!obj.package && key == "package") {
191
+ obj.package = value
185
192
  }
186
- if (!obj.application.subdomain && line.includes("subdomain:") && line.split(":").length == 2) {
187
- obj.application.subdomain = line.split(":")[1]
193
+ if (!obj.application.subdomain && key == "subdomain") {
194
+ obj.application.subdomain = value
188
195
  }
189
- if (!obj.version && line.includes("version:") && line.split(":").length == 2) {
190
- obj.version = line.split(":")[1]
196
+ if (!obj.version && key == "version") {
197
+ obj.version = value
191
198
  }
192
199
  })
193
200
  return obj
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-cli",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "lazycat cloud developer kit",
5
5
  "scripts": {
6
6
  "prepublishOnly": "node check-changelog.js"
@@ -11,4 +11,4 @@ author: # app author
11
11
  application:
12
12
  subdomain: ${subdomain} #期望的app域名
13
13
  routes:
14
- - /=file:///lzcapp/pkg/content
14
+ - /=file:///lzcapp/pkg/content/dist