Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added installations info and new section package dep. #179

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ Some documented features might not have been published yet, see the [change log]
- Run `yalc remove --all` to remove all packages from project.

### Installations
- Run `yalc installations clean my-package` to unpublish a package published with `yalc publish`. This command assumes that you already removed all library installations from projects with `yalc remove my-package`, else it won't work.
- Run `yalc installations show my-package` to show all packages to which `my-package` has been installed. Omitting the `my-package` shows all installations.

- Run `yalc installations clean my-package` to unpublish a package published with `yalc publish`
- Run `yalc installations show my-package` to show all packages to which `my-package` has been installed.

## Advanced usage

Expand Down Expand Up @@ -141,6 +141,9 @@ If you want to override default pure behavior use `--no-pure` flag.

- For example add `workspace-resolve=false` line to the `.yalcrc` file to turn off `workspace:` protocol resolution or `sig=false` to disable package version hash signature.

### Package dependencies
- The packages regular `dependencies` are not added to the project. A workaround is to delete the `node_modules` directory, add the package with yalc (works only with `yalc add` since this modifies the `package.json`) and then run `npm install` (which now installs our packages regular dependencies).

## Related links

- [yarn probably shouldn't cache packages resolved with a file path](https://github.com/yarnpkg/yarn/issues/2165)
Expand Down