Fix Docker workspace lockfile drift and add sync guard
This commit is contained in:
parent
e69bf295c8
commit
dc0aeaa7d2
8 changed files with 295 additions and 4 deletions
19
scripts/sync-docker-workspace.ts
Normal file
19
scripts/sync-docker-workspace.ts
Normal 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}`);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue