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
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -32,20 +32,15 @@
|
||||
"author": "Sebastian Rindom",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@mikro-orm/core": "6.5.4",
|
||||
"@mikro-orm/knex": "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",
|
||||
"@types/yargs": "^15.0.15",
|
||||
"awilix": "^8.0.1",
|
||||
"jest": "^29.7.0",
|
||||
"pg": "^8.16.3",
|
||||
"rimraf": "^5.0.1",
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/deps": "2.10.3",
|
||||
"@medusajs/telemetry": "2.10.3",
|
||||
"@medusajs/utils": "2.10.3",
|
||||
"@types/express": "^4.17.17",
|
||||
@@ -62,7 +57,6 @@
|
||||
"is-valid-path": "^0.1.1",
|
||||
"meant": "^1.0.3",
|
||||
"ora": "^5.4.1",
|
||||
"pg": "^8.16.3",
|
||||
"pg-god": "^1.0.12",
|
||||
"prompts": "^2.4.2",
|
||||
"resolve-cwd": "^3.0.0",
|
||||
@@ -71,13 +65,5 @@
|
||||
"winston": "^3.8.2",
|
||||
"yargs": "^15.3.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@mikro-orm/core": "6.5.4",
|
||||
"@mikro-orm/knex": "6.5.4",
|
||||
"@mikro-orm/migrations": "6.5.4",
|
||||
"@mikro-orm/postgresql": "6.5.4",
|
||||
"awilix": "^8.0.1",
|
||||
"pg": "^8.16.3"
|
||||
},
|
||||
"gitHead": "81a7ff73d012fda722f6e9ef0bd9ba0232d37808"
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import isValid from "is-valid-path"
|
||||
import sysPath from "path"
|
||||
import path from "path"
|
||||
import prompts from "prompts"
|
||||
import { Pool } from "pg"
|
||||
import { Pool } from "@medusajs/deps/pg"
|
||||
import url from "url"
|
||||
import { track } from "@medusajs/telemetry"
|
||||
// @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user