Bug report
Steps to reproduce
npm install @selfpatch/ros2-medkit-client-ts@0.1.1
- Import
paths type: import type { paths } from '@selfpatch/ros2-medkit-client-ts'
- Test with a non-existent path:
type HasFake = '/this/does/not/exist' extends keyof paths ? true : false;
const test: HasFake = true; // no error - paths is any
Expected behavior
paths should be a typed record of all API endpoints from the OpenAPI spec. keyof paths should only include actual endpoint paths like /apps, /updates, etc.
Actual behavior
paths resolves to any because the import chain is broken:
dist/types.d.ts imports from '../generated/schema.js'
package.json has "files": ["dist"] so generated/ is excluded from the npm tarball
- Consumers with
skipLibCheck: true get silent any - zero type safety on all client calls
The generated/schema.d.ts exists in the repo and is correctly generated by CI, it just never makes it into the published package.
Fix
Add "generated" to the "files" array in clients/typescript/package.json, bump version, and push. CI will auto-publish.
Environment
- ros2_medkit_clients version: 0.1.1
- Spec version: 0.4.0
- OS: N/A (packaging issue)
Bug report
Steps to reproduce
npm install @selfpatch/ros2-medkit-client-ts@0.1.1pathstype:import type { paths } from '@selfpatch/ros2-medkit-client-ts'Expected behavior
pathsshould be a typed record of all API endpoints from the OpenAPI spec.keyof pathsshould only include actual endpoint paths like/apps,/updates, etc.Actual behavior
pathsresolves toanybecause the import chain is broken:dist/types.d.tsimportsfrom '../generated/schema.js'package.jsonhas"files": ["dist"]sogenerated/is excluded from the npm tarballskipLibCheck: trueget silentany- zero type safety on all client callsThe
generated/schema.d.tsexists in the repo and is correctly generated by CI, it just never makes it into the published package.Fix
Add
"generated"to the"files"array inclients/typescript/package.json, bump version, and push. CI will auto-publish.Environment