{"id":17913491,"url":"https://github.com/mariasolos/path-rewrite-bug","last_synced_at":"2025-04-03T07:23:36.670Z","repository":{"id":259254514,"uuid":"876947334","full_name":"MariaSolOs/path-rewrite-bug","owner":"MariaSolOs","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-23T16:47:21.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T08:16:20.154Z","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/MariaSolOs.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-10-22T20:24:35.000Z","updated_at":"2024-10-23T16:47:25.000Z","dependencies_parsed_at":"2024-10-23T22:51:09.272Z","dependency_job_id":"367af8e1-a97e-46e3-b17b-0c274486408f","html_url":"https://github.com/MariaSolOs/path-rewrite-bug","commit_stats":null,"previous_names":["mariasolos/path-rewrite-bug"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaSolOs%2Fpath-rewrite-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaSolOs%2Fpath-rewrite-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaSolOs%2Fpath-rewrite-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaSolOs%2Fpath-rewrite-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MariaSolOs","download_url":"https://codeload.github.com/MariaSolOs/path-rewrite-bug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246953521,"owners_count":20860032,"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-28T19:52:11.144Z","updated_at":"2025-04-03T07:23:36.645Z","avatar_url":"https://github.com/MariaSolOs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## To repro:\n\nRun:\n\n```bash\npnpm install\npnpm build\n```\n\nPackage `mod3` produces an invalid type declaration file:\n\n```typescript\nexport declare const getFoo: () =\u003e import(\"mod1\").Foo;\n//# sourceMappingURL=index.d.ts.map\n```\n\nDespite not depending on `mod1`, its types import from it. Since `mod2` re-exports `mod1`s types, and since `mod3` depends on `mod2`, compiling `mod3` should produce this:\n\n```typescript\nexport declare const getFoo: () =\u003e import(\"mod2\").Foo;\n//# sourceMappingURL=index.d.ts.map\n```\n\n```diff\n-export declare const getFoo: () =\u003e import(\"mod1\").Foo;\n+export declare const getFoo: () =\u003e import(\"mod2\").Foo;\n //# sourceMappingURL=index.d.ts.map\n```\n\nBecause `mod3` has an invalid `index.d.ts`, `mod4` fails compilation when doing a lib check of `mod3`'s type declaration files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariasolos%2Fpath-rewrite-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariasolos%2Fpath-rewrite-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariasolos%2Fpath-rewrite-bug/lists"}