Skip to content

Better detection version #2801

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 7 commits into from
Jul 18, 2025
Merged

Better detection version #2801

merged 7 commits into from
Jul 18, 2025

Conversation

jycouet
Copy link
Contributor

@jycouet jycouet commented Jul 18, 2025

  • using semver (I started to re implement... but it's probably not too much point!)
  • better fallback for all not managed things (latest, catalog, pkg, ...)

@jycouet
Copy link
Contributor Author

jycouet commented Jul 18, 2025

@dummdidumm should be better now.

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

thank you!


if (
versionToCheck.includes('latest') ||
versionToCheck.includes('catalog:') ||
Copy link
Member

Choose a reason for hiding this comment

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

wondering if we should investigate supporting that. Could be as easy as travering upwards searching for a pnpm workspace file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes but, then you have bun as well (another look for file)...

I was also thinking: Maybe we should not check for package.json, but the installed package in node_modules directly ? Like this, we don't care about pnpm & bun & latest, it's what is installed.

But then it will work only if node_modules are here (maybe good enough ?)


I'm thinking for a long time about doing a package "solving" this!

Let me know what is in your mind :)

@dummdidumm dummdidumm merged commit b73d807 into sveltejs:master Jul 18, 2025
3 checks passed
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy