Skip to content

The Open Source DocuSign Alternative.

avatar build fix

Timur Ercan2f30d1b63f0b
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;
+}