okstra 0.130.1 → 0.130.2
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
package/runtime/BUILD.json
CHANGED
|
@@ -121,19 +121,21 @@ def task_manifest_path(project_root: Path, manifest: Mapping[str, Any]) -> Path:
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
def resolve_workspace_script(workspace_root: Path, script_name: str) -> Path:
|
|
124
|
-
|
|
124
|
+
# The build lands helper scripts under `bin/`; `scripts/` is the repo layout.
|
|
125
|
+
return _resolve_workspace_file(workspace_root, ("bin", "scripts"), script_name)
|
|
125
126
|
|
|
126
127
|
|
|
127
128
|
def resolve_workspace_validator(workspace_root: Path, validator_name: str) -> Path:
|
|
128
|
-
return _resolve_workspace_file(workspace_root, "validators", validator_name)
|
|
129
|
+
return _resolve_workspace_file(workspace_root, ("validators",), validator_name)
|
|
129
130
|
|
|
130
131
|
|
|
131
132
|
def _resolve_workspace_file(
|
|
132
133
|
workspace_root: Path,
|
|
133
|
-
|
|
134
|
+
subdirs: tuple[str, ...],
|
|
134
135
|
name: str,
|
|
135
136
|
) -> Path:
|
|
136
|
-
candidates = [workspace_root / subdir / name
|
|
137
|
+
candidates = [workspace_root / subdir / name for subdir in subdirs]
|
|
138
|
+
candidates.append(workspace_root / name)
|
|
137
139
|
for candidate in candidates:
|
|
138
140
|
if candidate.is_file():
|
|
139
141
|
return candidate.resolve()
|