From 3565644571190eb3281d79d433566044bbfeba07 Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Fri, 10 Jul 2020 05:58:50 +0200 Subject: [PATCH] restore pre-commit hook --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 55e9caf..06dd62f 100755 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "format": "prettier --write ./site/**/*{.md,.js,.json,.vue}", "translations:compare": "node ./scripts/compare_translations.js", "codes:inject": "node ./scripts/inject_codes.js && yarn format", - "codes:clean": "node ./scripts/clean_codes.js && yarn format" + "codes:clean": "node ./scripts/clean_codes.js && yarn format", + "precommit": "yarn codes:clean && git add ." }, "license": "Apache-2.0", "devDependencies": { @@ -29,5 +30,5 @@ "dependencies": { "vuedraggable": "^2.23.2" }, - "pre-commit": [] + "pre-commit": ["precommit"] }