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
parent 55f89b2151
commit 12a96a7c70
349 changed files with 641 additions and 1062 deletions

View File

@@ -13,6 +13,7 @@
"watch": "tsc --watch"
},
"dependencies": {
"@medusajs/deps": "2.10.3",
"@medusajs/telemetry": "2.10.3",
"boxen": "^5",
"chalk": "^5.2.0",
@@ -23,7 +24,6 @@
"node-fetch": "^3.3.1",
"open": "^9.1.0",
"ora": "^6.3.0",
"pg": "^8.16.3",
"slugify": "^1.6.6",
"uuid": "^9.0.0",
"validator": "^13.9.0",
@@ -37,7 +37,6 @@
"@types/inquirer": "^9.0.3",
"@types/node": "^20.12.11",
"@types/node-emoji": "^1.8.2",
"@types/pg": "^8.6.6",
"@types/uuid": "^9.0.1",
"@types/validator": "^13.7.17",
"@types/wait-on": "^5.3.1",

View File

@@ -1,5 +1,5 @@
import { EOL } from "os"
import pg from "pg"
import type pg from "@medusajs/deps/pg"
import postgresClient, {
DEFAULT_HOST,
DEFAULT_PORT,

View File

@@ -1,6 +1,6 @@
import pg from "pg"
import pg from "@medusajs/deps/pg"
const { Client } = pg
const { Client } = pg as any
export const DEFAULT_HOST = "localhost"
export const DEFAULT_PORT = 5432

View File

@@ -5,7 +5,7 @@ import execute from "./execute.js"
import { EOL } from "os"
import { displayFactBox, FactBoxOptions } from "./facts.js"
import ProcessManager from "./process-manager.js"
import type { Client } from "pg"
import type { Client } from "@medusajs/deps/pg"
import PackageManager from "./package-manager.js"
import { updatePackageVersions } from "./update-package-versions.js"