Chore/framework 6/n (#8356)

**What**
Refactor and improve job loader as well as move it to the framework

FIXES FRMW-2626
This commit is contained in:
Adrien de Peretti
2024-07-31 11:17:17 +02:00
committed by GitHub
parent 838eb0e34a
commit 6ccf83128c
13 changed files with 215 additions and 126 deletions

View File

@@ -12,7 +12,8 @@
"./config": "./dist/config/index.js",
"./logger": "./dist/logger/index.js",
"./database": "./dist/database/index.js",
"./subscribers": "./dist/subscribers/index.js"
"./subscribers": "./dist/subscribers/index.js",
"./jobs": "./dist/jobs/index.js"
},
"engines": {
"node": ">=20"
@@ -30,8 +31,8 @@
"scripts": {
"watch": "tsc --watch -p ./tsconfig.build.json",
"watch:test": "tsc --build tsconfig.spec.json --watch",
"prepublishOnly": "cross-env NODE_ENV=production tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json",
"build": "rimraf dist && tsc --build && tsc-alias",
"prepublishOnly": "tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json",
"build": "rimraf dist && tsc --noEmit && yarn prepublishOnly",
"test": "jest --runInBand --bail --passWithNoTests --forceExit -- src",
"test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts"
},
@@ -47,6 +48,7 @@
"dependencies": {
"@medusajs/medusa-cli": "^1.3.22",
"@medusajs/utils": "^1.11.9",
"@medusajs/workflows-sdk": "^0.1.6",
"awilix": "^8.0.0",
"cookie-parser": "^1.4.6",
"express": "^4.18.2",