@taole/deploy-helper 0.6.2 → 0.6.4

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.
@@ -137,7 +137,7 @@ export function checkOfflinePkg(config) {
137
137
  const distPath = join(config.workDir, offlineConfig.distDir);
138
138
 
139
139
  // 如果offlineConfig.remove为true,则不构建离线包
140
- const willRemovePkg = offlineConfig && offlineConfig.name && offlineConfig.remove === true;
140
+ const willRemovePkg = offlineConfig && offlineConfig.name && offlineConfig.remove === true && offlineConfig.skip !== true;
141
141
  if (willRemovePkg) {
142
142
  return {
143
143
  canBuild: true,
@@ -151,7 +151,7 @@ export function checkOfflinePkg(config) {
151
151
  if (!fs.existsSync(distPath)) {
152
152
  errorMsg = `构建产物${distPath}不存在, 请先构建项目`;
153
153
  canBuildOfflinePkg = false;
154
- } else if (!offlineConfig || !offlineConfig.name) {
154
+ } else if (!offlineConfig || !offlineConfig.name || offlineConfig.skip === true) {
155
155
  errorMsg = ""; // 没有离线包配置文件,跳过构建离线包
156
156
  canBuildOfflinePkg = false;
157
157
  } else if (!userDeployHelperConfig || !userDeployHelperConfig.offlineApi || !userDeployHelperConfig.offlineApi.get || !userDeployHelperConfig.offlineApi.set) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/deploy-helper",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "脚本部署工具,用于将项目部署到测试环境或生产环境",
5
5
  "main": "index.mjs",
6
6
  "type": "module",