Circum-Icons icon indicating copy to clipboard operation
Circum-Icons copied to clipboard

Publish circum-icon-core on npm, export { iconList }

Open einar-hjortdal opened this issue 1 year ago • 1 comments

I want to use these icons in Inferno. I need to be able to import iconList in my Inferno wrapper. To do so, I need a package that exports the iconList const. Right now, the only solution is to clone your repository, manually copy the iconList.js file in my source directory. It would be better if you could publish a package that exports { iconList } instead. This is to help third parties to include your package as a whole (including a copy of the license, links to source etc) in their distribution.

I would go one step further and refactor your packages to have circum-icon-core as dependency and import { iconList } from circum-icon-core

Temporarily, the manual copy/pasting approach is used for this package.

einar-hjortdal avatar Nov 20 '23 10:11 einar-hjortdal

Hi @Coachonko,

Sorry for the delay. There is a lot of improvement that could be done. I know that it is not ideal but you can probably access iconlist this way: import { icons } from '@klarr-agency/circum-icons-svelte/src/iconList'; Anyway, I agree with you it would be best to use circum-icon-core as a dependency for the other packages.

Feel free to open a pull request.

Klarr-Agency avatar Nov 24 '23 18:11 Klarr-Agency