crabatool 1.0.251 → 1.0.255

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/lib/utils.js +3 -2
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -648,8 +648,9 @@ class Utils {
648
648
  gitpush(msg) {
649
649
  const execSync = require('child_process').execSync;
650
650
 
651
- console.log('cd ' + config.webPath);
652
- execSync('cd ' + config.webPath); // 必须切换到web路径,有些是在node_modules路径下
651
+ var webPath = config.webPath || config.targetPath;
652
+ console.log('cd ' + webPath);
653
+ execSync('cd ' + webPath); // 必须切换到web路径,有些是在node_modules路径下
653
654
 
654
655
  console.log('git add --all'); // 暂存
655
656
  execSync('git add --all'); // 暂存
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.251",
3
+ "version": "1.0.255",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {