From 4d5ea72ae22e1b0ef6d878b4b16525cb0f3d1444 Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Thu, 20 Jun 2024 09:48:06 -0400 Subject: [PATCH] Generator setup fix --- packages/mix/lib/src/core/spec.dart | 4 ++-- packages/mix_generator/build.yaml | 14 ++++++-------- packages/mix_generator/lib/mix_generator.dart | 10 ++++------ 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/packages/mix/lib/src/core/spec.dart b/packages/mix/lib/src/core/spec.dart index 047eaefc8..5a0bedaf8 100644 --- a/packages/mix/lib/src/core/spec.dart +++ b/packages/mix/lib/src/core/spec.dart @@ -8,7 +8,7 @@ import 'attribute.dart'; import 'factory/mix_data.dart'; @immutable -abstract base class Spec> with EqualityMixin { +abstract class Spec> with EqualityMixin { final AnimatedData? animated; const Spec({this.animated}); @@ -46,5 +46,5 @@ abstract base class SpecUtility PartBuilder( +Builder specDefinition(BuilderOptions options) => SharedPartBuilder( [MixableSpecGenerator()], - '.g.dart', + 'spec', allowSyntaxErrors: true, - options: options, ); -Builder dtoDefinition(BuilderOptions options) => PartBuilder( +Builder dtoDefinition(BuilderOptions options) => SharedPartBuilder( [MixableDtoGenerator()], - '.g.dart', + 'dto', allowSyntaxErrors: true, - options: options, );