diff --git a/.gitignore b/.gitignore index 673cf809..e47c7fe1 100644 --- a/.gitignore +++ b/.gitignore @@ -151,4 +151,5 @@ packages/*/node_modules/ apps/*/.next/ apps/*/out/ apps/*/dist/ -./node_modules \ No newline at end of file +./node_modules +.vercel diff --git a/apps/.gitignore b/apps/.gitignore new file mode 100644 index 00000000..e985853e --- /dev/null +++ b/apps/.gitignore @@ -0,0 +1 @@ +.vercel diff --git a/apps/docs/next.config.ts b/apps/docs/next.config.ts new file mode 100644 index 00000000..40baa3ff --- /dev/null +++ b/apps/docs/next.config.ts @@ -0,0 +1,17 @@ +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = { + transpilePackages: [ + "@katanemo/ui", + "@katanemo/shared-styles", + "@katanemo/tailwind-config", + "@katanemo/tsconfig", + ], + experimental: { + // Ensure workspace packages are handled correctly + externalDir: true, + }, +}; + +export default nextConfig; + diff --git a/apps/www/next.config.ts b/apps/www/next.config.ts index 153ad666..b81793d1 100644 --- a/apps/www/next.config.ts +++ b/apps/www/next.config.ts @@ -7,6 +7,10 @@ const nextConfig: NextConfig = { "@katanemo/tailwind-config", "@katanemo/tsconfig", ], + experimental: { + // Ensure workspace packages are handled correctly + externalDir: true, + }, }; export default nextConfig; diff --git a/packages/ui/package.json b/packages/ui/package.json index 778ef2b5..3e931263 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -8,6 +8,18 @@ ".": { "types": "./src/index.ts", "default": "./src/index.ts" + }, + "./lib/utils": { + "types": "./src/lib/utils.ts", + "default": "./src/lib/utils.ts" + }, + "./components/*": { + "types": "./src/components/*.tsx", + "default": "./src/components/*.tsx" + }, + "./components/ui/*": { + "types": "./src/components/ui/*.tsx", + "default": "./src/components/ui/*.tsx" } }, "scripts": { diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index 0ec85736..4ddd44f2 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -3,7 +3,11 @@ "compilerOptions": { "outDir": "./dist", "rootDir": "./src", - "jsx": "react-jsx" + "jsx": "react-jsx", + "baseUrl": "./src", + "paths": { + "@/*": ["./*"] + } }, "include": ["src/**/*"], "exclude": ["node_modules", "dist"]