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

refactor: add back collections/mod.ts with a warning #2346

Merged
merged 4 commits into from
Jun 15, 2022

Conversation

dsherret
Copy link
Member

This adds back collections/mod.ts that was removed in #2321 , but adds it back with a warning. This will allow people to use collecitons/mod.ts in non-production scenarios for quick hacking and then convert their code to use the specific imports before deployment to make the module graph lean (see #2321 (comment) for more rationale about why we should have a mod.ts).

Overall, my preference would be to not even have a warning here and instead just document to not use it when publishing modules, but it was discussed during the design meeting that this would be a good compromise to try to get people away from using mod.ts when distributing or deploying modules, but still be able to use it in quick scripts.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM - Discussed during CLI meeting

@dsherret dsherret merged commit 23c46fd into denoland:main Jun 15, 2022
@dsherret dsherret deleted the add_back_collections_mod.ts branch June 15, 2022 01:28
cjihrig pushed a commit to bartlomieju/deno_std that referenced this pull request Jun 28, 2022
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.

None yet

2 participants