chore(): Move peer deps into a single package and re export from framework (#13439)
* chore(): Move peer deps into a single package and re export from framework * WIP * update core packages * update cli and deps * update medusa * update exports path * remove analyze * update modules deps * finalise changes * fix yarn * fix import * Refactor peer dependencies into a single package Consolidate peer dependencies into one package and re-export from the framework. * update changeset * Update .changeset/brown-cows-sleep.md Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> * rm deps * fix deps * increase timeout * upgrade version * update versions * update versions * fixes * update lock * fix missing import * fix missing import --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
55f89b2151
commit
12a96a7c70
@@ -1,5 +1,5 @@
|
||||
import { ModuleServiceInitializeOptions } from "@medusajs/types"
|
||||
import { knex } from "@mikro-orm/postgresql"
|
||||
import { knex } from "@medusajs/deps/mikro-orm/postgresql"
|
||||
|
||||
type Options = ModuleServiceInitializeOptions["database"]
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
RepositoryService,
|
||||
} from "@medusajs/types"
|
||||
|
||||
import { asClass } from "awilix"
|
||||
import { asClass } from "@medusajs/deps/awilix"
|
||||
import { MedusaInternalService } from "../medusa-internal-service"
|
||||
import { lowerCaseFirst } from "../../common"
|
||||
import {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { Logger, MedusaContainer, ModulesSdkTypes } from "@medusajs/types"
|
||||
import { PostgreSqlDriver, SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { asValue } from "awilix"
|
||||
import {
|
||||
PostgreSqlDriver,
|
||||
SqlEntityManager,
|
||||
} from "@medusajs/deps/mikro-orm/postgresql"
|
||||
import { asValue } from "@medusajs/deps/awilix"
|
||||
import { ContainerRegistrationKeys, MedusaError } from "../../common"
|
||||
import { mikroOrmCreateConnection } from "../../dal"
|
||||
import { isSharedConnectionSymbol } from "../create-pg-connection"
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
type EntityClass,
|
||||
type EntityManager,
|
||||
type EntitySchema,
|
||||
} from "@mikro-orm/core"
|
||||
} from "@medusajs/deps/mikro-orm/core"
|
||||
import {
|
||||
isDefined,
|
||||
isObject,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { LoaderOptions, Logger, ModulesSdkTypes } from "@medusajs/types"
|
||||
import { EntitySchema } from "@mikro-orm/core"
|
||||
import { EntitySchema } from "@medusajs/deps/mikro-orm/core"
|
||||
import { EOL } from "os"
|
||||
import { resolve } from "path"
|
||||
import { dynamicImport, isFileSkipped } from "../../common"
|
||||
|
||||
@@ -4,8 +4,8 @@ import type {
|
||||
EntityClassGroup,
|
||||
EntitySchema,
|
||||
MikroORMOptions,
|
||||
} from "@mikro-orm/core"
|
||||
import { defineConfig } from "@mikro-orm/postgresql"
|
||||
} from "@medusajs/deps/mikro-orm/core"
|
||||
import { defineConfig } from "@medusajs/deps/mikro-orm/postgresql"
|
||||
import { kebabCase } from "../common"
|
||||
import { CustomDBMigrator, CustomTsMigrationGenerator } from "../dal"
|
||||
import { DmlEntity, toMikroOrmEntities } from "../dml"
|
||||
|
||||
Reference in New Issue
Block a user