I have developed a tool here to facilitate my development with bun.sh using workspaces that will be used as npm package however I have 2 problems,
When I bun install the 'core' packages from npm and test a sample, I get this error:
Could not find a declaration file for module '@cosmoosjs/core', index.js' implicitly has an 'any' type.
I tried this, but it doesn't work
The second problem is that when I try to build the typescript declarations for the hono package here, it crashes and can't load them because it refers to the other module via a workspace. I can't build the declarations but I can build the project.
As I'm working on this problem I found that the first problem which was the following:
Could not find a declaration file for module '@cosmoosjs/core', index.js' implicitly has an 'any' type.
This was because Bun.sh workspace implementation seems to be very buggy you need to use Bun link
here a more detailed anwser
My other problem was that I was trying to generate my declaration with bun. What bun doc is saying:
Note that the Bun bundler is not intended to replace tsc for typechecking or generating type declarations.
So I used tsup to fix the declaration issue