cube
cube copied to clipboard
api-gateway: TS compilation error (files missing from NPM package)
Describe the bug The API Gateway npm package is missing files from src/types. The source folder includes several .d files which are missing from the published package, causing compilation errors in TS environments.
Version: 0.29.57
Yep, all *.d.ts
files are not included in the dist
bundle (see https://www.unpkg.com/browse/@cubejs-backend/[email protected]/dist/src/types/) and only enums.ts
gets released.
Typescript does not copy .d.ts
files during the build process because it does not transpile them. The solution is to either copy those files manually (during the build), or rename them to .ts
so tsc
picks them up.
@buntarb Any timeline on this getting fixed?
@parkerself22 @eugene1g @mfulop
hi there, hope you're doing great; please check this out #5132 🙏