Skip to content

Commit

Permalink
refactor: temporary make the logger export work with both packages
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 16, 2024
1 parent 87810fb commit a99cd49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/framework/src/logger/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import logger from "@medusajs/cli/dist/reporter"
let logger
try {
logger = require("@medusajs/cli/dist/reporter")
} catch {
logger = require("@medusajs/medusa-cli/dist/reporter")
}

export { logger }

0 comments on commit a99cd49

Please sign in to comment.