Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Enable transpile only for ts-node

Tomas Valentab7dc11a2d945
diff --git a/api-service/codegen/tools/playground/playground.py b/api-service/codegen/tools/playground/playground.py
index 5870b719e..f13748c42 100644
--- a/api-service/codegen/tools/playground/playground.py
+++ b/api-service/codegen/tools/playground/playground.py
@@ -70,7 +70,7 @@ class NodeJSPlayground(Playground):
def run_typescript_code(self, code: str):
self.write_file(self.default_typescript_code_file, code)
- return self.run_command(f"ts-node {self.default_typescript_code_file}")
+ return self.run_command(f"ts-node -T {self.default_typescript_code_file}")
def check_typescript_code(self, code: str):
self.write_file(self.default_typescript_code_file, code)