@biffo/cli 0.252.4 → 0.253.1

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": "@biffo/cli",
3
- "version": "0.252.4",
3
+ "version": "0.253.1",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,12 +40,21 @@
40
40
  #
41
41
  # ## Usage
42
42
  #
43
- # eval "$(sh scripts/pg-test-db.sh --export)" # export BIFFO_TEST_PG_DSN
43
+ # eval "$(sh scripts/pg-test-db.sh --export)" # export BIFFO_TEST_PG_DSN and TABSII_TEST_PG_DSN
44
44
  # sh scripts/pg-test-db.sh # print the DSN on stdout
45
45
  # sh scripts/pg-test-db.sh --recreate # force a rebuild
46
46
  #
47
47
  # Only the DSN reaches stdout, so it is safe to capture; progress goes to stderr.
48
48
  #
49
+ # `--export` sets BOTH `BIFFO_TEST_PG_DSN` and `TABSII_TEST_PG_DSN` (see
50
+ # tabsii-platform#755): every consumer this script has ever had reads one name
51
+ # or the other, `scripts/verify.sh`'s own bridge already treats them as
52
+ # interchangeable, and a script that only ever emits one of the two names it
53
+ # claims to serve is exactly the fail-open this file's own docstring above
54
+ # argues against -- a gate nobody can run, just one name late instead of a
55
+ # missing script. Emitting both means the name a consumer happens to read is no
56
+ # longer load-bearing.
57
+ #
49
58
  # Overridable: BIFFO_PG_HOST, BIFFO_PG_PORT, BIFFO_PG_USER, BIFFO_PG_PASSWORD,
50
59
  # BIFFO_PG_DB, BIFFO_PG_CONTAINER, BIFFO_PG_IMAGE.
51
60
  #
@@ -236,7 +245,10 @@ fi
236
245
  DSN="postgresql+asyncpg://$USER_:$PASS@$HOST:$PORT/$DB"
237
246
  emit() {
238
247
  if [ "$EXPORT" -eq 1 ]; then
248
+ # Both names, deliberately (tabsii-platform#755): whichever a consumer
249
+ # reads, an `eval` of this line alone is enough -- see the Usage note above.
239
250
  echo "export BIFFO_TEST_PG_DSN='$DSN'"
251
+ echo "export TABSII_TEST_PG_DSN='$DSN'"
240
252
  else
241
253
  echo "$DSN"
242
254
  fi