fix: deno 2.x

This commit is contained in:
Daniel Regeci
2025-06-07 08:22:30 +04:00
parent 8176d71364
commit 49b04f8ac5
2 changed files with 32 additions and 0 deletions

27
deno.jsonc Normal file
View File

@@ -0,0 +1,27 @@
{
"compilerOptions": {
// Use Deno and DOM libraries
"lib": ["deno.ns", "dom", "dom.iterable"],
// Deno uses ESNext-like behavior by default; no need for target/module
"strict": true
},
"lint": {
"rules": {
"tags": ["recommended"]
}
},
"fmt": {
"useTabs": false,
"lineWidth": 80,
"indentWidth": 2,
"singleQuote": true,
"semiColons": true
},
"exclude": ["node_modules"],
"importMap": "./import_map.json",
"tasks": {
"test": "deno test --allow-all",
"build": "echo 'Build step not needed for Deno unless bundling'"
}
}

5
import_map.json Normal file
View File

@@ -0,0 +1,5 @@
{
"imports": {
"@/": "./lib/"
}
}