Fix: build
This commit is contained in:
parent
2a21040551
commit
dbca260132
3 changed files with 5 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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 +
|
||||
|
|
Loading…
Reference in a new issue