You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: fix broken path to datatypes causing typescript compilation to fail (#275)
# Bug Example
Trying to build my project with `"nodejs-polars": "^0.15.0"` as a
dependency gives the following error
```
node_modules/nodejs-polars/bin/series/index.d.ts:9:66 - error TS2307: Cannot find module '@polars/datatypes/datatype' or its corresponding type declarations.
9 import type { DTypeToJs, DtypeToJsName, JsToDtype, JsType } from "@polars/datatypes/datatype";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
On inspecting the source TS files I see TS is complaining that the path
doesn't exist.

This bug will not show up in development on this repo because the
`@polars` alias is correctly defined in `tsconfig.json` but the
distributed source code doesn't know anything about this path alias.
# Testing
- updated the path
- successfully build my project
- test loading a CSV file
- On branch of the source code I ran `yarn build:ts` and `yarn test` and
both succeeded


0 commit comments