shenwu 6 months ago
parent
commit
98e3fc859d
2 changed files with 4 additions and 2 deletions
  1. 1 0
      config/sumitOss.js
  2. 3 2
      package.json

+ 1 - 0
config/sumitOss.js

@@ -0,0 +1 @@
+console.log("上传到oss")

+ 3 - 2
package.json

@@ -34,7 +34,8 @@
     "test": "jest",
     "test:coverage": "npm run jest -- --coverage",
     "test:update": "npm run jest -- -u",
-    "tsc": "tsc --noEmit"
+    "tsc": "tsc --noEmit",
+    "postbuild": "node ./config/sumitOss.js"
   },
   "lint-staged": {
     "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
@@ -100,4 +101,4 @@
   "engines": {
     "node": ">=12.0.0"
   }
-}
+}