Add ts declarations
This merge request ensures that the ucam-observe-remote-client package is fully compatible with TypeScript projects by including the compiled /dist folder. Previously, the absence of TypeScript declaration files caused import failures in strongly-typed projects.
Changes include:
- Integrated
npm run buildinto theinstall_dependenciesjob to ensure that the/distfolder, containing the.d.tstypes, is consistently created and published to the npm registry. - Added
dist/to cache paths in.gitlab-ci. - Added
.eslintignore.
These steps guarantee that the package is immediately usable with type safety in TypeScript environments upon installation.
A part of: https://gitlab.developers.cam.ac.uk/uis/devops/iam/card-database/card-frontend/-/issues/230
Edited by Eugene E.