Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
123456789101112131415161718// Stage the loader-runtime overrides into deploy/load/vendor/ from the// repo's vendor/web-tiles — one source for both the desktop tile server and// the hosted one, so they can't drift. Run before deploying (part of// `deno task deploy:load`).
import { fromFileUrl, join } from 'jsr:@std/path@1';
const ROOT = fromFileUrl(new URL('..', import.meta.url));const SRC = join(ROOT, 'vendor', 'web-tiles');const DEST = join(ROOT, 'deploy', 'load', 'vendor');const FILES = ['shuttle.js', 'data.js', 'store.js', 'sync.js', 'mode.js'];
await Deno.mkdir(DEST, { recursive: true });for (const name of FILES) { await Deno.copyFile(join(SRC, name), join(DEST, name));}console.log(`staged ${FILES.length} runtime modules into deploy/load/vendor/`);