chore: update package dependencies and adjust GraphQL upload imports

- Updated various package dependencies in package-lock.json and package.json for improved stability and performance.
- Changed import paths for graphql-upload to use .mjs extensions, ensuring compatibility with ES modules.
- Added @types/graphql-upload to package.json for better TypeScript support.
- Adjusted Jest configuration for improved readability and maintainability.
This commit is contained in:
2024-12-07 19:54:37 +07:00
parent 14a91a1885
commit 16f6f8a629
5 changed files with 1256 additions and 469 deletions

View File

@@ -4,7 +4,8 @@ import { AppModule } from './app.module'
import { Logger } from '@nestjs/common'
import { NestFactory } from '@nestjs/core'
import { clerkMiddleware } from '@clerk/express'
import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.js'
// @ts-expect-error
import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.mjs'
import path from 'node:path'
import { readFileSync } from 'node:fs'
import { json } from 'express'