Skip to content

Conversation

JoshuaKGoldberg
Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg commented Jul 15, 2025

Prerequisites checklist

What is the purpose of this pull request?

Adds Knip to check for unused exports, unused dependencies, and missing dependencies

What changes did you make? (Give an overview)

  1. Adds Knip, similar to how it was done in:
  2. Adds in devDependencies that it noted are relied upon but don't exist
  3. Adds -y to the jsr launch to explicitly always run it without prompting

Is there anything you'd like reviewers to focus on?

Because this repo is a monorepo, its Knip config is a bit more complex than other repos'. I think I got the entry and project properties correct but I'm not positive.

@lumirlumir
Copy link
Member

Oops, it looks like there are quite a few merge conflicts. Whenever you have some time, could you take a look? 😄

@github-actions
Copy link
Contributor

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions bot added the Stale label Aug 13, 2025
@JoshuaKGoldberg
Copy link
Contributor Author

🤔 CI is reporting...

Error: dist/esm/index.js(2,16): error TS2307: Cannot find module 'node:fs' or its corresponding type declarations.
Error: dist/esm/index.js(3,18): error TS2307: Cannot find module 'node:path' or its corresponding type declarations.

...but I don't see where this would be newly coming from in this PR. Which is up-to-date from main.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review August 15, 2025 14:07
@github-actions github-actions bot removed the Stale label Aug 15, 2025
Copy link
Member

@lumirlumir lumirlumir left a comment

Choose a reason for hiding this comment

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

Overall, this looks really good to me. 👍

I've left a few suggestions about the changes.

@lumirlumir lumirlumir moved this from Needs Triage to Implementing in Triage Aug 18, 2025
@lumirlumir lumirlumir requested a review from a team August 18, 2025 06:33
Copy link
Member

@lumirlumir lumirlumir left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Would like another review before merging.

@lumirlumir lumirlumir moved this from Implementing to Second Review Needed in Triage Sep 26, 2025
Comment on lines +16 to +17
"entry": ["tests/**/*.{cts,cts,js,ts}"],
"project": ["src/**/*.{cts,js,ts}", "tests/**/*.{cts,cts,js,ts}"]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"entry": ["tests/**/*.{cts,cts,js,ts}"],
"project": ["src/**/*.{cts,js,ts}", "tests/**/*.{cts,cts,js,ts}"]
"entry": ["tests/**/*.{cts,js,ts}"],
"project": ["src/**/*.{cts,js,ts}", "tests/**/*.{cts,js,ts}"]

Duplicate extensions

Comment on lines +33 to +34
"entry": ["tests/**/*.{cts,cts,js,ts}"],
"project": ["src/**/*.{cts,js,ts}", "tests/**/*.{cts,cts,js,ts}"]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"entry": ["tests/**/*.{cts,cts,js,ts}"],
"project": ["src/**/*.{cts,js,ts}", "tests/**/*.{cts,cts,js,ts}"]
"entry": ["tests/**/*.{cts,js,ts}"],
"project": ["src/**/*.{cts,js,ts}", "tests/**/*.{cts,js,ts}"]

@lumirlumir
Copy link
Member

friendly ping @JoshuaKGoldberg

@aladdin-add
Copy link
Member

Error: dist/esm/index.js(2,16): error TS2307: Cannot find module 'node:fs' or its corresponding type declarations.
Error: dist/esm/index.js(3,18): error TS2307: Cannot find module 'node:path' or its corresponding type declarations.

have you tried adding @types/node to dev deps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Second Review Needed

Development

Successfully merging this pull request may close these issues.

4 participants