Skip to content

Commit

Permalink
fix tiptap issues, update dependencies, fix typescript issues with mi…
Browse files Browse the repository at this point in the history
…nio client
  • Loading branch information
AmruthPillai committed May 3, 2024
1 parent 458af1d commit 8deff75
Show file tree
Hide file tree
Showing 13 changed files with 14,437 additions and 11,370 deletions.
2 changes: 1 addition & 1 deletion .ncurc.json
Expand Up @@ -2,5 +2,5 @@
"$schema": "https://raw.githubusercontent.com/raineorshine/npm-check-updates/main/src/types/RunOptions.json",
"upgrade": true,
"install": "always",
"reject": ["eslint", "@nestjs-modules/mailer"]
"reject": ["eslint"]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Expand Up @@ -10,5 +10,6 @@
"tools/compose/*"
]
},
"i18n-ally.localesPaths": ["apps/client/src/locales"]
"i18n-ally.localesPaths": ["apps/client/src/locales"],
"vitest.disableWorkspaceWarning": true
}
6 changes: 5 additions & 1 deletion apps/server/src/config/schema.ts
Expand Up @@ -26,7 +26,11 @@ export const configSchema = z.object({

// Mail Server
MAIL_FROM: z.string().includes("@").optional().default("noreply@localhost"),
SMTP_URL: z.string().url().refine(url => url.startsWith("smtp://") || url.startsWith("smtps://")).optional(),
SMTP_URL: z
.string()
.url()
.refine((url) => url.startsWith("smtp://") || url.startsWith("smtps://"))
.optional(),

// Storage
STORAGE_ENDPOINT: z.string(),
Expand Down
5 changes: 2 additions & 3 deletions apps/server/src/storage/storage.service.ts
Expand Up @@ -3,8 +3,7 @@ import { ConfigService } from "@nestjs/config";
import { createId } from "@paralleldrive/cuid2";
import { RedisService } from "@songkeys/nestjs-redis";
import { Redis } from "ioredis";
import { Client } from "minio";
import { MinioService } from "nestjs-minio-client";
import { MinioClient, MinioService } from "nestjs-minio-client";
import sharp from "sharp";

import { Config } from "../config/schema";
Expand Down Expand Up @@ -41,7 +40,7 @@ export class StorageService implements OnModuleInit {
private readonly redis: Redis;
private readonly logger = new Logger(StorageService.name);

private client: Client;
private client: MinioClient;
private bucketName: string;

private skipCreateBucket: boolean;
Expand Down
2 changes: 0 additions & 2 deletions libs/dto/package.json
Expand Up @@ -9,8 +9,6 @@
"access": "public"
},
"dependencies": {
"@swc/helpers": "~0.5.6",
"nestjs-zod": "^3.0.0",
"@reactive-resume/utils": "*",
"@reactive-resume/schema": "*"
}
Expand Down
7 changes: 1 addition & 6 deletions libs/parser/package.json
Expand Up @@ -9,12 +9,7 @@
"access": "public"
},
"dependencies": {
"@swc/helpers": "~0.5.6",
"@reactive-resume/schema": "*",
"nestjs-zod": "^3.0.0",
"zod": "^3.22.4",
"@paralleldrive/cuid2": "^2.2.2",
"@reactive-resume/utils": "*",
"jszip": "^3.10.1"
"@reactive-resume/utils": "*"
}
}
5 changes: 1 addition & 4 deletions libs/schema/package.json
Expand Up @@ -9,9 +9,6 @@
"access": "public"
},
"dependencies": {
"@swc/helpers": "~0.5.6",
"zod": "^3.22.4",
"@reactive-resume/utils": "*",
"@paralleldrive/cuid2": "^2.2.2"
"@reactive-resume/utils": "*"
}
}
15 changes: 15 additions & 0 deletions libs/ui/package.json
Expand Up @@ -12,5 +12,20 @@
"import": "./index.mjs",
"require": "./index.js"
}
},
"dependencies": {
"@tiptap/extension-bold": "^2.3.1",
"@tiptap/extension-bullet-list": "^2.3.1",
"@tiptap/extension-code": "^2.3.1",
"@tiptap/extension-code-block": "^2.3.1",
"@tiptap/extension-hard-break": "^2.3.1",
"@tiptap/extension-heading": "^2.3.1",
"@tiptap/extension-history": "^2.3.1",
"@tiptap/extension-horizontal-rule": "^2.3.1",
"@tiptap/extension-italic": "^2.3.1",
"@tiptap/extension-list-item": "^2.3.1",
"@tiptap/extension-ordered-list": "^2.3.1",
"@tiptap/extension-paragraph": "^2.3.1",
"@tiptap/extension-strike": "^2.3.1"
}
}

0 comments on commit 8deff75

Please sign in to comment.