Fix: build

This commit is contained in:
Pieter Vander Vennet 2023-05-19 11:48:04 +02:00
parent 2a21040551
commit dbca260132
3 changed files with 5 additions and 4 deletions

View file

@ -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",

View file

@ -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
}

View file

@ -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 +