ConservationMetrics / mapgl-tile-renderer

Headless Node.js Maplibre-GL renderer for generating MBTiles with styled raster tiles.
MIT License
12 stars 3 forks source link

Revert back to `outputs/` dir by default; create if not found #38

Closed rudokemper closed 9 months ago

rudokemper commented 9 months ago

This PR reverts back to writing files to a default outputs/ directory after several attempts to get the Github Actions Docker publishing workflow working when trying to write to the current directory path (./), which in the case of Docker is the root /app dir and messes things up.

One of the reasons behind this switch from outputs/ to ./ for the outputDir is that the npm package was throwing an error if running mapgl-tile-renderer ... in a directory where there is no such outputDir, so this PR also implements a quick fix to create the outputDir if not found (which we should be doing anyway).