소스 검색

Internal: Added preversion task.

Piotrek Koszuliński 8 년 전
부모
커밋
349e887ec9
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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"
   }
 }