diff --git a/scripts/copy-hook-metadata.ts b/scripts/copy-hook-metadata.ts index be44f69327..737ed4a9d7 100644 --- a/scripts/copy-hook-metadata.ts +++ b/scripts/copy-hook-metadata.ts @@ -1,6 +1,6 @@ #!/usr/bin/env tsx /** - * Copy HOOK.md files from src/hooks/bundled to dist/hooks/bundled + * Copy HOOK.md files from src/hooks/bundled to dist/bundled */ import fs from "node:fs"; @@ -11,7 +11,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url)); const projectRoot = path.resolve(__dirname, ".."); const srcBundled = path.join(projectRoot, "src", "hooks", "bundled"); -const distBundled = path.join(projectRoot, "dist", "hooks", "bundled"); +const distBundled = path.join(projectRoot, "dist", "bundled"); function copyHookMetadata() { if (!fs.existsSync(srcBundled)) { diff --git a/tsdown.config.ts b/tsdown.config.ts index 232ab79592..f4078fa564 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -36,4 +36,10 @@ export default defineConfig([ fixedExtension: false, platform: "node", }, + { + entry: ["src/hooks/bundled/*/handler.ts", "src/hooks/llm-slug-generator.ts"], + env, + fixedExtension: false, + platform: "node", + }, ]);