@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.
|
@@ -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
|
-
|
|
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"
|
package/bin/storefront-build.js
CHANGED
|
@@ -282,9 +282,10 @@ function syncBackendDynamicConfigFromBuild(pagesConfig) {
|
|
|
282
282
|
})
|
|
283
283
|
|
|
284
284
|
if (result.synced) {
|
|
285
|
-
|
|
286
|
-
|
|
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
|
}
|