Explorar o código

Internal: Added preversion task.

Piotrek Koszuliński %!s(int64=8) %!d(string=hai) anos
pai
achega
349e887ec9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/ckeditor5-build-balloon/package.json

+ 3 - 1
packages/ckeditor5-build-balloon/package.json

@@ -47,6 +47,8 @@
   "scripts": {
     "build": "npm run create-entry-file && npm run build-ckeditor",
     "create-entry-file": "./bin/create-entry-file.js",
-    "build-ckeditor": "./bin/build-ckeditor.sh"
+    "build-ckeditor": "./bin/build-ckeditor.sh",
+
+    "preversion": "npm run build; if [ -n \"$(git status ckeditor.js build/ --porcelain)\" ]; then git add -u ckeditor.js build/ && git commit -m 'Internal: Build.'; fi"
   }
 }