@taole/deploy-helper 0.2.5 → 0.2.6

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.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -100,7 +100,7 @@ async function main() {
100
100
  }
101
101
 
102
102
  // 需要处理entry
103
- const needHandleEntry = (mode === 'prod' && config.entry.onlyProd) || (mode === 'test' && !config.entry.onlyProd);
103
+ const needHandleEntry = mode === 'prod' || (mode === 'test' && !config.entry.onlyProd);
104
104
  const entryTestBranch = (config.entry && config.entry.testBranch) || "test";
105
105
  const entryProdBranch = (config.entry && config.entry.prodBranch) || "master";
106
106
  const entryTargetBranch = mode === 'prod' ? entryProdBranch : entryTestBranch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/deploy-helper",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "脚本部署工具,用于将项目部署到测试环境或生产环境",
5
5
  "main": "index.mjs",
6
6
  "type": "module",