Skip to content

Inconsistent import path for @ladybugdb/core and missing types in subpackage package.json #23

Description

@mcanoglu

Hi,

While testing ladybugdb with TypeScript and Node.js, I noticed that the documentation always references imports from @ladybugdb/core. However, the actual lbugjs.node binary is located in a subpackage (e.g., @ladybugdb/core-win32-x64). This causes a "module not found" error (see native.js line 13 for ref).
If I import directly from the subpackage (e.g., @ladybugdb/core-win32-x64), the types property is missing in the subpackage’s package.json. This field is not copied from the root package.json (Ref), which breaks TypeScript support.

I’m happy to submit a PR to fix this, but I’d like to align on the preferred approach first.

Let me know how you’d like to proceed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions