Skip to content
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

Bug: Workspaces only searches for deno.json instead of also deno.jsonc #23343

Closed
marvinhagemeister opened this issue Apr 12, 2024 · 2 comments · Fixed by #23480 or #23492
Closed

Bug: Workspaces only searches for deno.json instead of also deno.jsonc #23343

marvinhagemeister opened this issue Apr 12, 2024 · 2 comments · Fixed by #23480 or #23492
Labels
bug Something isn't working correctly
Milestone

Comments

@marvinhagemeister
Copy link
Contributor

The workspace resolution logic seems to only look for deno.json files and not deno.jsonc files.

Steps to reproduce

  1. Clone https://github.com/marvinhagemeister/deno-workspace-jsonc-bug
  2. Run deno run main.ts

Error

$ deno run -A main.ts 
error: Workspace member 'foo' has no deno.json file ('/Users/marvinh/dev/test/deno-workspace/foo/deno.json')

Version: Deno 1.42.3

@marvinhagemeister marvinhagemeister added the bug Something isn't working correctly label Apr 12, 2024
@king8fisher
Copy link
Contributor

making json extension work for both content types would make life so much easier 😄

@bartlomieju
Copy link
Member

New error:

../deno/target/debug/deno run main.ts
error: Relative import path "@marvinh-test/bar" not prefixed with / or ./ or ../ and not in import map from "file:///Users/ib/dev/deno-workspace-jsonc-bug/main.ts"
    at file:///Users/ib/dev/deno-workspace-jsonc-bug/main.ts:2:22

bartlomieju added a commit that referenced this issue Apr 23, 2024
…23492)

This commit changes the workspace support to provide all workspace
members to be available as imports based on their names and versions.

Closes #23343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
3 participants