Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

chore: add test pre-commit

Gus698a72ab0497
diff --git a/package.json b/package.json
index 074ff18d1..032a3384c 100644
--- a/package.json
+++ b/package.json
@@ -28,9 +28,14 @@
"deploy:ws-do": "cd src/ws-do && npx wrangler deploy",
"deploy:email": "cd src/email-worker && npx wrangler deploy",
"db:migrate:remote": "pnpm --filter @alook/web exec wrangler d1 migrations apply alook-app --remote",
- "bump": "node scripts/bump-version.mjs"
+ "bump": "node scripts/bump-version.mjs",
+ "prepare": "simple-git-hooks"
+ },
+ "simple-git-hooks": {
+ "pre-commit": "pnpm test"
},
"devDependencies": {
+ "simple-git-hooks": "^2.13.1",
"turbo": "^2.9.8",
"typescript": "^6.0.3",
"vitest": "^4.1.5",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f5fc8c4d3..5ec8f95b0 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,6 +8,9 @@ importers:
.:
devDependencies:
+ simple-git-hooks:
+ specifier: ^2.13.1
+ version: 2.13.1
turbo:
specifier: ^2.9.8
version: 2.9.8
@@ -6144,6 +6147,10 @@ packages:
resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
engines: {node: '>=14'}
+ resolution: {integrity: sha512-WszCLXwT4h2k1ufIXAgsbiTOazqqevFCIncOuUBZJ91DdvWcC5+OFkluWRQPrcuSYd8fjq+o2y1QfWqYMoAToQ==}
+ hasBin: true
+
resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
@@ -11143,8 +11150,8 @@ snapshots:
'@next/eslint-plugin-next': 16.2.4
eslint: 9.39.4([email protected])
eslint-import-resolver-node: 0.3.10
- eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
eslint-plugin-react: 7.37.5([email protected]([email protected]))
eslint-plugin-react-hooks: 7.1.1([email protected]([email protected]))
@@ -11166,7 +11173,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@nolyfill/is-core-module': 1.0.39
debug: 4.4.3
@@ -11177,22 +11184,22 @@ snapshots:
tinyglobby: 0.2.16
unrs-resolver: 1.11.1
optionalDependencies:
transitivePeerDependencies:
- supports-color
dependencies:
debug: 3.2.7
optionalDependencies:
'@typescript-eslint/parser': 8.58.2([email protected]([email protected]))([email protected])
eslint: 9.39.4([email protected])
eslint-import-resolver-node: 0.3.10
- eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
transitivePeerDependencies:
- supports-color
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.9
@@ -11203,7 +11210,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.39.4([email protected])
eslint-import-resolver-node: 0.3.10
hasown: 2.0.3
is-core-module: 2.16.1
is-glob: 4.0.3
@@ -13909,6 +13916,8 @@ snapshots:
+