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

feat: remove requirement to specify current file in members when workspace root config is package #63

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jul 1, 2024

Aligns with cargo.

Changes it to not require "." in the workspace root and not surface diagnostics about it because we can tell if the root is a package by if it has name and exports fields.

Changes:

{
  "name": "@scope/root",
  "version": "1.0.0",
  "exports": "./mod.ts"
  "workspace": [".", "./sub_package"]
}

To:

{
  "name": "@scope/root",
  "version": "1.0.0",
  "exports": "./mod.ts",
  "workspace": ["./sub_package"]
}

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret merged commit b44ede5 into denoland:main Jul 2, 2024
3 checks passed
@dsherret dsherret deleted the feat_remove_requirement_specify_current_file_in_workspaces branch July 2, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants