diff --git a/.husky/install.mts b/.husky/install.mts new file mode 100644 index 0000000..e5b6706 --- /dev/null +++ b/.husky/install.mts @@ -0,0 +1,9 @@ +// Skip Husky install in production and CI + +if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') { + process.exit(0) +} + +const husky = (await import('husky')).default + +console.log(husky()) diff --git a/bun.lockb b/bun.lockb index 5a31969..cc23260 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index 4fedde6..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { extends: ['@commitlint/config-conventional'] } diff --git a/commitlint.config.ts b/commitlint.config.ts new file mode 100644 index 0000000..2c84564 --- /dev/null +++ b/commitlint.config.ts @@ -0,0 +1,5 @@ +import type { UserConfig } from '@commitlint/types' + +const Configuration: UserConfig = { extends: ['@commitlint/config-conventional'] } + +export default Configuration diff --git a/package.json b/package.json index 9ebc99e..c93585c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "prestart": "bun install && next build", "start": "next start", "lint": "eslint .", - "prepare": "panda codegen && husky install" + "prepare": "panda codegen && bun ./.husky/install.mts" }, "dependencies": { "@fontsource/open-sans": "^5.0.20", @@ -37,8 +37,8 @@ "yup": "^1.3.3" }, "devDependencies": { - "@commitlint/cli": "^18.4.4", - "@commitlint/config-conventional": "^18.4.4", + "@commitlint/cli": "^20.5.0", + "@commitlint/config-conventional": "^20.5.0", "@eslint/js": "^10.0.1", "@pandacss/dev": "^0.23.0", "@types/isomorphic-fetch": "^0.0.39", @@ -48,7 +48,7 @@ "eslint": "^10.1.0", "eslint-config-next": "16.2.2", "eslint-plugin-react": "^7.37.5", - "husky": "^8.0.3", + "husky": "^9.1.7", "typescript": "*", "typescript-eslint": "^8.58.0" }