Skip to content

Commit f4dde29

Browse files
committed
build: add husky pre-commit hook to run build validation
1 parent 80a96d5 commit f4dde29

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm run build

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"e-t": "cross-env node scripts/extract-translations.cjs",
1111
"g-l": "cross-env node scripts/generate-locale-files.cjs",
1212
"test": "jest",
13-
"test:watch": "jest --watch"
13+
"test:watch": "jest --watch",
14+
"prepare": "husky"
1415
},
1516
"keywords": [
1617
"obsidian",
@@ -40,6 +41,7 @@
4041
"cross-env": "^7.0.3",
4142
"esbuild": "0.13.12",
4243
"esbuild-plugin-inline-worker": "https://github.com/mitschabaude/esbuild-plugin-inline-worker",
44+
"husky": "^9.1.7",
4345
"jest": "^29.5.0",
4446
"jest-environment-jsdom": "^29.5.0",
4547
"monkey-around": "^3.0.0",

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)