Add @customer-portal/domain dependency to portal and configure transpilation

This commit is contained in:
barsa 2025-10-20 14:56:28 +09:00
parent 7420b77202
commit d041831434
3 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const nextConfig = {
output: process.env.NODE_ENV === "production" ? "standalone" : undefined,
// Ensure workspace package resolves/transpiles correctly in monorepo
transpilePackages: [],
transpilePackages: ["@customer-portal/domain"],
experimental: {
externalDir: true,
},

View File

@ -18,6 +18,7 @@
"bundle-analyze": "npm run build:analyze && npx @next/bundle-analyzer"
},
"dependencies": {
"@customer-portal/domain": "workspace:*",
"@customer-portal/logging": "workspace:*",
"@customer-portal/validation": "workspace:*",
"@heroicons/react": "^2.2.0",

3
pnpm-lock.yaml generated
View File

@ -252,6 +252,9 @@ importers:
apps/portal:
dependencies:
'@customer-portal/domain':
specifier: workspace:*
version: link:../../packages/domain
'@customer-portal/logging':
specifier: workspace:*
version: link:../../packages/logging