From 054cbb6b3cf346a26fac9e4109aea37052ae4e1f Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Fri, 10 Oct 2025 16:55:48 +0000 Subject: [PATCH] fix(deno): Enable additional Deno permissions for runtime adapters and add local dev settings --- changelog.md | 7 +++++++ ts/00_commitinfo_data.ts | 2 +- ts/tstest.classes.runtime.deno.ts | 8 +++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 91fae0d..0835f24 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-10-10 - 2.4.2 - fix(deno) +Enable additional Deno permissions for runtime adapters and add local dev settings + +- Add --allow-sys, --allow-import and --node-modules-dir to the default Deno permission set used by the Deno runtime adapter +- Include the new permission flags in the fallback permissions array when constructing Deno command args +- Add .claude/settings.local.json to capture local development permissions and helper commands + ## 2025-10-10 - 2.4.1 - fix(runtime/deno) Enable Deno runtime tests by adding required permissions and local settings diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index baeb9e5..2779809 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tstest', - version: '2.4.1', + version: '2.4.2', description: 'a test utility to run tests that match test/**/*.ts' } diff --git a/ts/tstest.classes.runtime.deno.ts b/ts/tstest.classes.runtime.deno.ts index 5f54159..f972687 100644 --- a/ts/tstest.classes.runtime.deno.ts +++ b/ts/tstest.classes.runtime.deno.ts @@ -38,7 +38,10 @@ export class DenoRuntimeAdapter extends RuntimeAdapter { '--allow-env', '--allow-net', '--allow-write', - '--sloppy-imports', // Allow .js imports to resolve to .ts files + '--allow-sys', // Allow system info access + '--allow-import', // Allow npm/node imports + '--node-modules-dir', // Enable Node.js compatibility mode + '--sloppy-imports', // Allow .js imports to resolve to .ts files ], }; } @@ -92,6 +95,9 @@ export class DenoRuntimeAdapter extends RuntimeAdapter { '--allow-env', '--allow-net', '--allow-write', + '--allow-sys', + '--allow-import', + '--node-modules-dir', '--sloppy-imports', ]; args.push(...permissions);