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!: update runtime/node structure #392

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jan 20, 2025

This PR makes a major refactor on runtime/node/* structure to avoid /index entries. /cc @vicb

This makes node structure closer to Node.js lib dir (preview)

Since @cloudflare/unenv-preset is now fully externalized, we can safety remove entries.

@pi0 pi0 requested a review from a team as a code owner January 20, 2025 10:28
@pi0 pi0 changed the title refactor!: update runtime/node to avoid index refactor!: update runtime/node structure Jan 20, 2025
@vicb

This comment was marked as off-topic.

@pi0

This comment was marked as off-topic.

@vicb

This comment was marked as off-topic.

@vicb vicb self-requested a review January 24, 2025 18:06
@@ -1,3 +1,2 @@
export { default as node } from "./node";
export { default as nodeless } from "./nodeless";
export { default as cloudflare } from "./cloudflare";
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @pi0, do you think it would be possible to keep the cloudflare preset here for one more RC and remove it in the next one? Maybe moving the file to node/$cloudflare-<module>.ts.

This might allow for a smoother transition?

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