migration done
This commit is contained in:
+19
-3
@@ -2,8 +2,14 @@ targets:
|
||||
$default:
|
||||
builders:
|
||||
drift_dev:
|
||||
# These options change how drift generates code
|
||||
options:
|
||||
# disable drift's default builder, we're using the modular setup
|
||||
# instead.
|
||||
enabled: false
|
||||
|
||||
# Instead, enable drift_dev:analyzer and drift_dev:modular manually:
|
||||
drift_dev:analyzer:
|
||||
enabled: true
|
||||
options: &options
|
||||
skip_verification_code: true
|
||||
data_class_to_companions: false
|
||||
named_parameters: true
|
||||
@@ -19,6 +25,16 @@ targets:
|
||||
modules:
|
||||
- json1
|
||||
- fts5
|
||||
drift_dev:modular:
|
||||
enabled: true
|
||||
# We use yaml anchors to give the two builders the same options
|
||||
options: *options
|
||||
json_serializable:
|
||||
options:
|
||||
explicit_to_json: true
|
||||
explicit_to_json: true
|
||||
|
||||
global_options:
|
||||
drift_dev:modular:
|
||||
runs_before:
|
||||
- riverpod_generator
|
||||
|
||||
Reference in New Issue
Block a user