islandflow/scripts/sync-docker-workspace.ts
dirtydishes 44431c4e66
All checks were successful
CI / Validate (push) Successful in 1m13s
expand ci quality gates
2026-05-30 02:34:28 -04:00

14 lines
516 B
TypeScript

import { copyFile } from "node:fs/promises";
import path from "node:path";
const repoRoot = path.resolve(import.meta.dir, "..");
const deploymentRoot = path.join(repoRoot, "deployment/docker/workspace-root");
const filesToSync = ["package.json", "bun.lock", "tsconfig.base.json"] as const;
for (const fileName of filesToSync) {
const source = path.join(repoRoot, fileName);
const destination = path.join(deploymentRoot, fileName);
await copyFile(source, destination);
console.log(`synced ${fileName}`);
}