@tdk-landscape/tdk-cli-core 1.3.117 → 1.3.118

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.
@@ -0,0 +1,28 @@
1
+ # =============================================================================
2
+ # 🐘 SHARED PLATFORM POSTGRES dependsOn ALIASES
3
+ # =============================================================================
4
+ # `postgres` and `database-management` mean the one shared platform Postgres
5
+ # Tilt resource. They are not app services and must not be reported as missing
6
+ # by manifest validators. The engine resolver maps both to `postgres`.
7
+ # Spec: openspec/changes/dependson-starts-platform-postgres
8
+ # =============================================================================
9
+
10
+ SHARED_POSTGRES_DEPENDENCY_NAMES = ["postgres", "database-management"]
11
+
12
+
13
+ def is_shared_platform_postgres_dependency(name):
14
+ """True when a dependsOn name is one of the shared platform Postgres aliases."""
15
+ return name in SHARED_POSTGRES_DEPENDENCY_NAMES
16
+
17
+
18
+ def manifest_needs_shared_platform_postgres(manifest):
19
+ """True when a manifest's dependsOn lists postgres or database-management."""
20
+ if type(manifest) != 'dict':
21
+ return False
22
+ deps = manifest.get('dependsOn')
23
+ if not deps or type(deps) != 'list':
24
+ return False
25
+ for dep in deps:
26
+ if is_shared_platform_postgres_dependency(dep):
27
+ return True
28
+ return False
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tdk-landscape/tdk-cli-core",
3
- "version": "1.3.117",
3
+ "version": "1.3.118",
4
4
  "description": "TDK CLI — start services on your laptop.",
5
5
  "homepage": "https://tdk-landscape.github.io/tdk-website",
6
6
  "repository": {