There was an error while loading. Please reload this page.
1 parent 4452b7d commit 3c30f4bCopy full SHA for 3c30f4b
1 file changed
.scripts/lint_snippets.py
@@ -72,6 +72,7 @@
72
PYRIGHT = PY_VENV / "bin" / "pyright"
73
TSC = NODE_SDK / "node_modules" / "typescript" / "bin" / "tsc"
74
75
+NODE = shutil.which("node")
76
GO = shutil.which("go")
77
CARGO = shutil.which("cargo")
78
MAVEN = shutil.which("mvn")
@@ -950,13 +951,14 @@ def lint_typescript_batch(
950
951
) -> list[LintIssue]:
952
if not snippet_files:
953
return []
- if not TSC.exists():
954
+ if not TSC.exists() or not NODE:
955
956
ws = _prepare_ts_workspace(snippet_files)
957
# `tsc` emits diagnostics to stdout when --pretty=false and writes nothing
958
# on success.
959
result = subprocess.run(
960
[
961
+ NODE,
962
str(TSC),
963
"-p",
964
str(ws / "tsconfig.json"),
0 commit comments