unoverse 0.1.56 → 0.1.57

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.
@@ -35,12 +35,18 @@ cmd_deploy() {
35
35
  pick_option "DigitalOcean" "AWS"
36
36
  [ "$PICKED" = "1" ] && cloud=aws || cloud=digitalocean
37
37
  echo ""
38
- cmd_ground "$([ "$cloud" = "aws" ] && echo aws || echo do)" || {
39
- echo ""
40
- info "Once that is sorted, run ${BOLD}unoverse deploy${NC} again. It picks up right here."
41
- echo ""
42
- exit 1
43
- }
38
+ # An existing tfvars is PROGRESS, not a conflict: the previous run wrote it. Only
39
+ # a missing file needs the ground; either way the flow continues below.
40
+ if [ -f "$ROOT/infra/$cloud/terraform.tfvars" ]; then
41
+ ok "Using your existing infra/$cloud/terraform.tfvars"
42
+ else
43
+ cmd_ground "$([ "$cloud" = "aws" ] && echo aws || echo do)" || {
44
+ echo ""
45
+ info "Once that is sorted, run ${BOLD}unoverse deploy${NC} again. It picks up right here."
46
+ echo ""
47
+ exit 1
48
+ }
49
+ fi
44
50
  echo ""
45
51
  ok "Your $cloud ground is prefilled ${DIM}(infra/$cloud/terraform.tfvars)${NC}"
46
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unoverse",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "description": "The Unoverse front door — create a Studio project, a universe, or a client app, and launch Studio.",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "type": "module",