Description
The mw app dependency update and mw app dependency versions commands fail when trying to use Ghostscript.
Steps to Reproduce
- Create a PHP app:
mw app create php -p PROJECT_ID --document-root "current/public" --site-title "test" -q -w
- Try to list Ghostscript versions:
mw app dependency versions gs
- Or try to update:
mw app dependency update APP_ID --set "gs=~10"
Expected Behavior
The command should complete successfully.
Actual Behavior
TypeError: Invalid Version: 10.03.1
at new SemVer (/opt/homebrew/Cellar/mw/1.12.0/libexec/node_modules/semver/classes/semver.js:40:13)
Environment
- mw CLI version: 1.12.0
- OS: macOS (Darwin 24.6.0)