fix(deno): Enable additional Deno permissions for runtime adapters and add local dev settings

This commit is contained in:
2025-10-10 16:55:48 +00:00
parent ecf11efb4c
commit 054cbb6b3c
3 changed files with 15 additions and 2 deletions

View File

@@ -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);