Skip to content

Commit

Permalink
Merge pull request #27 from nstack-io/fix/build_runner_file_exclusion
Browse files Browse the repository at this point in the history
fix: only run NstackBuilder on `nstack.json` files
  • Loading branch information
johsoe authored Apr 16, 2021
2 parents 32eeace + 22f17c3 commit 993304c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/src/nstack_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ class NstackBuilder implements Builder {

@override
FutureOr<void> build(BuildStep buildStep) async {
if (!buildStep.inputId.toString().contains('nstack.json')) {
return;
}
/// Read the input source and parse it as JSON.
final AssetId outputId = buildStep.inputId.changeExtension('.dart');
final StringBuffer output = StringBuffer();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nstack
description: Nstack plugin for Flutter.
version: 0.2.0
version: 0.2.1
author: Nodes Agency
homepage: https://github.com/nstack-io/flutter-sdk

Expand Down

0 comments on commit 993304c

Please sign in to comment.