unoverse 0.1.56 → 0.1.58

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
 
@@ -78,7 +84,9 @@ cmd_deploy() {
78
84
  _tf_fill auth_issuer AUTH_ISSUER "AUTH_ISSUER"
79
85
  _tf_fill auth_client_id AUTH_CLIENT_ID "AUTH_CLIENT_ID"
80
86
 
81
- if grep -q "FILL_ME" "$tfv" 2>/dev/null; then
87
+ # VALUES only: the file's own header comment says the word FILL_ME, and matching
88
+ # it declared a complete file blank.
89
+ if grep -qE '=[[:space:]]*"FILL_ME"' "$tfv" 2>/dev/null; then
82
90
  echo ""
83
91
  warn "Some values are still blank in ${BOLD}infra/$cloud/terraform.tfvars${NC} — fill them, then:"
84
92
  info " cd infra/$cloud && terraform init && terraform apply"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unoverse",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
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",