From f8b877fde00b59f69ac51a2464dc2ce50b4501b3 Mon Sep 17 00:00:00 2001 From: HYana Date: Sat, 10 May 2025 01:25:25 +0800 Subject: [PATCH] feat: check build when commit --- web/.lintstagedrc.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/.lintstagedrc.json b/web/.lintstagedrc.json index d9209d1f..123ba0ab 100644 --- a/web/.lintstagedrc.json +++ b/web/.lintstagedrc.json @@ -1,3 +1,6 @@ { - "*.{js,jsx,ts,tsx}": ["pnpm lint --fix", "pnpm lint"] + "*.{js,jsx,ts,tsx}": ["next lint --fix --file", "next lint --file"], + "**/*": [ + "bash -c 'cd \"$(pwd)\" && next build" + ] }