Add multi-strategy import system to support Node.js packages in Deno: 1. Primary: Use npm: specifier for Node.js compatibility mode 2. Fallback: Use esm.sh with explicit esnext target This allows packages like ai-sdk-tool-code-execution that depend on Node.js built-ins (node:sqlite, undici) to work in the Deno runtime. Also added deno.json with nodeModulesDir and BYONM support. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
239 B
JSON
12 lines
239 B
JSON
{
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"lib": ["deno.window"],
|
|
"strict": true
|
|
},
|
|
"nodeModulesDir": true,
|
|
"unstable": ["byonm"],
|
|
"imports": {
|
|
"zod-to-json-schema": "https://esm.sh/zod-to-json-schema@3.25.0"
|
|
}
|
|
}
|