In build_runner I assumed that the presence of workspace_ref.json means the package is in a workspace, but this doesn't work: if you remove resolution: workspace then dart pub get then workspace_ref.json is not deleted.
I will fix build_runner by checking for resolution: workspace in the pubspec.
Maybe it would be good to also make pub get clean up workspace_ref.json? Feel free to close if this doesn't make sense for you, it's just a suggestion :) thanks!
build_runner issue: dart-lang/build#4888 (comment)
In
build_runnerI assumed that the presence ofworkspace_ref.jsonmeans the package is in a workspace, but this doesn't work: if you removeresolution: workspacethendart pub getthenworkspace_ref.jsonis not deleted.I will fix
build_runnerby checking forresolution: workspacein the pubspec.Maybe it would be good to also make
pub getclean upworkspace_ref.json? Feel free to close if this doesn't make sense for you, it's just a suggestion :) thanks!build_runnerissue: dart-lang/build#4888 (comment)