/** Return the current installed version */ export function getCurrentVersion( url = new URL(import.meta.resolve("../")), ): string { const { pathname } = url; return pathname.match(/@([^/]+)/)?.[1] ?? `(local)`; }