Automatically format when submitting

This commit is contained in:
Tw93
2025-08-14 15:10:54 +08:00
parent 6b2e64fdac
commit 8313d9142b
3 changed files with 8 additions and 0 deletions

View File

@@ -42,6 +42,8 @@
"cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js",
"test": "npm run cli:build && node tests/index.js",
"format": "npx prettier --write . --ignore-unknown && cd src-tauri && cargo fmt --verbose",
"hooks:setup": "bash .githooks/setup.sh",
"postinstall": "npm run hooks:setup",
"prepublishOnly": "npm run cli:build"
},
"type": "module",