{"id":16149167,"url":"https://github.com/zardoy/repro-typescript-linking","last_synced_at":"2025-04-06T21:41:05.282Z","repository":{"id":103300245,"uuid":"409258181","full_name":"zardoy/repro-typescript-linking","owner":"zardoy","description":"`npm link` problem","archived":false,"fork":false,"pushed_at":"2021-09-24T17:07:54.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T03:41:46.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stackoverflow.com/questions/50010438/install-npm-local-module-directory-without-symlinks/50010667","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zardoy.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-09-22T15:28:59.000Z","updated_at":"2021-09-24T17:07:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0cc24df-a3f4-4392-a84b-0d0117516ede","html_url":"https://github.com/zardoy/repro-typescript-linking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Frepro-typescript-linking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Frepro-typescript-linking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Frepro-typescript-linking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Frepro-typescript-linking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zardoy","download_url":"https://codeload.github.com/zardoy/repro-typescript-linking/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557793,"owners_count":20958046,"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-10T00:37:07.613Z","updated_at":"2025-04-06T21:41:05.250Z","avatar_url":"https://github.com/zardoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Problem: TypeScript Linking\n\nThis repository demonstrates the issue of module resolution.\n\nThis repo uses NPM workspaces for the `source` dependency linking and `start` script for generating modules in both `consumer/node_modules` and `source/node_modules`.\n\nThat said, run `npm i \u0026\u0026 npm run start`, go to [consumer/index.ts](consumer/index.ts), hover types and you will see that TS already resolves types *incorrectly*.\n\nAnd the most interesting part: try to comment first line and see how the uncommented type changes.\n\n\u003e PNPM workspaces note: Despite of that it uses different node_modules layout, the issue sill persists.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardoy%2Frepro-typescript-linking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzardoy%2Frepro-typescript-linking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardoy%2Frepro-typescript-linking/lists"}