Skip to content

lerna.json useWorkspaces is not allowed #930

Closed
@achille1789

Description

Describe the bug

Hi, I am not sure if it is an actual bug but I don't find any note about it.
My lerna.json has the property: "useWorkspaces": true
The schema was allowing the property with v3.8.0 but with v3.9.0 (and 3.9.1 too), my editor complains that that property is not longer allowed.

Expectation

Probably the same behaviour as in v3.8.0

Reproduction

lerna.json:

{
  "$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
  "version": "independent",
  "command": {
    "version": {
      "allowBranch": [
        "main"
      ],
      "message": "chore(release): [ci skip] version bump",
      "conventionalCommits": true,
      "private": false,
      "syncWorkspaceLock": true
    }
  },
  "yes": true,
  "changelogPreset": "./changelog-preset.config.js",
  "useWorkspaces": true,
  "npmClient": "npm",
  "ignoreChanges": [
    "**/unit/**"
  ]
}

all good with version 3.8.0
useWorkspaces not allowed with version 3.9.0

Lerna config and logs

lerna.json

<!-- Please paste your `lerna.json` here -->

lerna-debug.log

<!-- If you have a `lerna-debug.log` available, please paste it here -->
<!-- Otherwise, feel free to delete this <details> block -->

Environment Info

System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Pro
Memory: 139.53 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
Browsers:
Chrome: 128.0.6613.138
Safari: 17.6
npmPackages:
@lerna-lite/cli: 3.9.0 => 3.9.0
@lerna-lite/run: 3.9.0 => 3.9.0
@lerna-lite/version: 3.9.0 => 3.9.0

Used Package Manager

npm

Validations

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions