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 PerettiandOli Juhl authored and GitHub committed 2025-09-22 18:36:22 +02:00
1 parent 55f89b2151
commit 12a96a7c70
349 files changed
+641 -1062

No files matched your search

@@ -3,7 +3,7 @@ import {
ProductStatus,
toMikroORMEntity,
} from "@medusajs/framework/utils"
import { SqlEntityManager } from "@mikro-orm/postgresql"
import { SqlEntityManager } from "@medusajs/framework/mikro-orm/postgresql"
import {
ProductImage,
Product,
@@ -20,7 +20,7 @@ import {
toMikroORMEntity,
} from "@medusajs/framework/utils"
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
import { SqlEntityManager } from "@mikro-orm/postgresql"
import { SqlEntityManager } from "@medusajs/framework/mikro-orm/postgresql"
import {
ProductCategoryService,
ProductModuleService,
+1 -9
View File
@@ -38,10 +38,6 @@
"devDependencies": {
"@medusajs/framework": "2.10.3",
"@medusajs/test-utils": "2.10.3",
"@mikro-orm/cli": "6.5.4",
"@mikro-orm/core": "6.5.4",
"@mikro-orm/migrations": "6.5.4",
"@mikro-orm/postgresql": "6.5.4",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"faker": "^5.5.3",
@@ -51,10 +47,6 @@
"typescript": "^5.6.2"
},
"peerDependencies": {
"@medusajs/framework": "2.10.3",
"@mikro-orm/core": "6.5.4",
"@mikro-orm/migrations": "6.5.4",
"@mikro-orm/postgresql": "6.5.4",
"awilix": "^8.0.1"
"@medusajs/framework": "2.10.3"
}
}
@@ -1,4 +1,4 @@
import { Migration } from "@mikro-orm/migrations"
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
export class InitialSetup20240315083440 extends Migration {
async up(): Promise<void> {
@@ -1,4 +1,4 @@
import { Migration } from "@mikro-orm/migrations"
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
export class Migration20240601111544 extends Migration {
async up(): Promise<void> {
@@ -1,4 +1,4 @@
import { Migration } from "@mikro-orm/migrations"
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
export class Migration202408271511 extends Migration {
async up(): Promise<void> {
@@ -1,4 +1,4 @@
import { Migration } from '@mikro-orm/migrations';
import { Migration } from "@medusajs/framework/mikro-orm/migrations";
export class Migration20241122120331 extends Migration {
@@ -1,4 +1,4 @@
import { Migration } from "@mikro-orm/migrations"
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
export class Migration20241125090957 extends Migration {
async up(): Promise<void> {
@@ -1,4 +1,4 @@
import { Migration } from '@mikro-orm/migrations';
import { Migration } from "@medusajs/framework/mikro-orm/migrations";
export class Migration20250411073236 extends Migration {
@@ -1,4 +1,4 @@
import { Migration } from '@mikro-orm/migrations';
import { Migration } from "@medusajs/framework/mikro-orm/migrations";
export class Migration20250516081326 extends Migration {
@@ -6,8 +6,11 @@ import {
ProductTypes,
} from "@medusajs/framework/types"
import { DALUtils, isDefined, MedusaError } from "@medusajs/framework/utils"
import { FindOptions as MikroOptions, LoadStrategy } from "@mikro-orm/core"
import { SqlEntityManager } from "@mikro-orm/postgresql"
import {
LoadStrategy,
FindOptions as MikroOptions,
} from "@medusajs/framework/mikro-orm/core"
import { SqlEntityManager } from "@medusajs/framework/mikro-orm/postgresql"
import { ProductCategory } from "@models"
import { UpdateCategoryInput } from "@types"
@@ -11,7 +11,10 @@ import {
isDefined,
deepCopy,
} from "@medusajs/framework/utils"
import { SqlEntityManager, wrap } from "@mikro-orm/postgresql"
import {
SqlEntityManager,
wrap,
} from "@medusajs/framework/mikro-orm/postgresql"
export class ProductRepository extends DALUtils.mikroOrmBaseRepositoryFactory(
Product