SOURCE / PINNED RELEASE
Made of little things.
Atlas map viewer
- Release
- 1d2807e80b44…
- Author-recorded commit
- 43810ed2b368…
- License
- LICENSE
- Author’s source reference
- nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-4757dbabc86
Archive hash verified: 8db6876d96c460ac…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
import { spawnSync } from 'node:child_process';
import { resolve } from 'node:path';
const root = resolve(import.meta.dir, '..');
function run(command: string, args: string[], cwd = root) {
const result = spawnSync(command, args, { cwd, stdio: 'inherit', env: process.env });
if (result.error) throw result.error;
if (result.status !== 0) throw new Error(command + ' failed (exit ' + result.status + ').');
}
import { cp, mkdir } from 'node:fs/promises';
run('bunx', ['pnpm@10.8.0', 'run', 'build'], resolve(root, 'app'));
await mkdir(resolve(root, 'dist'), { recursive: true });
await cp(resolve(root, 'app/dist'), resolve(root, 'dist'), { recursive: true });
