Fix Docker workspace lockfile drift and add sync guard

This commit is contained in:
dirtydishes 2026-05-07 02:08:02 -04:00
parent e69bf295c8
commit dc0aeaa7d2
8 changed files with 295 additions and 4 deletions

View file

@ -0,0 +1,19 @@
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}`);
}