From ac7a2773f30e107edd18a2960e187abc7640c03c Mon Sep 17 00:00:00 2001 From: Lars <32460418+advename@users.noreply.github.com> Date: Tue, 18 Jan 2022 13:00:04 +0100 Subject: [PATCH 1/3] Added installations info and new section package dep. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68fd514..8255fab 100644 --- a/README.md +++ b/README.md @@ -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 instllations. -- 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 @@ -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 install the package with yalc, delete the `node_modules` directory, run `npm install` (which now installs our packages regular dependencies) and finally install the package with yalc again. + ## Related links - [yarn probably shouldn't cache packages resolved with a file path](https://github.com/yarnpkg/yarn/issues/2165) From 3bd99be717512afbeaa7f5f850c39ff7be09c0e8 Mon Sep 17 00:00:00 2001 From: Lars <32460418+advename@users.noreply.github.com> Date: Tue, 18 Jan 2022 13:02:33 +0100 Subject: [PATCH 2/3] Typo fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8255fab..c3b2134 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Some documented features might not have been published yet, see the [change log] ### 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 instllations. +- Run `yalc installations show my-package` to show all packages to which `my-package` has been installed. Omitting the `my-package` shows all installations. ## Advanced usage From f3df72a2215f8d0d76f556e75199cd4e39b5ee11 Mon Sep 17 00:00:00 2001 From: Lars <32460418+advename@users.noreply.github.com> Date: Tue, 18 Jan 2022 14:05:52 +0100 Subject: [PATCH 3/3] Edit workflow for dependencies of dependencies --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3b2134..80a5e78 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ 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 install the package with yalc, delete the `node_modules` directory, run `npm install` (which now installs our packages regular dependencies) and finally install the package with yalc again. +- 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