ql-publish 0.0.9 → 0.0.10
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/README.md +5 -0
- package/package.json +1 -1
- package/upload/u.js +1 -1
package/README.md
CHANGED
|
@@ -253,6 +253,11 @@ clearExcludes: ['*keep*', '.zip']
|
|
|
253
253
|
|
|
254
254
|
## 更新日志
|
|
255
255
|
|
|
256
|
+
### 0.0.10
|
|
257
|
+
|
|
258
|
+
- `upload()` 服务器解压完成后不再自动删除远程的 `dist.tar.gz`,方便后续归档/手动回滚。
|
|
259
|
+
- 若不希望该压缩包在后续 `clear()` 时被当作旧文件删除,请在 `config` 中配置 `clearExcludes: ['dist.tar.gz']`。
|
|
260
|
+
|
|
256
261
|
### 0.0.9
|
|
257
262
|
|
|
258
263
|
- 新增 `clearExcludes` 配置,支持「精确文件名 / 扩展名后缀 / 子串」三类规则跳过清理。
|
package/package.json
CHANGED
package/upload/u.js
CHANGED
|
@@ -507,7 +507,7 @@ const decompressRemoteAction = (config, remoteArchivePath, remoteExtractPath) =>
|
|
|
507
507
|
logger.warn(`正在服务器解压文件: ${remoteArchivePath} -> ${remoteExtractPath}`);
|
|
508
508
|
// 确保目录存在(使用 -p 参数,如果已存在不会报错)
|
|
509
509
|
// 如果 mkdir -p 仍然报错(可能是权限问题或其他特殊情况),我们尝试直接解压
|
|
510
|
-
const command = `mkdir -p ${remoteExtractPath} 2>/dev/null; tar -xzf ${remoteArchivePath} -C ${remoteExtractPath}
|
|
510
|
+
const command = `mkdir -p ${remoteExtractPath} 2>/dev/null; tar -xzf ${remoteArchivePath} -C ${remoteExtractPath}`;
|
|
511
511
|
conn.exec(command, (err, stream) => {
|
|
512
512
|
if (err) {
|
|
513
513
|
conn.end();
|