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

JSR Support #699

Open
Malix-Labs opened this issue Oct 23, 2024 · 1 comment · May be fixed by #701
Open

JSR Support #699

Malix-Labs opened this issue Oct 23, 2024 · 1 comment · May be fixed by #701

Comments

@Malix-Labs
Copy link

Hey folks !

Currently, Svelte Society only supports NPM :

https://www.sveltesociety.dev/help/submitting?type=package

Would it be possible to also support JSR ?

@Malix-Labs Malix-Labs changed the title JSR JSR Support Oct 23, 2024
@MacFJA
Copy link
Collaborator

MacFJA commented Oct 23, 2024

To be exact, we support NPM (and NPM-compatible, like PNPM and Yarn) and Ruby (RubyGen and Bundler).

So adding JSR wouldn't be an issue.

How I imagine it:

  • a new key (jsr) will be allowed in packages.json to put the JSR package name
  • On the website, a new package manager (Deno) will be added for NPM group (which will be renamed to TS/JS)
  • On the website for each package
    • If the package manager is Deno
      • for a NPM package, the command will be deno install npm:sax
      • for a JSR package, the command will be deno install @luca/cases
    • If the package manager is NPM
      • for a NPM package, the command will be npm install sax
      • for a JSR package, the command will be npx jsr add @luca/cases
    • If the package manager is Yarn
      • for a NPM package, the command will be yarn add sax
      • for a JSR package, the command will be yarn dlx jsr add @luca/cases
    • If the package manager is PNPM
      • for a NPM package, the command will be pnpm add sax
      • for a JSR package, the command will be pnpm dlx jsr add @luca/cases

MacFJA added a commit to MacFJA/sveltesociety.dev that referenced this issue Oct 25, 2024
@MacFJA MacFJA linked a pull request Oct 25, 2024 that will close this issue
2 tasks
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 a pull request may close this issue.

2 participants