From 2f30d1b63f0bf881ea05460026e25c05db448431 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Thu, 12 Jan 2023 14:30:32 +0100 Subject: [PATCH] avatar build fix --- apps/web/package.json | 1 - apps/web/tsconfig.json | 9 +++++++-- package-lock.json | 2 -- packages/types/avatar-from-initials.d.ts | 4 ++++ 4 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 packages/types/avatar-from-initials.d.ts diff --git a/apps/web/package.json b/apps/web/package.json index 91bf26b37..5d9cc78e9 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -16,7 +16,6 @@ "@tailwindcss/forms": "^0.5.3", "@types/bcryptjs": "^2.4.2", "@types/node": "18.11.9", - "@types/react": "18.0.25", "@types/react-dom": "18.0.9", "avatar-from-initials": "^1.0.3", "bcryptjs": "^2.4.3", diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index 99710e857..7a3be80d7 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -15,6 +15,11 @@ "jsx": "preserve", "incremental": true }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "../../packages/types/*.d.ts" + ], + "exclude": ["node_modules", "../../packages/types/next-auth.d.ts"] } diff --git a/package-lock.json b/package-lock.json index 11d201fd5..2d885a11c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,6 @@ "@tailwindcss/forms": "^0.5.3", "@types/bcryptjs": "^2.4.2", "@types/node": "18.11.9", - "@types/react": "18.0.25", "@types/react-dom": "18.0.9", "avatar-from-initials": "^1.0.3", "bcryptjs": "^2.4.3", @@ -6972,7 +6971,6 @@ "@tailwindcss/forms": "^0.5.3", "@types/bcryptjs": "^2.4.2", "@types/node": "18.11.9", - "@types/react": "18.0.25", "@types/react-dom": "18.0.9", "autoprefixer": "^10.4.13", "avatar-from-initials": "^1.0.3", diff --git a/packages/types/avatar-from-initials.d.ts b/packages/types/avatar-from-initials.d.ts new file mode 100644 index 000000000..782434374 --- /dev/null +++ b/packages/types/avatar-from-initials.d.ts @@ -0,0 +1,4 @@ +declare module "avatar-from-initials" { + import avatarFromInitials from "../../node_modules/avatar-from-initials/index"; + export default avatarFromInitials; +}