-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
Please confirm that you have searched existing issues in the repo
Yes, I have searched the existing issues
Any related issues?
No response
Tell us about your environment
win11
MarkBind version
v6.0.0
Describe the bug and the steps to reproduce it
Running npx lerna clean
C:\\...\markbind> npx lerna clean
lerna notice cli v8.2.2
lerna ERR! ECONFIGWORKSPACES The "useWorkspaces" option has been removed.
By default lerna will resolve your packages using your package manager's workspaces configuration.
Alternatively, you can manually provide a list of package globs to be used instead via the "packages" option in lerna.json.with Lerna's new version, they have shifted the workspace configuration detection from the lerna/json config to detecting from package.json
We just need to remove the deprecated option from lerna.json (line 7)
Lines 1 to 8 in 1014aad
| { | |
| "packages": [ | |
| "packages/*" | |
| ], | |
| "version": "6.0.0", | |
| "$schema": "node_modules/lerna/schemas/lerna-schema.json", | |
| "useWorkspaces": true | |
| } |
The relevant option to add into package.json has already been added in a previous commit
LamJiuFong@5064692#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
I.e.
Line 4 in 1014aad
| "workspaces": ["packages/*"], |
More Info
Workspaces are used by default and useWorkspaces has been removed
We now use your package manager's workspaces configuration by default in order to resolve packages for lerna to operate on.
If you wish to customize the packages that lerna will operate on, you can still use a packages property in your lerna.json just as you did before, but there is no longer any need for a useWorkspaces flag.
If the packages property is present, lerna will use that, otherwise it will try and read your workspaces configuration.
Running lerna repair will automatically remove useWorkspaces from your lerna.json for you.
Lerna Changelog Breaking Changes -v7.0.0
Expected behavior
npx lerna clean runs correctly.
Anything else?
No response
