Fix partial compilation, fix tests

This commit is contained in:
Pieter Vander Vennet 2022-07-06 17:11:17 +02:00
parent 9f41e719f2
commit a08a49abb2
3 changed files with 36 additions and 34 deletions

View file

@ -313,7 +313,7 @@ class LayerOverviewUtils {
const usedLayers = Array.from(LayerOverviewUtils.extractLayerIdsFrom(themeFile, false))
.map(id => LayerOverviewUtils.layerPath + id + ".json")
if (!forceReload && !this.shouldBeUpdated([themePath, ...usedLayers], targetPath)) {
fixed.set(themeFile.id, themeFile)
fixed.set(themeFile.id, JSON.parse(readFileSync(LayerOverviewUtils.themePath+themeFile.id+".json", 'utf8')))
skippedThemes.push(themeFile.id)
continue;
}