diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 000000000..c9cdc63b0 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ \ No newline at end of file diff --git a/package.json b/package.json index a4a7e28e6..43117ecdc 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "build:styles": "postcss src/littlefoot.css --output dist/littlefoot.css", "build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist", "build": "yarn clean && mkdir -p dist && concurrently 'yarn build:types' 'yarn build:scripts' 'yarn build:styles'", + "commit": "git-cz", "watch:scripts": "rollup --config --bundleConfigAsCjs --watch", "watch:styles": "yarn build:styles --watch", "watch:vitest": "vitest", @@ -79,6 +80,7 @@ "eslint-plugin-prettier": "5.1.3", "eslint-plugin-promise": "6.1.1", "eslint-plugin-testing-library": "6.2.2", + "git-cz": "^4.9.0", "husky": "9.0.11", "jsdom": "^24.0.0", "lint-staged": "15.2.4", diff --git a/vitest.config.ts b/vitest.config.mts similarity index 100% rename from vitest.config.ts rename to vitest.config.mts diff --git a/yarn.lock b/yarn.lock index d75f7793a..24b88baa7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4049,6 +4049,11 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" +git-cz@^4.9.0: + version "4.9.0" + resolved "https://registry.yarnpkg.com/git-cz/-/git-cz-4.9.0.tgz#c0604ff85b37046d51fd85e265040032c9617bf2" + integrity sha512-cSRL8IIOXU7UFLdbziCYqg8f8InwLwqHezkiRHNSph7oZqGv0togId1kMTfKil6gzK0VaSXeVBb4oDl0fQCHiw== + git-raw-commits@^2.0.8: version "2.0.11" resolved "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.11.tgz"