Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin tsx 4.15.8 #166

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def typedoc_output(
env = os.environ.copy()
env["TYPEDOC_NODE_MODULES"] = str(Path(typedoc).parents[3].resolve())
command = Command("npx")
command.add("tsx")
command.add("tsx@4.15.8")
dir = Path(__file__).parent.resolve() / "js"
command.add("--tsconfig", str(dir / "tsconfig.json"))
command.add("--import", str(dir / "registerImportHook.mjs"))
Expand Down
4 changes: 2 additions & 2 deletions tests/test_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ def test_global_install(tmp_path_factory, monkeypatch):
tmpdir2 = tmp_path_factory.mktemp("blah")
monkeypatch.setenv("npm_config_prefix", str(tmpdir))
monkeypatch.setenv("PATH", str(tmpdir / "bin"), prepend=":")
subprocess.run(["npm", "i", "-g", "typedoc", "typescript"])
subprocess.run(["npm", "i", "-g", "typedoc@0.25", "typescript", "[email protected]"])
typedoc = search_node_modules("typedoc", "typedoc/bin/typedoc", str(tmpdir2))
monkeypatch.setenv("TYPEDOC_NODE_MODULES", str(Path(typedoc).parents[3]))
dir = Path(__file__).parents[1].resolve() / "sphinx_js/js"

res = subprocess.run(
[
"npx",
"tsx",
"tsx@4.15.8",
"--import",
dir / "registerImportHook.mjs",
dir / "call_typedoc.ts",
Expand Down
Loading