FIXES: FRMW-2727 MikroORM (with version 5.9) has [hardcoded the TypeScript module](https://github.com/mikro-orm/mikro-orm/blob/5.x/packages/core/src/utils/ConfigurationLoader.ts#L138-L139) system to `commonjs`, which makes it incompatible with the module system we are using, ie `Node16`. So, in order to continue using the Mikro ORM CLI within our modules, we will have to monkey-patch the block of code responsible for configuring `ts-node`. However, the monkey-patching must be done before their CLI gets booted. As a result of this, we have to create a wrapper CLI on top of Mikro ORM CLI that performs the following steps. - Monkey-patch the relevant code - Register Mikro ORM CLI as the second step. Due do this, we will have to use this new wrapper CLI within the modules, which is exposed as `medusa-db`. Maybe, `medusa-db` is not a great name, so please send your suggestions.
116 lines
3.1 KiB
JSON
116 lines
3.1 KiB
JSON
{
|
|
"name": "@medusajs/framework",
|
|
"version": "0.0.1",
|
|
"description": "Framework",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"!dist/**/__tests__",
|
|
"!dist/**/__mocks__",
|
|
"!dist/**/__fixtures__"
|
|
],
|
|
"bin": {
|
|
"medusa-mikro-orm": "./dist/mikro-orm-cli/bin.js"
|
|
},
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./config": "./dist/config/index.js",
|
|
"./logger": "./dist/logger/index.js",
|
|
"./database": "./dist/database/index.js",
|
|
"./subscribers": "./dist/subscribers/index.js",
|
|
"./workflows": "./dist/workflows/index.js",
|
|
"./links": "./dist/links/index.js",
|
|
"./jobs": "./dist/jobs/index.js",
|
|
"./http": "./dist/http/index.js",
|
|
"./telemetry": "./dist/telemetry/index.js",
|
|
"./feature-flags": "./dist/feature-flags/index.js",
|
|
"./utils": "./dist/utils/index.js",
|
|
"./types": "./dist/types/index.js",
|
|
"./orchestration": "./dist/orchestration/index.js",
|
|
"./workflows-sdk": "./dist/workflows-sdk/index.js",
|
|
"./workflows-sdk/composer": "./dist/workflows-sdk/composer.js",
|
|
"./modules-sdk": "./dist/modules-sdk/index.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/medusajs/medusa",
|
|
"directory": "packages/core/framework"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"author": "Medusa",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"watch": "tsc --watch ",
|
|
"watch:test": "tsc --watch",
|
|
"build": "rimraf dist && tsc --build",
|
|
"test": "jest --runInBand --bail --passWithNoTests --forceExit"
|
|
},
|
|
"devDependencies": {
|
|
"@medusajs/medusa-cli": "^1.3.22",
|
|
"@mikro-orm/core": "5.9.7",
|
|
"@mikro-orm/knex": "5.9.7",
|
|
"@mikro-orm/migrations": "5.9.7",
|
|
"@mikro-orm/postgresql": "5.9.7",
|
|
"@swc/core": "^1.7.28",
|
|
"@swc/jest": "^0.2.36",
|
|
"@types/express": "^4.17.17",
|
|
"@types/jsonwebtoken": "^8.5.9",
|
|
"awilix": "^8.0.1",
|
|
"ioredis": "^5.4.1",
|
|
"jest": "^29.7.0",
|
|
"pg": "^8.13.0",
|
|
"rimraf": "^3.0.2",
|
|
"supertest": "^4.0.2",
|
|
"typescript": "^5.6.2",
|
|
"vite": "^5.2.11"
|
|
},
|
|
"dependencies": {
|
|
"@jercle/yargonaut": "^1.1.5",
|
|
"@medusajs/modules-sdk": "^1.12.11",
|
|
"@medusajs/orchestration": "^0.5.7",
|
|
"@medusajs/types": "^1.11.16",
|
|
"@medusajs/utils": "^1.11.9",
|
|
"@medusajs/workflows-sdk": "^0.1.6",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"connect-redis": "5.2.0",
|
|
"cookie-parser": "^1.4.6",
|
|
"cors": "^2.8.5",
|
|
"express": "^4.21.0",
|
|
"express-session": "^1.17.3",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"medusa-telemetry": "^0.0.17",
|
|
"morgan": "^1.9.1",
|
|
"tsconfig-paths": "^4.2.0",
|
|
"zod": "3.22.4"
|
|
},
|
|
"peerDependencies": {
|
|
"@medusajs/medusa-cli": "^1.3.22",
|
|
"@mikro-orm/cli": "5.9.7",
|
|
"@mikro-orm/core": "5.9.7",
|
|
"@mikro-orm/knex": "5.9.7",
|
|
"@mikro-orm/migrations": "5.9.7",
|
|
"@mikro-orm/postgresql": "5.9.7",
|
|
"awilix": "^8.0.1",
|
|
"ioredis": "^5.4.1",
|
|
"pg": "^8.13.0",
|
|
"vite": "^5.2.11"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@mikro-orm/cli": {
|
|
"optional": true
|
|
},
|
|
"ioredis": {
|
|
"optional": true
|
|
},
|
|
"vite": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|