From abe7c4f2739c49c76e1f0a93b93f53fdda45b93e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ant=C3=B4nio?= Date: Thu, 19 Dec 2024 21:38:45 -0300 Subject: [PATCH] fix: update husky scripts --- .husky/_/pre-commit | 3 --- .husky/_/pre-push | 3 --- .husky/_/prepare-commit-msg | 3 --- app/layout.tsx | 2 +- next-env.d.ts | 2 +- tsconfig.json | 24 +++++++++++++++++++----- 6 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.husky/_/pre-commit b/.husky/_/pre-commit index 3fbf5f96..4855f612 100755 --- a/.husky/_/pre-commit +++ b/.husky/_/pre-commit @@ -48,9 +48,6 @@ call_lefthook() elif command -v mint >/dev/null 2>&1 then mint run csjones/lefthook-plugin "$@" - elif command -v npx >/dev/null 2>&1 - then - npx lefthook "$@" else echo "Can't find lefthook in PATH" fi diff --git a/.husky/_/pre-push b/.husky/_/pre-push index cf59fe1c..a0d96ef9 100755 --- a/.husky/_/pre-push +++ b/.husky/_/pre-push @@ -48,9 +48,6 @@ call_lefthook() elif command -v mint >/dev/null 2>&1 then mint run csjones/lefthook-plugin "$@" - elif command -v npx >/dev/null 2>&1 - then - npx lefthook "$@" else echo "Can't find lefthook in PATH" fi diff --git a/.husky/_/prepare-commit-msg b/.husky/_/prepare-commit-msg index e8e8dda9..2655902b 100755 --- a/.husky/_/prepare-commit-msg +++ b/.husky/_/prepare-commit-msg @@ -48,9 +48,6 @@ call_lefthook() elif command -v mint >/dev/null 2>&1 then mint run csjones/lefthook-plugin "$@" - elif command -v npx >/dev/null 2>&1 - then - npx lefthook "$@" else echo "Can't find lefthook in PATH" fi diff --git a/app/layout.tsx b/app/layout.tsx index f9c4d03f..d1daa832 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -8,7 +8,7 @@ type Props = { }; export default async function RootLayout({ children }: Props) { - const cookieStore = cookies(); + const cookieStore = await cookies(); const selectedTheme = cookieStore.get("selected-theme")?.value ?? "system"; return ( diff --git a/next-env.d.ts b/next-env.d.ts index 40c3d680..1b3be084 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. +// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/tsconfig.json b/tsconfig.json index d8a473c8..5ce1bf4c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,10 @@ { "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -14,15 +18,25 @@ "jsx": "preserve", "baseUrl": ".", "paths": { - "@packages/*": ["./packages/*"] + "@packages/*": [ + "./packages/*" + ] }, "incremental": false, "plugins": [ { "name": "next" } - ] + ], + "target": "ES2017" }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }