blob: 28cc99bd5d6557869aa01731a56da884ed89b487 [file] [log] [blame]
# Copyright 2019 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
pushd $1 > /dev/null
# agent doesn't use build_runner as of this writing.
if grep -lq "build_runner" pubspec.yaml; then
pub run build_runner build --delete-conflicting-outputs
# See for why this is necessary.
pub global run tuneup check
popd > /dev/null