{"id":16941574,"url":"https://github.com/prinzhorn/hey-api-openapi-ts-mts","last_synced_at":"2026-05-10T03:05:57.536Z","repository":{"id":244209007,"uuid":"813471554","full_name":"Prinzhorn/hey-api-openapi-ts-mts","owner":"Prinzhorn","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-14T08:45:49.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T17:12:00.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prinzhorn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-11T06:41:38.000Z","updated_at":"2024-06-14T08:45:52.000Z","dependencies_parsed_at":"2024-06-13T12:53:19.234Z","dependency_job_id":null,"html_url":"https://github.com/Prinzhorn/hey-api-openapi-ts-mts","commit_stats":null,"previous_names":["prinzhorn/hey-api-openapi-ts-mts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prinzhorn%2Fhey-api-openapi-ts-mts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prinzhorn%2Fhey-api-openapi-ts-mts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prinzhorn%2Fhey-api-openapi-ts-mts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prinzhorn%2Fhey-api-openapi-ts-mts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prinzhorn","download_url":"https://codeload.github.com/Prinzhorn/hey-api-openapi-ts-mts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244752336,"owners_count":20504254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:09:47.922Z","updated_at":"2026-05-10T03:05:57.452Z","avatar_url":"https://github.com/Prinzhorn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hey-api-openapi-ts-mts\n\nWe have a Node.js project that is still CommonJS, but it uses TypeScript (`tsx` locally, `tsc` to build).\n\nNow I need to integrate a client generated by openapi-ts. This is a minimal repo extracted from our code. `index.ts` is a CommonJS module. It includes `worker.ts`. Which is now an ESM module to be able to load the generated client. Locally with `tsx` this works perfectly fine. But the `tsc` build fails.\n\n## Steps\n\n1. `npm run generate-client`\n2. `npm run start` -\u003e This successfully runs the code with `tsx`\n3. `npm run build` -\u003e This fails to build the code using `tsc`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinzhorn%2Fhey-api-openapi-ts-mts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprinzhorn%2Fhey-api-openapi-ts-mts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinzhorn%2Fhey-api-openapi-ts-mts/lists"}