louis030195L
Deno15mo ago
louis030195

how to use deno.json when using deno runtime in rust?

my code: https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-core/src/pipes.rs

i want to stop rewriting node api stuff and just import like in

https://github.com/mediar-ai/screenpipe/pull/462/files

eg

{
    "imports": {
        "zod": "npm:zod",
        "ai": "npm:ai",
        "ollama-ai-provider": "npm:ollama-ai-provider"
         // also node api like fs, fetch, etc.
    },
    "tasks": {
        "start": "deno run --allow-read --allow-write --allow-net --allow-env pipe.ts"
    }
}


i'm assuming it's possible, any direction to do this appreciated
Was this page helpful?