Skip to content

Commit

Permalink
Use dart run instead of flutter pub run
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed Jan 14, 2025
1 parent ec7a075 commit 5d1ab48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flutter/flutter.mk
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ flutter/backend-list:
.PHONY: flutter/result/json
flutter/result/json:
@echo "Generate .g.dart files for the @JsonSerializable annotation"
@# https://github.com/dart-lang/build/issues/2835#issuecomment-1047849076
cd flutter && ${_start_args} flutter packages pub get
cd flutter && ${_start_args} flutter --no-version-check pub run \
cd flutter && ${_start_args} dart pub get
cd flutter && ${_start_args} dart run \
build_runner build --delete-conflicting-outputs

.PHONY: flutter/build-info
Expand Down

0 comments on commit 5d1ab48

Please sign in to comment.