mirror of
https://github.com/aphrody-labs/aphrody-identity.git
synced 2026-10-14 03:19:02 +00:00
11 lines
490 B
TypeScript
11 lines
490 B
TypeScript
// SPDX-License-Identifier: Apache-2.0
|
|
// Copies the canonical pet atlas from crates/ui/identity into the gitignored dist/ that the package ships.
|
|
import { join } from "node:path";
|
|
import { findWorkspaceRoot } from "@aphrody/paths";
|
|
|
|
const root = join(import.meta.dir, "..");
|
|
const source = join(findWorkspaceRoot(), "crates/ui/identity/assets/aphrody/sprites/spritesheet.webp");
|
|
const dest = join(root, "dist/spritesheet.webp");
|
|
await Bun.write(dest, Bun.file(source));
|
|
console.log(dest);
|