Skip to content

Conversation

@bkeepers
Copy link
Contributor

@bkeepers bkeepers commented Jan 6, 2026

The .d.ts files published by vite are not transforming the json imports, leading to this error:

../../node_modules/@neaps/tide-database/dist/index.d.ts:47:41 - error TS2307: Cannot find module './constituents.json' or its corresponding type declarations.

47 export { default as constituents } from './constituents.json';
                                           ~~~~~~~~~~~~~~~~~~~~~

This replaces vite with tsdown for bundling, which does the right thing with the json imports. This also adds a CJS build, which neaps currently supports.

@bkeepers bkeepers merged commit 92a8578 into main Jan 6, 2026
1 check passed
@bkeepers bkeepers deleted the tsdown branch January 6, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant