Skip to content

Commit

Permalink
fix: update husky scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-souza committed Dec 20, 2024
1 parent d614be8 commit abe7c4f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .husky/_/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions .husky/_/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions .husky/_/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// 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.
24 changes: 19 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -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"
]
}

1 comment on commit abe7c4f

@vercel
Copy link

@vercel vercel bot commented on abe7c4f Dec 20, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.