egoist / tailwindcss-icons

Use any icon (100,000+) from Iconify, for TailwindCSS
MIT License
830 stars 17 forks source link

Using icons from custom package under different scope (not @iconify-json) #41

Closed adjabaev closed 4 months ago

adjabaev commented 4 months ago

Hello,

Is it be possible to use this package using the @iconify-json scope aswell as some (one) custom scope?

Thank you in advance!

hyoban commented 4 months ago

Can you show an example?

adjabaev commented 4 months ago

Let's imagine I would like to use @iconify-json/fa6-brands aswell as @test/custom-icons (hosted on personal server)

right now it has to be @iconify-json/{collection_name} which makes it not possible

the icons are tied to one of my project so I would like to keep them hosted on my server, but npm won't allow me to host packages using @iconify-json as it cannot handle two repositories for one scope

hyoban commented 4 months ago

This should not be supported. May be you can try pnpm add <any-alias-name>@npm:package-name? or load your package manually to custom iconset

adjabaev commented 4 months ago

I didn't know the alias feature existed, thank you very much for your help it works 💯 !