@pradip1995/framework-compiler 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ function buildBackendPackageJson({ medusa, plugins, projectName = "backend" }) {
21
21
  "@types/node": "^20.12.11",
22
22
  typescript: "^5.6.2",
23
23
  "ts-node": "^10.9.2",
24
+ "react-is": "^19.0.0",
24
25
  },
25
26
  engines: {
26
27
  node: ">=20",
@@ -63,6 +63,7 @@ function generateMedusaConfig({ enabledPlugins, preset = "full" }) {
63
63
  const usePaymentProvider =
64
64
  preset === "full" && hasPlugin(enabledPlugins, "medusa-payment-provider")
65
65
  const useCustomerRegistration = hasPlugin(enabledPlugins, "customer-registration")
66
+ const useSmtpPlugin = hasPlugin(enabledPlugins, "@tsc_tech/medusa-plugin-smtp")
66
67
 
67
68
  const fulfillmentProviders = useShiprocket
68
69
  ? ` providers: [
@@ -137,9 +138,8 @@ function generateMedusaConfig({ enabledPlugins, preset = "full" }) {
137
138
  : {}),`
138
139
  : ""
139
140
 
140
- const notificationModule =
141
- preset === "full"
142
- ? `
141
+ const notificationModule = useSmtpPlugin
142
+ ? `
143
143
  ...(process.env.SMTP_HOST
144
144
  ? {
145
145
  [Modules.NOTIFICATION]: {
@@ -165,7 +165,7 @@ function generateMedusaConfig({ enabledPlugins, preset = "full" }) {
165
165
  },
166
166
  }
167
167
  : {}),`
168
- : ""
168
+ : ""
169
169
 
170
170
  const fileModule =
171
171
  preset === "full"
@@ -50,6 +50,7 @@
50
50
  "medusa-customer-file-upload",
51
51
  "medusa-analytics",
52
52
  "medusa-export",
53
- "medusa-payment-provider"
53
+ "medusa-payment-provider",
54
+ "@tsc_tech/medusa-plugin-smtp"
54
55
  ]
55
56
  }
@@ -282,9 +282,10 @@ function syncBackendDynamicConfigFromBuild(pagesConfig) {
282
282
  })
283
283
 
284
284
  if (result.synced) {
285
- console.log(
286
- ` dynamic-config: synced ${result.fieldCount} field(s) to backend/config/homepage-config.json`
287
- )
285
+ const relPath = result.backendConfigPath
286
+ ? relative(join(clientDir, ".."), result.backendConfigPath)
287
+ : "backend/.generated-backend/config/homepage-config.json"
288
+ console.log(` dynamic-config: synced ${result.fieldCount} field(s) to ${relPath}`)
288
289
  for (const warning of result.warnings || []) {
289
290
  console.warn(` dynamic-config: ${warning}`)
290
291
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pradip1995/framework-compiler",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {