DenoDDeno
Powered by
Definitely Not A DolphinD
Denoβ€’2mo agoβ€’
48 replies
Definitely Not A Dolphin

JSR package importing from a file in the project root

πŸ“°JSR
I don't know whether this is the correct words for it, but the jsr package that I want to publish soon needs to be able to import a config object from a file that the user would have in the root of their project, how do I do this?

Can I just import it with a regular import statement? If so, what should the path of it be? Should I do it with dynamic imports? If so, what should the path of it be?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Binary files in jsr package
MqxMMqx / help
2y ago
Lock file in JSR library?
vwkdVvwkd / help
11mo ago
cannot publish package to jsr but it uses a shared file
Kevin TaleKKevin Tale / help
16mo ago
Jsr modules with package.json
nandi.weird.oneNnandi.weird.one / help
12mo ago