@winner-fed/winner-deploy 3.1.5 → 3.2.0

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.1.5",
3
+ "version": "3.2.0",
4
4
  "description": "Generate a publication deployed by the See platform",
5
5
  "keywords": [
6
6
  "winner",
@@ -86,7 +86,7 @@ exports.genSeePackage = function genSeePackage (seePackageName, options, handler
86
86
  description
87
87
  }))
88
88
  }
89
-
89
+
90
90
  if (handler) {
91
91
  handler((cb) => {
92
92
  genZipPackage(seePackageName, tmp, () => {
@@ -4,8 +4,9 @@
4
4
  # 拷贝前端工程文件到运行目录
5
5
  if [ "{{type}}" = "subsystem" ]; then
6
6
  # 子系统执行逻辑
7
- # 程序执行的当前路径,除了tmp文件夹,别的都删除,然后将 tmp/source 的所有文件及文件夹都拷贝到 workspace 目录下
8
- ls -I tmp | xargs rm -rf
7
+ # 程序执行的当前路径,删除 ${workspace}/{{name}},然后将 tmp/source 的所有文件及文件夹都拷贝到 workspace 目录下
8
+ # ls -I tmp | xargs
9
+ rm -rf ${workspace}/{{name}}
9
10
  \cp -rf tmp/source/* ${workspace}/
10
11
  else
11
12
  # 主系统执行逻辑
@@ -4,7 +4,7 @@
4
4
  if [ "{{type}}" = "subsystem" ]; then
5
5
  # 子系统执行逻辑
6
6
  if [ -d "${workspace}" ]; then
7
- rm -rf ${workspace}
7
+ rm -rf ${workspace}/{{name}}
8
8
  fi
9
9
  else
10
10
  # 主系统执行逻辑