Skip to content

fix: remove buggy module-sync exports field #450

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

Merged
merged 2 commits into from
May 18, 2025
Merged

Conversation

JounQin
Copy link
Collaborator

@JounQin JounQin commented May 18, 2025

nodejs/node#57869

Important

Remove buggy module-sync export field from package.json and update URL in .github/FUNDING.yml.

  • Exports:
    • Remove module-sync export field from package.json to fix a bug.
  • Funding:
    • Update URL in .github/FUNDING.yml from https://afdian.net/@JounQin to https://afdian.com/a/JounQin.

This description was created by Ellipsis for 2568d85. You can customize this summary. It will automatically update as commits are pushed.

Summary by CodeRabbit

  • Chores
    • Updated the funding link for "JounQin" to a new URL.
    • Added a changeset describing a patch update for a package.
  • Refactor
    • Simplified export settings by removing unused export entries.

@JounQin JounQin requested a review from Copilot May 18, 2025 06:03
@JounQin JounQin self-assigned this May 18, 2025
Copy link

changeset-bot bot commented May 18, 2025

🦋 Changeset detected

Latest commit: afecb4d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-import-resolver-typescript Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

coderabbitai bot commented May 18, 2025

Walkthrough

This update removes the "module-sync" and "default" export entries from the exports field in package.json, simplifies the export map, and documents the change with a new changeset file. Additionally, the custom funding link in the GitHub funding configuration is updated to a new URL.

Changes

File(s) Change Summary
.changeset/rude-teachers-look.md Added a changeset documenting the removal of the problematic "module-sync" export.
package.json Removed "module-sync" and "default" export entries from the export map, keeping only "import" and "require".
.github/FUNDING.yml Updated the custom funding link for "JounQin" to a new URL.

Poem

A hop and a skip, some exports are gone,
"Module-sync" and "default" have both moved on.
The funding link’s fresh, the map is now neat,
With changeset notes to keep things complete.
In the warren of code, all is tidy and bright—
A rabbit’s delight on a patching night! 🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codesandbox-ci bot commented May 18, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 2568d85 in 35 seconds. Click for details.
  • Reviewed 32 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .github/FUNDING.yml:11
  • Draft comment:
    Updated the afdian URL from 'afdian.net/@JounQin' to 'afdian.com/a/JounQin'. Confirm this correction is intended.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to confirm their intention regarding a URL change. This falls under the rule of not asking the author to confirm their intention or to ensure the behavior is intended. Therefore, this comment should be removed.
2. package.json:24
  • Draft comment:
    Removed the non-standard 'module-sync' and duplicate 'default' export fields. Ensure these removals won't impact legacy tooling.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to ensure that the removals won't impact legacy tooling, which is against the rules. It doesn't provide a specific suggestion or ask for a specific test to be written. Therefore, it should be removed.

Workflow ID: wflow_1OFK31Gg52uELnO1

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes an unintended export path (module-sync) along with a redundant default fallback in the package exports, and updates the Afdian sponsorship URL.

  • Remove module-sync export entry
  • Remove extra default export fallback
  • Update Afdian link in FUNDING.yml

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Dropped module-sync subpath and redundant default
.github/FUNDING.yml Switched Afdian URL to the correct domain

Copy link

pkg-pr-new bot commented May 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/eslint-import-resolver-typescript@450

commit: afecb4d

Copy link
Contributor

size-limit report 📦

Path Size
lib/index.js 1.4 KB (0%)

Copy link

codecov bot commented May 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.45%. Comparing base (b08feae) to head (afecb4d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #450   +/-   ##
=======================================
  Coverage   64.45%   64.45%           
=======================================
  Files           6        6           
  Lines         377      377           
  Branches       49       49           
=======================================
  Hits          243      243           
  Misses        134      134           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.changeset/rude-teachers-look.md (1)

5-5: Ensure changeset description matches all removals
The summary line references removal of the module-sync export field. If the patch also removes the "default" export entry, consider updating this description to document both removals for complete clarity.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between b08feae and afecb4d.

📒 Files selected for processing (3)
  • .changeset/rude-teachers-look.md (1 hunks)
  • .github/FUNDING.yml (1 hunks)
  • package.json (0 hunks)
💤 Files with no reviewable changes (1)
  • package.json
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Lint and Test with Node.js 22 on windows-latest
🔇 Additional comments (2)
.github/FUNDING.yml (1)

11-11: Update custom funding URL
The AfDian link has been updated to https://afdian.com/a/JounQin, which aligns with the new domain format. Please verify that this URL resolves correctly and matches the pattern used by other contributors.

.changeset/rude-teachers-look.md (1)

1-3: Verify frontmatter formatting
The YAML frontmatter is correctly structured, specifying a patch update for eslint-import-resolver-typescript.

@JounQin JounQin merged commit 3f1aab1 into master May 18, 2025
32 checks passed
@JounQin JounQin deleted the fix/module-sync branch May 18, 2025 06:17
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request May 18, 2025
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 4.3.4 | 4.3.5 |


## [v4.3.5](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#435)

##### Patch Changes

-   [#450](import-js/eslint-import-resolver-typescript#450) [`3f1aab1`](import-js/eslint-import-resolver-typescript@3f1aab1) Thanks [@JounQin](https://github.com/JounQin)! - fix: remove buggy `module-sync` exports field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants