Skip to content

Commit 856a854

Browse files
Update publish check for server entrypoint path
- Verify `dist/bin.mjs` instead of the old `dist/index.mjs` - Keep client asset validation unchanged
1 parent 1cba2f6 commit 856a854

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/server/scripts/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ const publishCmd = Command.make(
177177
const backupPath = `${packageJsonPath}.bak`;
178178

179179
// Assert build assets exist
180-
for (const relPath of ["dist/index.mjs", "dist/client/index.html"]) {
180+
for (const relPath of ["dist/bin.mjs", "dist/client/index.html"]) {
181181
const abs = path.join(serverDir, relPath);
182182
if (!(yield* fs.exists(abs))) {
183183
return yield* new CliError({

0 commit comments

Comments
 (0)