meodai / poline

Esoteric Palette Generator Mico-Lib Interpolating HSL Color in cartesian space
https://meodai.github.io/poline/
MIT License
672 stars 33 forks source link

Define exports.types in package.json #23

Open alexanderl19 opened 2 months ago

alexanderl19 commented 2 months ago

exports.types in package.json is currently missing.

This prevents some bundlers (tested with vite/sveltekit) from properly finding the types for this package despite the types property.

If anyone else is running into this problem, I've aliased poline to the ts file directly in my vite config as a hacky work around. Here's my config:

{
    resolve: {
        alias: {
            poline: './node_modules/poline/src/index.ts',
        },
    },
    ...
}