{"id":15749798,"url":"https://github.com/timonvs/tsimp-imports","last_synced_at":"2025-03-31T07:14:37.174Z","repository":{"id":217326223,"uuid":"743573357","full_name":"TimonVS/tsimp-imports","owner":"TimonVS","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-15T15:24:43.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T11:49:04.613Z","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/TimonVS.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}},"created_at":"2024-01-15T14:22:58.000Z","updated_at":"2024-01-15T14:23:05.000Z","dependencies_parsed_at":"2024-01-15T19:59:33.717Z","dependency_job_id":"c2babd60-44bc-47e0-9d2d-70ebc02bf77d","html_url":"https://github.com/TimonVS/tsimp-imports","commit_stats":null,"previous_names":["timonvs/tsimp-imports"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Ftsimp-imports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Ftsimp-imports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Ftsimp-imports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Ftsimp-imports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimonVS","download_url":"https://codeload.github.com/TimonVS/tsimp-imports/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429493,"owners_count":20775808,"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-04T06:20:31.718Z","updated_at":"2025-03-31T07:14:37.155Z","avatar_url":"https://github.com/TimonVS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsimp imports bug reproduction\n\nUse Node.js v18.18.2, ts-node breaks with v18.19.0.\n\n## tsimp\n\nRelative imports work fine:\n\n```sh\nnode --conditions=development --loader=tsimp/loader src/relative-import.ts\n```\n\n[Subpath imports](https://nodejs.org/api/packages.html#subpath-imports) using the `\"imports\"` field in `package.json` fails with `Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/timon.vanspronsen/Code/tsimp-imports/src/utils/math.js'`.\n\n```sh\nnode --conditions=development --loader=tsimp/loader src/imports.ts\n```\n\n## ts-node\n\nComparison with ts-node, the below command works, but only after an initial build with `npx tsc` (it does use the development version of `math.ts` afterwards):\n\n```sh\nnode --conditions=development --loader=ts-node/esm src/imports.ts\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonvs%2Ftsimp-imports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimonvs%2Ftsimp-imports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonvs%2Ftsimp-imports/lists"}