melos
melos copied to clipboard
Request: runConfigurations independent of melos installation option
melos generates idea run configurations only for global installation https://github.com/invertase/melos/blob/84ccf5aaffdc286a270065d84ae5084d9d95d805/packages/melos/lib/src/common/intellij_project.dart#L192-L200
It's much safer to control dependencies in root pubspec.yaml
dev_dependencies:
melos: ^0.4.11
but bootstrap
generates melos specific runConfigurations
as follows
<option name="SCRIPT_PATH" value="$USER_HOME$/.pub-cache/bin/melos" />
<option name="SCRIPT_OPTIONS" value="bootstrap" />
it could be changed to something like this to be independent of installation option
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/.fvm/flutter_sdk/bin/dart" />
<!--<option name="SCRIPT_PATH" value="<flutter-sdk-path>/bin/dart" />-->
<option name="SCRIPT_OPTIONS" value="pub run melos bootstrap" />
I suppose it's linked to #81 since this requires proper flutter sdk path
This makes sense, we probably shouldn't be using hardcoded paths like that
I'd need to spend some time investigating possible solutions for this