{"id":15749471,"url":"https://github.com/ksxgithub/pnpm-issue-0","last_synced_at":"2025-03-31T07:13:22.510Z","repository":{"id":74787221,"uuid":"147334295","full_name":"KSXGitHub/pnpm-issue-0","owner":"KSXGitHub","description":"This is for a feature request","archived":false,"fork":false,"pushed_at":"2018-09-04T11:27:46.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T11:54:11.342Z","etag":null,"topics":["feature-request","issue","pnpm"],"latest_commit_sha":null,"homepage":"https://github.com/pnpm/pnpm/issues/1358","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/KSXGitHub.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":"2018-09-04T11:16:38.000Z","updated_at":"2018-09-04T11:27:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"3291e482-0295-4b49-84c1-4da11a9f3a8f","html_url":"https://github.com/KSXGitHub/pnpm-issue-0","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"173046e57122e7ee1414d932b3a9b951b9e87a8a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fpnpm-issue-0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fpnpm-issue-0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fpnpm-issue-0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fpnpm-issue-0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KSXGitHub","download_url":"https://codeload.github.com/KSXGitHub/pnpm-issue-0/tar.gz/refs/heads/master","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":["feature-request","issue","pnpm"],"created_at":"2024-10-04T06:02:32.106Z","updated_at":"2025-03-31T07:13:22.490Z","avatar_url":"https://github.com/KSXGitHub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PNPM should prioritize linking local (private) packages in repo instead of installing external packages\n\n## Steps to reproduce\n\n1. Clone this repo.\n2. Run `pnpm recursive install`.\n3. Run `node index.js`.\n\n## Expected behavior\n\nAfter step 2, `pnpm` should link `/tools/foo` to `/tools/bar/node_modules`.\n\nAfter step 3, `/index.js` should calls `/tools/bar/index.js` which in turn calls `/tools/foo/index.js` which prints `'foo'`.\n\n## Actual behavior\n\nAfter step 2, `pnpm` installs an actual [`foo` package](https://www.npmjs.com/package/foo) from npm registry which is not what I needed.\n\n## Other details\n\n\u003cdetails\u003e\n  \u003csummary\u003eRepo Overview\u003c/summary\u003e\n\n  * This is a multi-packages repo.\n\n  * Directory [`/tools`] contains packages that are used as tools in dev environment (e.g. to assist testing, or to validate packages before publishing, etc.) and therefore have `\"private\": true` in their `package.json`.\n\n  * Package `/tools/bar` depends on `foo` (`/tools/foo`).\n\n\n**Folder structure:**\n\n```\n  .\n  ├── index.js\n  ├── pnpm-workspace.yaml\n  ├── README.md\n  └── tools\n      ├── bar\n      │   ├── index.js\n      │   └── package.json\n      └── foo\n          ├── index.js\n          └── package.json\n\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eWhy do I want this?\u003c/summary\u003e\n\n  * It is nicer to call package by their names instead of write out full paths to their files.\n  * It allows me to isolate their dependencies from production packages' dependencies.\n  * It makes it easier for me to know whether a dependency is still neccessary.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eWhy don't I just rename to package or increase version to really high?\u003c/summary\u003e\n\n  * It doesn't work in a long term.\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksxgithub%2Fpnpm-issue-0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksxgithub%2Fpnpm-issue-0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksxgithub%2Fpnpm-issue-0/lists"}