Skip to content

Commit

Permalink
Fix CI: Pin tsx to 4.9.0 (#146)
Browse files Browse the repository at this point in the history
tsx just released v4.9.1 which seems to break us
  • Loading branch information
hoodmane authored May 4, 2024
1 parent 992509c commit 712ee5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "sphinx_js",
"type": "module",
"dependencies": {
"tsx": "^4.9.0",
"typedoc": "^0.25.13"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def typedoc_output(
env = os.environ.copy()
env["TYPEDOC_NODE_MODULES"] = str(Path(typedoc).parents[3].resolve())
command = Command("npx")
command.add("tsx")
# tsx v4.9.1 seems to break us for some reason.
# TODO: figure out why
command.add("[email protected]")
dir = Path(__file__).parent.resolve() / "js"
command.add("--import", str(dir / "registerImportHook.mjs"))
command.add(str(dir / "call_typedoc.ts"))
Expand Down

0 comments on commit 712ee5e

Please sign in to comment.