linz / basemaps

NZ’s authoritative and open digital basemap service for LINZ and the public.
https://basemaps.linz.govt.nz
Other
92 stars 16 forks source link

fix(cogify): correct loading path for "cogify" bin #3294

Closed blacha closed 2 months ago

blacha commented 2 months ago

Motivation

the latest container is currently broken when looking for cogify as it is pointing to a file that doesnt exist ./dist/index.cjs.

The dist/index.cjs is only created after a npm run bundle but bundle is not run until after cogify is published to npm.

Modifications

force dist/index.cjs to be created before a npm pack can be run using the prepack npm lifecylce event.

Verification

manually rebuilt with npm pack to ensure that a dist/index.cjs exists