diff --git a/.husky/install.ts b/.husky/install.mts similarity index 62% rename from .husky/install.ts rename to .husky/install.mts index 759e595..6cd65b9 100644 --- a/.husky/install.ts +++ b/.husky/install.mts @@ -1,8 +1,7 @@ -import husky from "husky" - // Skip Husky install in production and CI environments -if (process.env.NODE_ENV === "production" || process.env.CI === "true") { +if (process.env.NODE_ENV === "production" || process.env.CI === "true" || process.env.SKIP_HUSKY === "true") { process.exit(0) } +const { default: husky } = await import("husky") console.log(husky()) diff --git a/package.json b/package.json index d94ab5f..5baddfd 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "scripts": { "build:stdio": "bun build ./stdio.ts --compile --outfile bin/stdio", "build": "bun build:stdio", - "prepare": "bun .husky/install.ts" + "prepare": "bun .husky/install.mts" }, "dependencies": { "@modelcontextprotocol/sdk": "^1.26.0",