Describe the bug
The package command crashes since the upgrade of yarn from v1.19 to v4.6
To Reproduce
Run yarn serverless package --stage xx
Expected behavior
It should bundle without an error.
Screenshots or Logs
Error: Command failed with exit code 1: yarn list --json --production
Usage Error: Couldn't find a script named "list".

Versions (please complete the following information):
- OS: macOS 15.2
- Serverless Framework Version:
Framework Core: 3.40.0 (local)
Plugin: 7.2.3
SDK: 4.5.1
- Plugin Version: 1.54.6
Additional context
I'm using yarn v4.6.0, and it seems the list command has been deprecated in favor of info as stated in the docs : https://yarnpkg.com/migration/guide#renamed-commands
Describe the bug
The package command crashes since the upgrade of yarn from v1.19 to v4.6
To Reproduce
Run
yarn serverless package --stage xxExpected behavior
It should bundle without an error.
Screenshots or Logs
Versions (please complete the following information):
Framework Core: 3.40.0 (local)
Plugin: 7.2.3
SDK: 4.5.1
Additional context
I'm using yarn v4.6.0, and it seems the
listcommand has been deprecated in favor ofinfoas stated in the docs : https://yarnpkg.com/migration/guide#renamed-commands