From a9cc154c8458204ca9432b75f75caaba044fd189 Mon Sep 17 00:00:00 2001 From: tonyxwz <16152581+tonyxwz@users.noreply.github.com> Date: Wed, 10 Dec 2025 14:53:54 +0100 Subject: [PATCH] ignore node_modules when copying the ts code for deno --- mcp_run_python/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp_run_python/main.py b/mcp_run_python/main.py index 413f254..1b95224 100644 --- a/mcp_run_python/main.py +++ b/mcp_run_python/main.py @@ -105,7 +105,7 @@ def prepare_deno_env( try: src = Path(__file__).parent / 'deno' logger.debug('Copying from %s to %s...', src, cwd) - shutil.copytree(src, cwd) + shutil.copytree(src, cwd, ignore=shutil.ignore_patterns('node_modules')) logger.info('Installing dependencies %s...', dependencies) args = 'deno', *_deno_install_args(dependencies)