Skip to content

Commit

Permalink
Revert "Tried using command-line arguments"
Browse files Browse the repository at this point in the history
This reverts commit f083c60.
  • Loading branch information
BrentBlanckaert committed Nov 20, 2024
1 parent 59a3f11 commit cca868b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tested/languages/typescript/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,11 @@ def compilation(self, files: list[str], directory: Path) -> CallbackResult:
with open(str(directory / "tsconfig-sub.json"), "w") as file:
file.write(json.dumps(config_file, indent=4))

path_to_modules = os.environ['NODE_PATH']
return (
[
"tsc",
"--target",
"esnext",
"--module",
"nodenext",
"--allowJs",
"--allowImportingTsExtensions",
"--noEmit",
"--esModuleInterop",
"--typeRoots",
f"{path_to_modules}/@types",
main_file[0],
"--project",
"tsconfig-sub.json",
],
files,
)
Expand Down

0 comments on commit cca868b

Please sign in to comment.