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

chore: use package-manager-detector #227

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

userquin
Copy link
Member

@userquin userquin commented Aug 14, 2024

Description

This PR includes package-manager-detector and removes find-up.

Check https://github.com/antfu-collective/ni/pull/227/files#diff-e90114558fac0ebaf58c4b7cc5336fc7f8b4f5d518fdba37635d0c38291d128eR15-R17 , there is no way to build ni without that entry (rollup commonjs plugin):

imagen

Linked Issues

Additional context

@@ -16,7 +16,6 @@
},
"exports": {
".": {
"types": "./dist/index.d.ts",
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove the types?

Copy link
Member Author

@userquin userquin Aug 14, 2024

Choose a reason for hiding this comment

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

Because we don't need it: d.mts, d.cts and d.ts generated, we can omit the types entry (if we include the types entry, CJS being masquerading, check https://publint.dev/@antfu/[email protected] or https://arethetypeswrong.github.io/?p=%40antfu%2Fni%400.22.4):

imagen
publint

imagen
arethetypeswrong

@antfu antfu merged commit 8133faa into main Aug 14, 2024
2 checks passed
@antfu antfu deleted the userquin/chore-use-pm-detector branch August 14, 2024 17:32
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.

3 participants