liyongli 2 жил өмнө
parent
commit
2aa4db8408
2 өөрчлөгдсөн 4 нэмэгдсэн , 6 устгасан
  1. 1 2
      package.json
  2. 3 4
      saveOSSAGitte.js

+ 1 - 2
package.json

@@ -4,8 +4,7 @@
   "private": true,
   "scripts": {
     "serve": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service serve",
-    "build": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service build",
-    "build1": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service build & node ./saveOSSAGitte.js",
+    "build": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service build & node ./saveOSSAGitte.js",
     "lint": "vue-cli-service lint",
     "preinstall": "npx pm-keeper yarn@1.22.10"
   },

+ 3 - 4
saveOSSAGitte.js

@@ -82,10 +82,9 @@ const {execSync } = require("child_process");
    */
   function execFun(){
     try{
-       const add = execSync('git add .');
-       const commit = execSync('git commit -m "提交"');
-       const push = execSync('git push');
-       console.log(add, commit, push);
+       execSync('git add .');
+       execSync('git commit -m "提交"');
+       execSync('git push');
     }catch(e){
         console.error(e);
     }