fix(map): publish MapLibre worker
DH V2 CI / WEB · typecheck, build (push) Successful in 21s
DH V2 CI / API · typecheck, tests, build (push) Failing after 46s
DH V2 CI / Docker / migrations / production images (push) Skipped
DH V2 CI / Promote verified main to deploy (push) Skipped

This commit is contained in:
2026-09-16 00:14:17 -03:00
parent cab9cd7c01
commit f0b92c00e1
4 changed files with 17 additions and 6 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "dhv2-web",
"version": "0.23.0-9",
"version": "0.23.0-10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "dhv2-web",
"version": "0.23.0-9",
"version": "0.23.0-10",
"dependencies": {
"maplibre-gl": "6.4.1",
"react": "^19.0.0",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "dhv2-web",
"version": "0.23.0-9",
"version": "0.23.0-10",
"private": true,
"type": "module",
"engines": {
@@ -8,7 +8,7 @@
},
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "tsc -b && vite build && node scripts/copy-maplibre-worker.mjs",
"typecheck": "tsc --noEmit"
},
"dependencies": {
+11
View File
@@ -0,0 +1,11 @@
import { chmodSync, copyFileSync, mkdirSync, statSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
const source = resolve('node_modules/maplibre-gl/dist/maplibre-gl-worker.mjs');
const target = resolve('dist/assets/maplibre-gl-worker.mjs');
mkdirSync(dirname(target), { recursive: true });
copyFileSync(source, target);
chmodSync(target, 0o644);
const bytes = statSync(target).size;
if (bytes < 1000) throw new Error(`MapLibre worker inválido: ${bytes} bytes`);
console.log(`MapLibre worker: ${target} (${bytes} bytes)`);
+2 -2
View File
@@ -1,2 +1,2 @@
export const APP_VERSION = '0.23.0-9';
export const APP_PHASE = 'F6.12 · Geometrías y correo SMTP';
export const APP_VERSION = '0.23.0-10';
export const APP_PHASE = 'F6.13 · Mapa operativo';