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

@@ -5,8 +5,10 @@ import SmartSubscriptionPlugin, { subscribeOptionsFromIterator } from '@pothos/p
import ZodPlugin from '@pothos/plugin-zod'
import AuthzPlugin from '@pothos/plugin-authz'
import ErrorsPlugin from '@pothos/plugin-errors'
import type { FileUpload } from 'graphql-upload/processRequest.js'
import GraphQLUpload from 'graphql-upload/GraphQLUpload.js'
// @ts-expect-error
import type { FileUpload } from 'graphql-upload/processRequest.mjs'
// @ts-expect-error
import GraphQLUpload from 'graphql-upload/GraphQLUpload.mjs'
import { Injectable, Logger } from '@nestjs/common'
import { PrismaCrudGenerator } from './graphql.generator'
import type PrismaTypes from '../types/pothos.generated'