chore(framework): Initial commit (#8221)

**What**
- Initiate the framework package (which is just a place to move things around for now)
- move the config loader and related resources as well as the `ConfigModule` type
- Create a ConfigManager singleton which prepare and store the config (later can be stored entirely in the container) and allow for easier test override
- re export the logger from the framework
- replace medusa config loader with the framework one
- `build` run type check on tests as well but `prepublishOnly` will not fail on build if tests are typed broken

FIXES FRMW-2607
FIXES FRMW-2609
FIXES FRMW-2614
FIXES FRMW-2618
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-07-23 15:46:28 +00:00
1 parent 97f64a5cfe
commit 47dde05517
30 files changed
+1305 -170

No files matched your search

+22 -1
View File
@@ -4604,6 +4604,23 @@ __metadata:
languageName: unknown
linkType: soft
"@medusajs/framework@workspace:^, @medusajs/framework@workspace:packages/framework/framework":
version: 0.0.0-use.local
resolution: "@medusajs/framework@workspace:packages/framework/framework"
dependencies:
"@medusajs/medusa-cli": "workspace:^"
"@medusajs/types": "workspace:^"
"@medusajs/utils": "workspace:^"
awilix: ^8.0.0
cross-env: ^7.0.3
ioredis: ^5.2.5
rimraf: ^3.0.2
tsc-alias: ^1.8.6
typescript: ^5.1.6
vite: ^5.2.11
languageName: unknown
linkType: soft
"@medusajs/fulfillment-manual@workspace:*, @medusajs/fulfillment-manual@workspace:^, @medusajs/fulfillment-manual@workspace:packages/modules/providers/fulfillment-manual":
version: 0.0.0-use.local
resolution: "@medusajs/fulfillment-manual@workspace:packages/modules/providers/fulfillment-manual"
@@ -4743,7 +4760,7 @@ __metadata:
languageName: unknown
linkType: soft
"@medusajs/medusa-cli@^1.3.22, @medusajs/medusa-cli@workspace:packages/cli/medusa-cli":
"@medusajs/medusa-cli@^1.3.22, @medusajs/medusa-cli@workspace:^, @medusajs/medusa-cli@workspace:packages/cli/medusa-cli":
version: 0.0.0-use.local
resolution: "@medusajs/medusa-cli@workspace:packages/cli/medusa-cli"
dependencies:
@@ -4822,6 +4839,7 @@ __metadata:
"@inquirer/checkbox": ^2.3.11
"@medusajs/admin-sdk": 0.0.1
"@medusajs/core-flows": ^0.0.9
"@medusajs/framework": "workspace:^"
"@medusajs/link-modules": ^0.2.11
"@medusajs/medusa-cli": ^1.3.22
"@medusajs/modules-sdk": ^1.12.11
@@ -22694,6 +22712,7 @@ __metadata:
rimraf: ^3.0.2
typescript: ^5.1.6
peerDependencies:
"@medusajs/framework": "workspace:^"
"@medusajs/medusa": ">1.19"
"@medusajs/modules-sdk": ^1.12.10
axios: ^0.28.0
@@ -22701,6 +22720,8 @@ __metadata:
get-port: ^5.1.0
pg-god: ^1.0.12
peerDependenciesMeta:
"@medusajs/framework":
optional: true
"@medusajs/medusa":
optional: true
axios: