Skip to content

Commit 993304c

Browse files
authored
Merge pull request #27 from nstack-io/fix/build_runner_file_exclusion
fix: only run NstackBuilder on `nstack.json` files
2 parents 32eeace + 22f17c3 commit 993304c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/src/nstack_builder.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class NstackBuilder implements Builder {
1616

1717
@override
1818
FutureOr<void> build(BuildStep buildStep) async {
19+
if (!buildStep.inputId.toString().contains('nstack.json')) {
20+
return;
21+
}
1922
/// Read the input source and parse it as JSON.
2023
final AssetId outputId = buildStep.inputId.changeExtension('.dart');
2124
final StringBuffer output = StringBuffer();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nstack
22
description: Nstack plugin for Flutter.
3-
version: 0.2.0
3+
version: 0.2.1
44
author: Nodes Agency
55
homepage: https://github.com/nstack-io/flutter-sdk
66

0 commit comments

Comments
 (0)