-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use relative imports above jsr.json location #388
Comments
FYI: Workspace support in Deno isn't ready yet. Support for workspaces is being tracked here denoland/deno#22942 |
Good to know. But this problem would occur even with Importing local code from outside of the JSR working directory should work, right? |
Right now the assumption is that the packages We haven't decided on that in the team yet, but my feeling is that we'd rather spent time working on other JSR stuff in the coming months. I wouldn't plan my code around this being supported anytime soon (if at all). |
Thank you for clarifying @marvinhagemeister In that case I'll close this in favor of denoland/deno#22942 |
I am doing this in
mod.ts
:It fails:
I am importing
../interfaces/NostrEvent.ts
while having./jsr.json
. So the file I'm importing is above jsr.jsonIf I move
jsr.json
up a directory, it works. But I don't want to do that, because I'm trying to manage multiple packages in one repository, with some code copied between them. Kind of like a monorepo.deno publish --dry-run
doesn't complain. But the package is refused by JSR.The package is: https://jsr.io/@nostrify/ndk (Which I finally got to work by temporarily moving
jsr.json
up one directory)The text was updated successfully, but these errors were encountered: