Skip to content

Commit

Permalink
use flutter pub instead of flutter packages
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Feb 19, 2024
1 parent 8ec440c commit 42e0881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bin/pubget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Future pubGet(List<String> directories, PubGetOptions options) async {
if (!isFlutterSupported) {
continue;
}
cmd = FlutterCmd(['packages', 'get'])..workingDirectory = dir;
cmd = FlutterCmd(['pub', 'get'])..workingDirectory = dir;
} else {
cmd = pkg.pubCmd(pubGetArgs(
offline: options.offline, packagesDir: options.packagesDir));
Expand Down
2 changes: 1 addition & 1 deletion lib/bin/pubupgrade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Future pubUpgrade(List<String> directories, PubGetOptions options) async {
if (!isFlutterSupported) {
continue;
}
cmd = FlutterCmd(['packages', 'upgrade'])..workingDirectory = dir;
cmd = FlutterCmd(['pub', 'upgrade'])..workingDirectory = dir;
} else {
cmd = pkg.pubCmd(pubUpgradeArgs(
offline: options.offline, packagesDir: options.packagesDir));
Expand Down

0 comments on commit 42e0881

Please sign in to comment.