{"id":19479222,"url":"https://github.com/pmb0/pnpm-peer-deduplication-not-working","last_synced_at":"2025-07-21T21:36:19.578Z","repository":{"id":195495742,"uuid":"693023868","full_name":"pmb0/pnpm-peer-deduplication-not-working","owner":"pmb0","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-18T15:50:41.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T16:45:51.434Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pmb0.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":"2023-09-18T07:36:36.000Z","updated_at":"2023-09-18T07:41:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e7ca041-f88a-476c-83fe-c84b90955807","html_url":"https://github.com/pmb0/pnpm-peer-deduplication-not-working","commit_stats":null,"previous_names":["pmb0/pnpm-peer-deduplication-not-working"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pmb0/pnpm-peer-deduplication-not-working","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmb0%2Fpnpm-peer-deduplication-not-working","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmb0%2Fpnpm-peer-deduplication-not-working/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmb0%2Fpnpm-peer-deduplication-not-working/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmb0%2Fpnpm-peer-deduplication-not-working/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmb0","download_url":"https://codeload.github.com/pmb0/pnpm-peer-deduplication-not-working/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmb0%2Fpnpm-peer-deduplication-not-working/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266384003,"owners_count":23920989,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-10T19:53:23.820Z","updated_at":"2025-07-21T21:36:19.554Z","avatar_url":"https://github.com/pmb0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pnpm peer dependency issue reproduction repo\n\nThis repository contains two libs and a \"service\". The common dependency `@nestjs/core` is installed multiple times, which leads to problems when using the framework.\n\nRun test:\n\n```sh\ngit clone https://github.com/pmb0/pnpm-peer-deduplication-not-working\npnpm i\npnpm test\n```\n\nExpected result: from the point of view of each package, `@nestjs/core` leads to the same path. But the imports are resolved differently:\n\n```diff\n-node_modules/.pnpm/@nestjs+core@10.2.5_@nestjs+common@10.2.5_@nestjs+microservices@10.2.5_reflect-metadata@0.1.13_rxjs@7.8.1/node_modules/@nestjs/core/index.js\n+node_modules/.pnpm/@nestjs+core@10.2.5_@nestjs+common@10.2.5_@nestjs+platform-express@10.2.5_reflect-metadata@0.1.13_rxjs@7.8.1/node_modules/@nestjs/core/index.js\n```\n\n---\n\n`packages/lib-a/package.json`:\n\n```json\n{\n  \"name\": \"@org/lib-a\",\n  \"version\": \"1.0.0\",\n  \"devDependencies\": {\n    \"@nestjs/core\": \"^10.2.5\",\n    \"@nestjs/platform-express\": \"^10.2.5\"\n  },\n  \"peerDependencies\": {\n    \"@nestjs/core\": \"^10.2.5\",\n    \"@nestjs/platform-express\": \"^10.2.5\"\n  }\n}\n```\n\n`packages/lib-b/package.json`:\n\n```json\n{\n  \"name\": \"@org/lib-b\",\n  \"version\": \"1.0.0\",\n  \"devDependencies\": {\n    \"@nestjs/core\": \"^10.2.5\",\n    \"@nestjs/microservices\": \"^10.2.5\"\n  },\n  \"peerDependencies\": {\n    \"@nestjs/core\": \"^10.2.5\",\n    \"@nestjs/microservices\": \"^10.2.5\"\n  }\n}\n```\n\n`packages/service/package.json`:\n\n```json\n{\n  \"name\": \"@org/service\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"node .\"\n  },\n  \"dependencies\": {\n    \"@nestjs/core\": \"^10.2.5\",\n    \"@nestjs/platform-express\": \"^10.2.5\",\n    \"@org/lib-a\": \"workspace:^\",\n    \"@org/lib-b\": \"workspace:^\"\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmb0%2Fpnpm-peer-deduplication-not-working","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmb0%2Fpnpm-peer-deduplication-not-working","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmb0%2Fpnpm-peer-deduplication-not-working/lists"}