Skip to content

docs: improve documentation and fix typos across the project#246

Merged
pi0 merged 13 commits into
unjs:mainfrom
outslept:chore/document-new-additions
Aug 20, 2025
Merged

docs: improve documentation and fix typos across the project#246
pi0 merged 13 commits into
unjs:mainfrom
outslept:chore/document-new-additions

Conversation

@outslept

@outslept outslept commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

safe to review now, don't merge until non draft plz, just checking for typos/extra spaces in other files to possibly cover with this pr.

resolves #245 & related to #238

@codecov

codecov Bot commented Aug 20, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.73%. Comparing base (afdf7cb) to head (4ac87c7).
⚠️ Report is 92 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
+ Coverage   89.40%   93.73%   +4.33%     
==========================================
  Files           5       10       +5     
  Lines         434      447      +13     
  Branches       37       93      +56     
==========================================
+ Hits          388      419      +31     
+ Misses         46       28      -18     

☔ 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.

@outslept

Copy link
Copy Markdown
Contributor Author

Woohoo! This should be it. Need to think how to name this PR and we're good to go

@outslept outslept changed the title feat: add docs to updatePackage, sortPackage, normalizePackage docs: improve documentation and fix typos across the project Aug 20, 2025
@outslept outslept marked this pull request as ready for review August 20, 2025 00:53
Comment thread README.md
Comment on lines 169 to 174
```js
import { resolveFile } from "pkg-types";
const filename = await resolveFile("README.md", {
import { findFile } from "pkg-types";
const filename = await findFile("README.md", {
startingFrom: id,
rootPattern: /^node_modules$/,
matcher: (filename) => filename.endsWith(".md"),
test: (filename) => filename.endsWith(".md"),
});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Couldn't find any references for resolveFile in git history. Still checking

@outslept outslept Aug 20, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Running git log --all --full-history -S "resolveFile" -p shows that resolveFile never existed in the codebase since October 2021. Probably was existing before that, but I'm lazy to use manual search via GitHub 🙈

@outslept outslept Aug 20, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yep. Probably was a leftover from some experiments with API design in the past

image

Comment thread src/packagejson/utils.ts Outdated

@pi0 pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks ❤️

@pi0 pi0 merged commit 6aa04f7 into unjs:main Aug 20, 2025
5 checks passed
@outslept outslept deleted the chore/document-new-additions branch August 20, 2025 09:08
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.

Document new utils

2 participants