diff --git a/package.json b/package.json index 5172c9c48..64cb370b0 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "generate:css": "tailwindcss -i index.css -o public/css/index-tailwind-output.css", "generate:doctests": "doctest-ts-improved . --ignore .*.spec.ts --ignore .*ConfigJson.ts", "test:run-only": "vitest --run test", - "test": "npm run clean:tests && (npm run generate:doctests 2>&1 | grep -v \"No doctests found in\") && npm run test:run-only && npm run clean:tests", + "test": " export NODE_OPTIONS=\"--max-old-space-size=8192\" && npm run clean:tests && (npm run generate:doctests 2>&1 | grep -v \"No doctests found in\") && npm run test:run-only && npm run clean:tests", "init": "npm ci && npm run generate && npm run generate:editor-layer-index && npm run generate:layouts && npm run clean && npm run weblate-add-upstream", "generate:editor-layer-index": "vite-node scripts/downloadEli.ts", "generate:polygon-features": "vite-node scripts/downloadFile.ts -- https://raw.githubusercontent.com/tyrasd/osm-polygon-features/master/polygon-features.json assets/polygon-features.json", diff --git a/scripts/generateCache.ts b/scripts/generateCache.ts index 9db5f34c9..7b9e4e948 100644 --- a/scripts/generateCache.ts +++ b/scripts/generateCache.ts @@ -518,7 +518,7 @@ export async function main(args: string[]) { const theme = AllKnownLayouts.allKnownLayouts.get(themeName) if (theme === undefined) { const keys = Array.from(AllKnownLayouts.allKnownLayouts.keys()) - console.error("The theme " + theme + " was not found; try one of ", keys) + console.error("The theme " + themeName + " was not found; try one of ", keys) return } diff --git a/scripts/generateLayerOverview.ts b/scripts/generateLayerOverview.ts index 506daa9b4..c320a46ac 100644 --- a/scripts/generateLayerOverview.ts +++ b/scripts/generateLayerOverview.ts @@ -421,10 +421,11 @@ class LayerOverviewUtils extends Script { }) const skippedThemes: string[] = [] - for (const themeInfo of themeFiles) { + for (let i = 0; i < themeFiles.length; i++){ + const themeInfo = themeFiles[i]; const themePath = themeInfo.path let themeFile = themeInfo.parsed - + console.log(`Validating ${i}/${themeFiles.length} '${themeInfo.parsed.id}'`) { const targetPath = LayerOverviewUtils.themePath +