blob: 8d7f9f52a126609a26a060c5304f5e2114636d6a [file] [log] [blame]
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'package:build/build.dart';
import 'module_library_builder.dart';
class ModuleCleanup implements PostProcessBuilder {
const ModuleCleanup();
@override
FutureOr<Null> build(PostProcessBuildStep buildStep) {
buildStep.deletePrimaryInput();
return null;
}
@override
final inputExtensions = const [
moduleLibraryExtension,
'.meta_module.raw',
'.meta_module.clean',
'.module',
'.linked.sum',
'.unlinked.sum'
];
}