@nometria-ai/nom 0.2.4 → 0.2.5

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": "@nometria-ai/nom",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Deploy any project to any cloud from your terminal. One command, zero config.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -116,8 +116,9 @@ export async function deploy(flags) {
116
116
  deploySpinner.update(`${isResync ? 'Resyncing' : 'Deploying'} — ${st}`);
117
117
 
118
118
  // Only trust deploymentStatus for completion — instanceState='running' just means
119
- // EC2 booted, not that the deploy script finished.
120
- const isDone = deployStatus === 'completed' || deployStatus === 'running' || topStatus === 'deployed';
119
+ // EC2 booted, and topStatus='deployed' just means the record exists in DB.
120
+ // The sync script calls report_status("running") only after everything finishes.
121
+ const isDone = deployStatus === 'completed' || deployStatus === 'running';
121
122
  if (isDone) {
122
123
  finalStatus = statusResult;
123
124
  deploySpinner.succeed(isResync ? 'Resynced successfully' : 'Deployed successfully');