I'm trying to gradually adopt Gleam in my company. I'm currently implementing some core logic in Gleam and want to import it into a Next.js project. Things are working fine, but I'd like to improve the import paths on the TypeScript side. Currently, I need to import it as:
import { } from "@package/core/build/dev/javascript/core/types/core.mjs";
import { List } from "@package/core/build/dev/javascript/prelude.mjs";
Any recommendations on how to improve this?
I tried exploring one option: using "module": "core/build/dev/javascript/core/types/core.mjs" in the package.json, but this would require having a single file entrypoint (something like an index.mjs). Another option would be to have a Gleam module re-export all needed definitions, but this seems not possible at the moment. What other options would you recommend?
