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:
Adrien de Peretti
2025-09-22 18:36:22 +02:00
committed by GitHub
co-authored by Oli Juhl
parent 55f89b2151
commit 12a96a7c70
349 changed files with 641 additions and 1062 deletions
@@ -1,7 +1,7 @@
import { InternalModuleDeclaration } from "@medusajs/types"
import { MODULE_SCOPE } from "../../types"
import { asValue } from "awilix"
import { asValue } from "@medusajs/deps/awilix"
import { MedusaModule } from "../../medusa-module"
const mockRegisterMedusaModule = jest.fn().mockImplementation(() => {
@@ -1,5 +1,5 @@
import { createMedusaContainer } from "@medusajs/utils"
import { asFunction, Lifetime } from "awilix"
import { asFunction, Lifetime } from "@medusajs/deps/awilix"
import { moduleProviderLoader } from "../module-provider-loader"
describe("modules loader", () => {
@@ -1,5 +1,5 @@
import { Logger, MedusaContainer, ModuleResolution } from "@medusajs/types"
import { asValue } from "awilix"
import { asValue } from "@medusajs/deps/awilix"
import { EOL } from "os"
import { MODULE_SCOPE } from "../types"
import { loadInternalModule } from "./utils"
@@ -7,7 +7,7 @@ import {
normalizeImportPathWithSource,
promiseAll,
} from "@medusajs/utils"
import { asFunction, Lifetime } from "awilix"
import { asFunction, Lifetime } from "@medusajs/deps/awilix"
export async function moduleProviderLoader({
container,
@@ -1,4 +1,4 @@
import { Entity, Property } from "@mikro-orm/core"
import { Entity, Property } from "@medusajs/deps/mikro-orm/core"
@Entity()
export class EntityModel {
@@ -1,4 +1,4 @@
import { Entity, Property } from "@mikro-orm/core"
import { Entity, Property } from "@medusajs/deps/mikro-orm/core"
@Entity()
export class Entity2 {
@@ -1,4 +1,4 @@
import { Entity, Property } from "@mikro-orm/core"
import { Entity, Property } from "@medusajs/deps/mikro-orm/core"
@Entity()
export class EntityModel {
@@ -1,4 +1,4 @@
import { Entity, Property } from "@mikro-orm/core"
import { Entity, Property } from "@medusajs/deps/mikro-orm/core"
@Entity()
export class Entity2 {
@@ -1,4 +1,4 @@
import { Entity, Property } from "@mikro-orm/core"
import { Entity, Property } from "@medusajs/deps/mikro-orm/core"
@Entity()
export class EntityModel {
@@ -31,7 +31,7 @@ import {
stringifyCircular,
toMikroOrmEntities,
} from "@medusajs/utils"
import { asFunction, asValue } from "awilix"
import { asFunction, asValue } from "@medusajs/deps/awilix"
import { statSync } from "fs"
import { readdir } from "fs/promises"
import { dirname, join, resolve } from "path"
+1 -1
View File
@@ -33,7 +33,7 @@ import {
promiseAll,
registerFeatureFlag,
} from "@medusajs/utils"
import { asValue } from "awilix"
import { asValue } from "@medusajs/deps/awilix"
import { Link } from "./link"
import {
MedusaModule,
@@ -18,7 +18,7 @@ import {
simpleHash,
stringifyCircular,
} from "@medusajs/utils"
import { asValue } from "awilix"
import { asValue } from "@medusajs/deps/awilix"
import { EOL } from "os"
import {
moduleLoader,