@winner-fed/winner-deploy 3.0.2 → 3.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winner-fed/winner-deploy",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Generate a publication deployed by the See platform",
5
5
  "keywords": [
6
6
  "winner",
@@ -74,9 +74,10 @@ exports.genDockerPackage = function genDockerPackage (seePackageName, options, h
74
74
  }))
75
75
 
76
76
  if (handler) {
77
- handler(() => {
77
+ handler((cb) => {
78
78
  genZipPackage(seePackageName, tmp, () => {
79
79
  rm.sync(tmp)
80
+ typeof cb === 'function' && cb()
80
81
  })
81
82
  })
82
83
  } else {
@@ -68,9 +68,10 @@ exports.genSeePackage = function genSeePackage (seePackageName, options, handler
68
68
  }))
69
69
 
70
70
  if (handler) {
71
- handler(() => {
71
+ handler((cb) => {
72
72
  genZipPackage(seePackageName, tmp, () => {
73
73
  rm.sync(tmp)
74
+ typeof cb === 'function' && cb()
74
75
  })
75
76
  })
76
77
  } else {
@@ -130,14 +130,12 @@ exports.generateSeePackageZip = function generateSeePackageZip ({
130
130
  },
131
131
  done => {
132
132
 
133
- // 自定义执行的操作
134
- typeof cb === 'function' && cb()
135
-
136
- done()
137
133
  console.log()
138
134
  ora(
139
135
  `docker 容器化部署的 SEE 发布物制作完成,您可以在 SEE 平台上传并部署应用。`
140
136
  ).succeed()
137
+
138
+ done(cb)
141
139
  }
142
140
  )
143
141
  return;
@@ -183,16 +181,14 @@ exports.generateSeePackageZip = function generateSeePackageZip ({
183
181
  });
184
182
  }
185
183
 
186
- // 自定义执行的操作
187
- typeof cb === 'function' && cb()
188
-
189
- done()
190
184
  console.log()
191
185
  ora(
192
186
  `发布物制作完成,您可以在 SEE 平台上传并部署应用。注意:${chalk.yellow(
193
187
  '子系统发布物的安装目录需要指定到具体的应用目录'
194
188
  )}。比如/home/hsiar/hsiar-green/html/。\n`
195
189
  ).succeed()
190
+
191
+ done(cb)
196
192
  }
197
193
  )
198
194
  }