fix(server): make remote updates rollback-safe (#5181)

This commit is contained in:
Theo Browne authored and GitHub committed 2026-08-01 05:48:03 -07:00
1 parent 0ad91b6e7f
commit d3037064e6
40 files changed
+2856 -2270

No files matched your search

+5 -1
View File
@@ -223,7 +223,11 @@ const publishCmd = Command.make(
const packageJsonPath = path.join(serverDir, "package.json");
// Assert build assets exist
for (const relPath of ["dist/bin.mjs", "dist/client/index.html"]) {
for (const relPath of [
"dist/bin.mjs",
"dist/service-launcher.mjs",
"dist/client/index.html",
]) {
const abs = path.join(serverDir, relPath);
if (!(yield* fs.exists(abs))) {
return yield* new ServerCliBuildAssetMissingError({ assetPath: abs });