**Why** - We have some workflow-like flows in @medusajs/medusa. These should be moved over to the workflows package. - Inventory Items <> Variant currently assume a 1-1 mapping. There should be support for a many-to-many mapping. **What** - PR introduces a feature flag for supporting many-to-many mappings for inventory and variants. - Deletes legacy transaction handler in @medusajs/medusa. - Adjusts existing createInventoryItems handler to remove dependency on variant data. **Unkowns** ~~1. Couldn't find an existing test for the CreateProduct workflow. It should be tested that this still works as expected.~~ 2. Have removed transaction managers as we should move to handling consistency through orchestration tooling. Are we ready for that?
33 lines
969 B
JSON
33 lines
969 B
JSON
{
|
|
"name": "integration-tests-plugins",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"scripts": {
|
|
"test:integration": "jest --silent=false --runInBand --bail --detectOpenHandles --forceExit",
|
|
"build": "babel src -d dist --extensions \".ts,.js\""
|
|
},
|
|
"dependencies": {
|
|
"@medusajs/cache-inmemory": "workspace:*",
|
|
"@medusajs/event-bus-local": "workspace:*",
|
|
"@medusajs/inventory": "workspace:^",
|
|
"@medusajs/medusa": "workspace:*",
|
|
"@medusajs/product": "workspace:^",
|
|
"faker": "^5.5.3",
|
|
"medusa-fulfillment-webshipper": "workspace:*",
|
|
"medusa-interfaces": "workspace:*",
|
|
"medusa-plugin-sendgrid": "workspace:*",
|
|
"pg": "^8.11.0",
|
|
"typeorm": "^0.3.16"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.12.10",
|
|
"@babel/core": "^7.12.10",
|
|
"@babel/node": "^7.12.10",
|
|
"babel-preset-medusa-package": "*",
|
|
"jest": "^26.6.3",
|
|
"jest-environment-node": "26.6.2"
|
|
}
|
|
}
|