@everystack/cli 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everystack/cli",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "CLI and OTA updates for Expo apps on everystack",
5
5
  "license": "AGPL-3.0-only",
6
6
  "publishConfig": {
@@ -99,9 +99,11 @@ export async function updateCommand(flags: UpdateFlags & Record<string, string>)
99
99
 
100
100
  // First export: mobile-safe bundles (no SSR_ENABLED).
101
101
  // Always re-export — stale dist/ is the #1 cause of broken OTA pushes.
102
+ // Export mobile platforms only — web static pre-rendering can hang when
103
+ // OUTBOUND_HOST points to a real server (open HTTP handles prevent exit).
102
104
  if (needsMobile) {
103
105
  step('Exporting app...');
104
- await exportApp();
106
+ await exportApp('ios,android');
105
107
  success('Export complete');
106
108
  }
107
109
 
@@ -249,7 +251,7 @@ export async function updateCommand(flags: UpdateFlags & Record<string, string>)
249
251
  // server rendering code paths and data loaders.
250
252
  step('Exporting web bundle (SSR)...');
251
253
  process.env.SSR_ENABLED = '1';
252
- await exportApp();
254
+ await exportApp('web');
253
255
  delete process.env.SSR_ENABLED;
254
256
  success('Web export complete');
255
257
 
@@ -2,8 +2,9 @@ import { execSync } from 'child_process';
2
2
  import fs from 'fs/promises';
3
3
  import path from 'path';
4
4
 
5
- export async function exportApp(): Promise<void> {
6
- execSync('npx expo export --output-dir dist', {
5
+ export async function exportApp(platform?: string): Promise<void> {
6
+ const platformFlag = platform ? ` --platform ${platform}` : '';
7
+ execSync(`npx expo export --output-dir dist${platformFlag}`, {
7
8
  stdio: 'inherit',
8
9
  env: { ...process.env },
9
10
  });