-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
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:
- Create a new angular app (e.g.
ng new ng18 --standalone false) - Install the dependencies (e.g.
npm install --save @cubejs-client/[email protected] @cubejs-client/[email protected] --save-exact - Add CubeJS module to the main module just to include cubejs in the output build e.g.
import { CubeClientModule } from "@cubejs-client/ngx";- Run
ng build - 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
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
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.

