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:
co-authored by
Oli Juhl
parent
55f89b2151
commit
12a96a7c70
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user