From 386f2876dfb79b93559a1187e6b104060bb46067 Mon Sep 17 00:00:00 2001 From: Ika Date: Tue, 1 Oct 2019 09:35:48 +0800 Subject: [PATCH] chore: update release scripts --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 45cf9c1..d53ae49 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,15 @@ "scripts": { "test": "yarn tree-sitter test", "prepack": "node scripts/update-generated-utils.js && yarn tree-sitter generate", - "release": "standard-version", + "release": "standard-version --commit-all", "tree-sitter": "./tree-sitter/target/release/tree-sitter" }, + "standard-version": { + "preset": "angular", + "scripts": { + "precommit": "rm -r docs && node scripts/generate-playground.js && git add docs" + } + }, "dependencies": { "nan": "^2.14.0" },