Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loilo/repro-npm-workspaces-hoisting
Reproduction for a possible bug preventing dependency hoisting in npm workspaces
https://github.com/loilo/repro-npm-workspaces-hoisting
Last synced: about 23 hours ago
JSON representation
Reproduction for a possible bug preventing dependency hoisting in npm workspaces
- Host: GitHub
- URL: https://github.com/loilo/repro-npm-workspaces-hoisting
- Owner: loilo
- Created: 2022-03-04T11:05:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-04T11:26:21.000Z (almost 3 years ago)
- Last Synced: 2024-12-31T03:12:38.221Z (about 2 months ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduction for [npm/cli#4512](https://github.com/npm/cli/issues/4512)
> Reproduction for a possible bug preventing dependency hoisting in npm workspaces
1. Setup
```sh
# Clone this repository
git clone https://github.com/loilo/repro-npm-workspaces-hoisting.git
# cd into the cloned folder
cd repro-npm-workspaces-hoisting
```2. Verify the reported behavior:
1. Install dependencies:
```sh
npm install
```2. The `jest` dependency will not be installed in the project root but in the individual workspace folders.
3. Crosscheck:
1. Remove installed dependencies and lock file:
```sh
git clean -d -f
```
2. Remove or rename the `workspaces/jest` folder.```sh
mv workspaces/jest workspaces/quest
```3. Install dependencies again:
```sh
npm install
```4. All dependencies are properly installed in the project root.