You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Since we've just installed the dependencies, we can read the default config of each extension
1015
+
constpathToDefaultConfig=p.join(
1016
+
outputDir,
1017
+
'node_modules',
1018
+
extension,
1019
+
'config',
1020
+
'default.json'
1024
1021
)
1025
-
// Return a minimal default config. It should match what's defined in: https://github.com/SalesforceCommerceCloud/pwa-kit/blob/310e946bed12fd4cbb42a209ee6982e9b1bb9b99/packages/pwa-kit-extension-sdk/src/shared/utils/helpers.ts#L13-L15
1026
-
return[extension,{enabled: true}]
1027
-
}
1022
+
if(!fs.existsSync(pathToDefaultConfig)){
1023
+
console.warn(
1024
+
`The extension ${extension} does not have a default config. Will generate a minimal default config for it.`
1025
+
)
1026
+
// Return a minimal default config. It should match what's defined in: https://github.com/SalesforceCommerceCloud/pwa-kit/blob/310e946bed12fd4cbb42a209ee6982e9b1bb9b99/packages/pwa-kit-extension-sdk/src/shared/utils/helpers.ts#L13-L15
'After your project is generated, please review `mobify.app.extensions` in package.json to check the configuration of the extensions and fill out any placeholder values.'
0 commit comments