@socialgouv/yarn-workspace-focus-install
v1.1.38
Published
Install one and only workspace
Downloads
536
Readme
Problem
In a yarn v1 monorepo one does not simply install one workspace.
Solution
$ npx @socialgouv/yarn-workspace-focus-install # in packages/foo
# or
$ npx @socialgouv/yarn-workspace-focus-install --cwd packages/foo
Installation
$ yarn add -D @socialgouv/yarn-workspace-focus-install
$ npx yarn-workspace-focus-install --cwd packages/foo
Usage
$ yarn add -D @socialgouv/yarn-workspace-focus-install
# Focus install packages/foo
$ npx @socialgouv/yarn-workspace-focus-install --cwd packages/foo
# Focus install packages/foo without its devDependencies
$ npx @socialgouv/yarn-workspace-focus-install --cwd packages/foo --production
# Fake focus install packages/foo
$ npx @socialgouv/yarn-workspace-focus-install --cwd packages/foo --dry-run
# Focus install packages/foo pass `--cache-folder /dev/shm/yarn` to yarn
$ npx @socialgouv/yarn-workspace-focus-install --cwd packages/foo -- --cache-folder /dev/shm/yarn
Inspiration
- Workspaces : https://classic.yarnpkg.com/en/docs/workspaces/
yarn workspaces focus
: https://yarnpkg.com/cli/workspaces/focus