vrugtehagel
vrugtehagel
DDeno
Created by vrugtehagel on 2/20/2025 in #help
Read file as text in JSR package (easy with NPM, not Deno)
Thanks - the GitHub issue's been closed and I guess I'm stuck waiting for with { type: "text" }. Does that package of yours still require net permissions? Right now I've gone for the hacky export const foo = 'content…' route, inlining the file and pretending it's JS so I can import it. Not pretty, but does the job without unnecessary permissions
11 replies
DDeno
Created by vrugtehagel on 2/20/2025 in #help
Read file as text in JSR package (easy with NPM, not Deno)
11 replies
DDeno
Created by vrugtehagel on 2/20/2025 in #help
Read file as text in JSR package (easy with NPM, not Deno)
Actually, correction; it does work correctly and resolves to a local path if it is a project using a package.json, but not when it uses a deno.json
11 replies
DDeno
Created by vrugtehagel on 2/20/2025 in #help
Read file as text in JSR package (easy with NPM, not Deno)
Yeah, this works, but it doesn't resolve to a local URL for me - it resolves to a JSR URL, and it requires network permissions to run
11 replies