Skip to content

@cubejs-client/ngx broken after v1.2.0Β #9268

@loremaps

Description

@loremaps

Describe the bug

After #9152 the tarball contains two package.json files with the correct one located inside the dist folder.
Therefore we can no longer import from @cubejs-client/ngx

To Reproduce
Steps to reproduce the behavior:

  1. Create a new angular app (e.g. ng new ng18 --standalone false)
  2. Install the dependencies (e.g. npm install --save @cubejs-client/[email protected] @cubejs-client/[email protected] --save-exact
  3. Add CubeJS module to the main module just to include cubejs in the output build e.g.
import { CubeClientModule } from "@cubejs-client/ngx";
  1. Run ng build
  2. See the error:
Cannot find module '@cubejs-client/ngx' or its corresponding type declarations.

Please note that it works if we import from @cubejs-client/ngx/dist

Expected behavior
The CubeClient should be able to be imported from @cubejs-client/ngx.

Screenshots
If applicable, add screenshots to help explain your problem.

Please see v1.0.9 structure and the root package.json contains the correct entrypoints

Image

This is from the version v1.2.0 after 57bcbc4 and the entrypoints are now in the dist/package.json and not in the root package.json

Image

Version:
1.2.0
Node -v: v22.13.1

Additional context
Building the package locally (dev mode) seems to produce the correct dist folder. So it must be with lerna and publish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions