yarn-berry-deduplicate 6.0.5 → 6.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -78
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -160,86 +160,10 @@ exit with status 1 if there are duplicated packages. Example:
160
160
 
161
161
  ```sh
162
162
  # Print the list of duplicated packages and exit with status 1
163
- yarn-deduplicate --list --fail
163
+ yarn dlx yarn-berry-deduplicate --list --fail
164
164
 
165
165
  # Deduplicate yarn.lock and exit with status 1 if changes were required
166
- yarn-deduplicate --fail
167
- ```
168
-
169
- ---
170
-
171
- ## Migration guide
172
-
173
- ### From 2.x to 3.x
174
-
175
- In this version we have adopted variadic arguments from commander.js. These are the equivalent
176
- commands:
177
-
178
- ```sh
179
- #Old
180
- yarn-deduplicate --packages libA,libB
181
- yarn-deduplicate --scopes @scopeA,@scopeB
182
- yarn-deduplicate --exclude libA,libB
183
-
184
- #New
185
- yarn-deduplicate --packages libA libB
186
- yarn-deduplicate --scopes @scopeA @scopeB
187
- yarn-deduplicate --exclude libA libB
188
- ```
189
-
190
- A consequence of this change is that if you were using one or more of the affected options (
191
- `--packages`, `--scopes` or `--exclude`) **and** a custom path for `yarn.lock`, you need to use `--`
192
- to "stop" package/scope/exclude parsing:
193
-
194
- ```sh
195
- yarn-deduplicate --packages libA libB -- path/to/yarn.lock
196
- ```
197
-
198
- ### From 0.x to 1.x
199
-
200
- In this version we have renamed the project and refactored the CLI. These are the equivalent
201
- commands:
202
-
203
- #### Installation
204
-
205
- ```sh
206
- # Old
207
- npm install -g yarn-tools
208
-
209
- # New
210
- npm install -g yarn-deduplicate
211
- ```
212
-
213
- #### List duplicates
214
-
215
- ```sh
216
- # Old
217
- yarn-tools list-duplicates path/to/yarn.lock
218
-
219
- # New
220
- yarn-deduplicate --list path/to/yarn.lock
221
- ```
222
-
223
- ### Deduplicate yarn.lock
224
-
225
- ```sh
226
- # Old
227
- yarn-tools fix-duplicates path/to/yarn.lock > tmp
228
- mv tmp path/to/yarn.lock
229
-
230
- # New
231
- yarn-deduplicate path/to/yarn.lock
232
- ```
233
-
234
- ### Limit packages to deduplicate yarn.lock
235
-
236
- ```sh
237
- # Old
238
- yarn-tools fix-duplicates path/to/yarn.lock package1 package2
239
-
240
-
241
- # New
242
- yarn-deduplicate --packages package1,package2 path/to/yarn.lock
166
+ yarn dlx yarn-berry-deduplicate --fail
243
167
  ```
244
168
 
245
169
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yarn-berry-deduplicate",
3
- "version": "6.0.5",
3
+ "version": "6.0.6",
4
4
  "bin": "./dist/cli.js",
5
5
  "description": "Deduplication tool for yarn.lock files",
6
6
  "keywords": [