@platformatic/generators 1.29.0 → 1.30.0
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.
- package/lib/base-generator.js +3 -0
- package/package.json +1 -1
package/lib/base-generator.js
CHANGED
|
@@ -192,6 +192,9 @@ class BaseGenerator extends FileGenerator {
|
|
|
192
192
|
const currentConfigFile = JSON.parse(fileFromDisk.contents)
|
|
193
193
|
if (generatedConfigFile.plugins && generatedConfigFile.plugins.packages) {
|
|
194
194
|
currentConfigFile.plugins.packages = generatedConfigFile.plugins.packages
|
|
195
|
+
} else {
|
|
196
|
+
// remove packages because new configuration does not have them
|
|
197
|
+
currentConfigFile.plugins.packages = []
|
|
195
198
|
}
|
|
196
199
|
this.reset()
|
|
197
200
|
this.addFile({
|