Skip to content

Commit 518988b

Browse files
committed
feat: add lint step after typegen
1 parent 67e2ecb commit 518988b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.husky/pre-commit

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
make test
1+
echo "\nTest Packages\n"
2+
3+
echo "Test - frontend\n"
4+
5+
cd frontend
6+
7+
pnpm prettier --write --log-level silent . && pnpm eslint . --fix
8+
9+
echo "Done!\n"
10+
11+
echo "Test - http\n"
12+
13+
cd ../http
14+
15+
go build -a -o bin/main ./
16+
go build -a -o bin/gen-structs ./cmd/cli/typegen/structs
17+
go build -a -o bin/gen-declarations ./cmd/cli/typegen/declarations
18+
19+
echo "Done!\n"
20+
21+
exit 0

scripts/package/typegen.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ go build -o bin/gen-declarations ./cmd/cli/typegen/declarations
2020

2121
cd ../
2222

23+
pnpm prettier --write --loglevel silent ./frontend/src/lib/types/endpoint.d.ts
24+
2325
echo "\n${F_BOLD}Done!${NO_FORMAT}\n"

0 commit comments

Comments
 (0)