chore: Update modules deps (#9286)
This commit is contained in:
committed by
GitHub
parent
11d8264062
commit
e096feb7d5
@@ -3,7 +3,7 @@ import {
|
||||
IEventBusModuleService,
|
||||
Message,
|
||||
Subscriber,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
|
||||
export class EventBusServiceMock implements IEventBusModuleService {
|
||||
protected readonly subscribers_: Map<string | symbol, Set<Subscriber>> =
|
||||
|
||||
@@ -4,13 +4,13 @@ import {
|
||||
logger,
|
||||
MedusaAppLoader,
|
||||
} from "@medusajs/framework"
|
||||
import { MedusaAppOutput, MedusaModule } from "@medusajs/modules-sdk"
|
||||
import { EventBusTypes, IndexTypes } from "@medusajs/types"
|
||||
import { MedusaAppOutput, MedusaModule } from "@medusajs/framework/modules-sdk"
|
||||
import { EventBusTypes, IndexTypes } from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
ModuleRegistrationName,
|
||||
Modules,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { EntityManager } from "@mikro-orm/postgresql"
|
||||
import { IndexData, IndexRelation } from "@models"
|
||||
import { asValue } from "awilix"
|
||||
|
||||
@@ -4,13 +4,13 @@ import {
|
||||
logger,
|
||||
MedusaAppLoader,
|
||||
} from "@medusajs/framework"
|
||||
import { MedusaAppOutput, MedusaModule } from "@medusajs/modules-sdk"
|
||||
import { IndexTypes } from "@medusajs/types"
|
||||
import { MedusaAppOutput, MedusaModule } from "@medusajs/framework/modules-sdk"
|
||||
import { IndexTypes } from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
ModuleRegistrationName,
|
||||
Modules,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { EntityManager } from "@mikro-orm/postgresql"
|
||||
import { IndexData, IndexRelation } from "@models"
|
||||
import { asValue } from "awilix"
|
||||
@@ -65,7 +65,6 @@ const beforeAll_ = async () => {
|
||||
;(index as any).eventBusModuleService_ = eventBusMock
|
||||
|
||||
await globalApp.onApplicationStart()
|
||||
|
||||
;(index as any).storageProvider_.query_ = queryMock
|
||||
|
||||
return globalApp
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineMikroOrmCliConfig, Modules } from "@medusajs/utils"
|
||||
import { defineMikroOrmCliConfig, Modules } from "@medusajs/framework/utils"
|
||||
import * as entities from "./src/models"
|
||||
|
||||
export default defineMikroOrmCliConfig(Modules.INDEX, {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/types": "^1.11.16",
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^29.7.0",
|
||||
@@ -47,10 +47,8 @@
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/utils": "^1.11.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
"@mikro-orm/postgresql": "5.9.7",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IndexModuleService } from "@services"
|
||||
import { Module, Modules } from "@medusajs/utils"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import containerLoader from "./loaders/index"
|
||||
|
||||
export default Module(Modules.INDEX, {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { asClass, asValue } from "awilix"
|
||||
import { PostgresProvider } from "../services/postgres-provider"
|
||||
import { MikroOrmBaseRepository as BaseRepository } from "@medusajs/utils"
|
||||
import { MikroOrmBaseRepository as BaseRepository } from "@medusajs/framework/utils"
|
||||
import { IndexModuleService } from "@services"
|
||||
import { LoaderOptions } from "@medusajs/types"
|
||||
import { LoaderOptions } from "@medusajs/framework/types"
|
||||
|
||||
export default async ({ container, options }: LoaderOptions): Promise<void> => {
|
||||
container.register({
|
||||
|
||||
@@ -4,12 +4,12 @@ import {
|
||||
IndexTypes,
|
||||
InternalModuleDeclaration,
|
||||
RemoteQueryFunction,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
MikroOrmBaseRepository as BaseRepository,
|
||||
Modules,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { schemaObjectRepresentationPropertiesToOmit } from "@types"
|
||||
import { buildSchemaObjectRepresentation } from "../utils/build-config"
|
||||
import { defaultSchema } from "../utils/default-schema"
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
IndexTypes,
|
||||
RemoteQueryFunction,
|
||||
Subscriber,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
InjectManager,
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
isDefined,
|
||||
MedusaContext,
|
||||
MikroOrmBaseRepository as BaseRepository,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { EntityManager, SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { IndexData, IndexRelation } from "@models"
|
||||
import { createPartitions, QueryBuilder } from "../utils"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { makeExecutableSchema } from "@graphql-tools/schema"
|
||||
import { MedusaModule } from "@medusajs/modules-sdk"
|
||||
import { MedusaModule } from "@medusajs/framework/modules-sdk"
|
||||
import {
|
||||
IndexTypes,
|
||||
JoinerServiceConfigAlias,
|
||||
ModuleJoinerConfig,
|
||||
ModuleJoinerRelationship,
|
||||
} from "@medusajs/types"
|
||||
import { CommonEvents, GraphQLUtils } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import { CommonEvents, GraphQLUtils } from "@medusajs/framework/utils"
|
||||
import { schemaObjectRepresentationPropertiesToOmit } from "@types"
|
||||
|
||||
export const CustomDirectives = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { schemaObjectRepresentationPropertiesToOmit } from "@types"
|
||||
import { IndexTypes } from "@medusajs/types"
|
||||
import { IndexTypes } from "@medusajs/framework/types"
|
||||
|
||||
export async function createPartitions(
|
||||
schemaObjectRepresentation: IndexTypes.SchemaObjectRepresentation,
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import { join } from "path"
|
||||
import { CustomDirectives, makeSchemaExecutable } from "./build-config"
|
||||
import { MedusaModule } from "@medusajs/framework/modules-sdk"
|
||||
import {
|
||||
MedusaModule,
|
||||
} from "@medusajs/modules-sdk"
|
||||
import { FileSystem, gqlSchemaToTypes as ModulesSdkGqlSchemaToTypes, } from "@medusajs/utils"
|
||||
FileSystem,
|
||||
gqlSchemaToTypes as ModulesSdkGqlSchemaToTypes,
|
||||
} from "@medusajs/framework/utils"
|
||||
import * as process from "process"
|
||||
|
||||
export async function gqlSchemaToTypes(schema: string) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { objectFromStringPath } from "@medusajs/utils"
|
||||
import { objectFromStringPath } from "@medusajs/framework/utils"
|
||||
|
||||
export function normalizeFieldsSelection(fields: string[]) {
|
||||
const normalizedFields = fields.map((field) => field.replace(/\.\*/g, ""))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { isObject, isString } from "@medusajs/utils"
|
||||
import { IndexTypes } from "@medusajs/types"
|
||||
import { isObject, isString } from "@medusajs/framework/utils"
|
||||
import { IndexTypes } from "@medusajs/framework/types"
|
||||
import { GraphQLList } from "graphql"
|
||||
import { Knex } from "knex"
|
||||
import { OrderBy, QueryFormat, QueryOptions, Select } from "@types"
|
||||
|
||||
Reference in New Issue
Block a user