feature: workspaces: ability to install in a workspace in isolation
**Do you want to request a *feature* or report a *bug*?** feature **What is the current behavior?** Running `yarn install` anywhere in a workspaced project will install node_modules in the root with hoisting and symlinking. But sometimes one needs to test a single workspace installation in isolation from other workspaces. Example: I want to check if `jest/packages/jest-haste-map` has all dependencies listed correctly and I want to install all required node_modules inside `jest/packages/jest-haste-map/node_modules`. Solution: Introduce a new installation flag `--ignore-workspaces`, when you run `yarn install --ignore-workspaces` Yarn would not go up the folder tree and will not find the workspace root and will treet the current CWD as a single project. Questions: 1. Should we go completely e2e here or still symlink other workspaces if they are in dependencies? 2. Should we remove node_modules from the root so that it does not affect Node.js module resolution?
Posted by bestander on Aug 4, 2017, 5:16 PM
Tags
Related issues
- I just invented a simple upgrade script for my father's ancient Fedora install.
- Weekly limit is draining like the old 5-hour limit
- Rather people unable to setup a static websites where needed.
- Besides the general awfulness of Windows that you describe, have you looked at C:\Windows recently?
- Does your work involves using teams or ms office or docker?
- Meta: Sorry, no response was returned
Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments
onboarding (Other)
I just invented a simple upgrade script for my father's ancient Fedora install.
Weekly limit is draining like the old 5-hour limit
Rather people unable to setup a static websites where needed.
Besides the general awfulness of Windows that you describe, have you looked at C:\Windows recently?
Does your work involves using teams or ms office or docker?
Meta: Sorry, no response was returned
Recent FrankerFaceZ Issues with Firefox
Allow creating a `python` shim on `python install`
feature: workspaces: ability to install in a workspace in isolation
**Do you want to request a *feature* or report a *bug*?** feature **What is the current behavior?** Running `yarn install` anywhere in a workspaced project will install node_modules in the root with hoisting and symlinking. But sometimes one needs to test a single workspace installation in isolation from other workspaces. Example: I want to check if `jest/packages/jest-haste-map` has all dependencies listed correctly and I want to install all required node_modules inside `jest/packages/jest-haste-map/node_modules`. Solution: Introduce a new installation flag `--ignore-workspaces`, when you run `yarn install --ignore-workspaces` Yarn would not go up the folder tree and will not find the workspace root and will treet the current CWD as a single project. Questions: 1. Should we go completely e2e here or still symlink other workspaces if they are in dependencies? 2. Should we remove node_modules from the root so that it does not affect Node.js module resolution?
Comments (0)
No comments yet. Start the discussion.