{"id":18879739,"url":"https://github.com/loilo/repro-npm-workspaces-hoisting","last_synced_at":"2026-01-26T11:35:06.965Z","repository":{"id":75329182,"uuid":"466090914","full_name":"loilo/repro-npm-workspaces-hoisting","owner":"loilo","description":"Reproduction for a possible bug preventing dependency hoisting in npm workspaces","archived":false,"fork":false,"pushed_at":"2022-03-04T11:26:21.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T03:12:38.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/loilo.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":"2022-03-04T11:05:37.000Z","updated_at":"2022-03-04T11:05:37.000Z","dependencies_parsed_at":"2023-06-06T04:15:30.224Z","dependency_job_id":null,"html_url":"https://github.com/loilo/repro-npm-workspaces-hoisting","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/loilo%2Frepro-npm-workspaces-hoisting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Frepro-npm-workspaces-hoisting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Frepro-npm-workspaces-hoisting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Frepro-npm-workspaces-hoisting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loilo","download_url":"https://codeload.github.com/loilo/repro-npm-workspaces-hoisting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239841742,"owners_count":19705981,"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-11-08T06:39:06.119Z","updated_at":"2026-01-26T11:35:06.916Z","avatar_url":"https://github.com/loilo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproduction for [npm/cli#4512](https://github.com/npm/cli/issues/4512)\n\n\u003e Reproduction for a possible bug preventing dependency hoisting in npm workspaces\n\n1. Setup\n\n   ```sh\n   # Clone this repository\n   git clone https://github.com/loilo/repro-npm-workspaces-hoisting.git\n   \n   # cd into the cloned folder\n   cd repro-npm-workspaces-hoisting\n   ```\n\n2. Verify the reported behavior:\n\n   1. Install dependencies:\n\n      ```sh\n      npm install\n      ```\n\n   2. The `jest` dependency will not be installed in the project root but in the individual workspace folders.\n\n3. Crosscheck:\n\n   1. Remove installed dependencies and lock file:\n\n      ```sh\n      git clean -d -f\n      ```\n   \n   2. Remove or rename the `workspaces/jest` folder.\n\n      ```sh\n      mv workspaces/jest workspaces/quest\n      ```\n\n   3. Install dependencies again:\n\n      ```sh\n      npm install\n      ```\n\n   4. All dependencies are properly installed in the project root.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floilo%2Frepro-npm-workspaces-hoisting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floilo%2Frepro-npm-workspaces-hoisting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floilo%2Frepro-npm-workspaces-hoisting/lists"}