typesafe-i18n icon indicating copy to clipboard operation
typesafe-i18n copied to clipboard

Add Bun and BunX Support

Open Hachi-R opened this issue 11 months ago • 7 comments

Version

5.26.2

Describe the bug

when trying to install with bun x typesafe-i18n --setup

[typesafe-i18n] version 5.26.2 ✔ Config file '.typesafe-i18n.json' exists already. Do you want to override it? › Yes [typesafe-i18n] See this link for more information on how to setup this project: https://github.com/ivanhofer/typesafe-i18n/tree/main/packages/generator#options ✔ What is your base locale? … en ? What adapter do you want to use? › - Use arrow-keys. Return to submit. ✔ What adapter do you want to use? › Svelte ✔ Are you using esm modules in your project? › Yes ✔ Are you using TypeScript or JavaScript? › TypeScript ✔ Where do you want your locale files to be located? … ./src/lib/i18n [typesafe-i18n] generated config file: '.typesafe-i18n.json' [typesafe-i18n] installing dependencies ... [typesafe-i18n] ERROR: Unsupported package manager. Please install the 'typesafe-i18n' npm-package manually and open a new issue at https://github.com/ivanhofer/typesafe-i18n/issues and tell us what package manager you are using.

Reproduction

  1. install the latest bun version here;
  2. open an terminal window;
  3. run bun x typesafe-i18n --setup;
  4. answer the questions;
  5. you gets the error.

Logs

~/Pr/P/watch2gether on main !6 ?1 ❯ bun x typesafe-i18n --setup
[typesafe-i18n] version 5.26.2
✔ Config file '.typesafe-i18n.json' exists already. Do you want to override it? › Yes
[typesafe-i18n] See this link for more information on how to setup this project: https://github.com/ivanhofer/typesafe-i18n/tree/main/packages/generator#options
✔ What is your base locale? … en
? What adapter do you want to use? › - Use arrow-keys. Return to submit.
✔ What adapter do you want to use? › Svelte
✔ Are you using esm modules in your project? › Yes
✔ Are you using TypeScript or JavaScript? › TypeScript
✔ Where do you want your locale files to be located? … ./src/lib/i18n
[typesafe-i18n] generated config file: '.typesafe-i18n.json'
[typesafe-i18n] installing dependencies ...
[typesafe-i18n] ERROR: Unsupported package manager. Please install the 'typesafe-i18n' npm-package manually and open a new issue at https://github.com/ivanhofer/typesafe-i18n/issues and tell us what package manager you are using.

If you are using this project in a commercial environment please consider sponsoring 'typesafe-i18n':
https://github.com/sponsors/ivanhofer

Config

not generated

Additional information

No response

Hachi-R avatar Mar 22 '24 19:03 Hachi-R

Thank you for the request, we'll add bun package manager support soon. In the meantime, you could just use npm, pnpm for the setup and then switch to bun package manager after the setup.

sjaghori avatar Apr 08 '24 06:04 sjaghori

Also looking forward to this 🙏

nephix avatar May 29 '24 21:05 nephix

Yep, me too!

valerio-pescatori avatar Jun 03 '24 07:06 valerio-pescatori

@sjaghori, who is maintaining this repo right now? I thought nobody has the permission to do so?

Cluster2a avatar Jun 07 '24 09:06 Cluster2a

@Cluster2a, please have a little patience. This is not the end for this library.

sjaghori avatar Jun 10 '24 18:06 sjaghori

Hey @sjaghori, thanks for the great news! Where would you communicate about the future of the library? I don't want to miss the announcement

shadow-identity avatar Jun 17 '24 09:06 shadow-identity

hi @sjaghori ... any news on this?

ryou90 avatar Jul 23 '24 14:07 ryou90