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.
- package/lib/utils.js +3 -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
|
-
|
|
652
|
-
|
|
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'); // 暂存
|