@medusajs/link-modules 0.2.12-preview-20240703090453 → 0.2.12-preview-20240703150459

Sign up to get free protection for your applications and to get access to all the features.
@@ -97,7 +97,7 @@ const initialize = async (options, modulesDefinition, injectedDependencies) => {
97
97
  key: serviceKey,
98
98
  registrationName: serviceKey,
99
99
  label: serviceKey,
100
- dependencies: [modules_sdk_1.ModuleRegistrationName.EVENT_BUS],
100
+ dependencies: [utils_1.ModuleRegistrationName.EVENT_BUS],
101
101
  defaultModuleDeclaration: {
102
102
  scope: modules_sdk_1.MODULE_SCOPE.INTERNAL,
103
103
  resources: injectedDependencies?.[utils_1.ContainerRegistrationKeys.PG_CONNECTION]
@@ -39,15 +39,18 @@ function getMigration(joinerConfig, serviceName, primary, foreign) {
39
39
  } else {
40
40
  logger.info(`Skipping "${tableName}" migration.`)
41
41
  }*/
42
- logger.info(`Link module "${serviceName}" table update skipped because the table already exists. Please write your own migration if needed.`);
42
+ // Note: Temporarily skipping this for handling no logs on the CI. Bring this back if necessary.
43
+ // logger.info(
44
+ // `Link module('${serviceName}'): Table already exists. Write your own migration if needed.`
45
+ // )
43
46
  }
44
47
  else {
45
48
  try {
46
49
  await generator.createSchema();
47
- logger.info(`Link module "${serviceName}" migration executed`);
50
+ logger.info(`Link module('${serviceName}'): Migration executed`);
48
51
  }
49
52
  catch (error) {
50
- logger.error(`Link module "${serviceName}" migration failed to run - Error: ${error.errros ?? error}`);
53
+ logger.error(`Link module('${serviceName}'): Migration failed - Error: ${error.errros ?? error}`);
51
54
  }
52
55
  }
53
56
  await orm.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/link-modules",
3
- "version": "0.2.12-preview-20240703090453",
3
+ "version": "0.2.12-preview-20240703150459",
4
4
  "description": "Medusa Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "test:integration": "jest --passWithNoTests"
30
30
  },
31
31
  "devDependencies": {
32
- "@medusajs/types": "1.12.0-preview-20240703090453",
32
+ "@medusajs/types": "1.12.0-preview-20240703150459",
33
33
  "cross-env": "^5.2.1",
34
34
  "jest": "^29.7.0",
35
35
  "pg-god": "^1.0.12",
@@ -39,8 +39,8 @@
39
39
  "typescript": "^5.1.6"
40
40
  },
41
41
  "dependencies": {
42
- "@medusajs/modules-sdk": "1.13.0-preview-20240703090453",
43
- "@medusajs/utils": "1.12.0-preview-20240703090453",
42
+ "@medusajs/modules-sdk": "1.13.0-preview-20240703150459",
43
+ "@medusajs/utils": "1.12.0-preview-20240703150459",
44
44
  "@mikro-orm/core": "5.9.7",
45
45
  "@mikro-orm/postgresql": "5.9.7",
46
46
  "awilix": "^8.0.0"