Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Run formatters and linters
pnpm run lint:fix
pnpm run format

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm run lint:fix
pnpm run format
Comment on lines +8 to +12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we running again?


# Stage any modified files after formatting/linting
git diff --name-only | xargs git add
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"deploy": "wrangler deploy",
"dev": "wrangler dev",
"format": "biome format --write",
"lint:fix": "biome lint --fix",
"lint:fix": "biome lint --write",
"test": "vitest",
"test:integration": "vitest run --config vitest.integration.config.mts",
"test:watch": "vitest watch",
Expand Down
1 change: 1 addition & 0 deletions typescript/src/tools/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type State = {

export type Context = {
api: ApiClient;

cache: ScopedCache<State>;
env: Env;
getProjectId: () => Promise<string>;
Expand Down