Skip to content

Commit 013fb97

Browse files
committed
use pub workspaces and allow analyzer 9.0.0
1 parent ff83878 commit 013fb97

5 files changed

Lines changed: 48 additions & 39 deletions

File tree

melos.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/dart_mappable/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ funding:
1010
environment:
1111
sdk: '>=3.7.0 <4.0.0'
1212

13+
resolution: workspace
14+
1315
topics:
1416
- json
1517
- data-class

packages/dart_mappable_builder/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 4.6.2
2+
3+
- Allow `analyzer` 9.0.0.
4+
15
# 4.6.1
26

37
- Record mappers now correctly uses hooks specified on the `@MappableRecord` annotation.

packages/dart_mappable_builder/pubspec.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dart_mappable_builder
22
description: Improved json serialization and data classes with full support for generics, inheritance, customization and more.
3-
version: 4.6.1
3+
version: 4.6.2
44
repository: https://github.com/schultek/dart_mappable
55
issue_tracker: https://github.com/schultek/dart_mappable/issues
66
funding:
@@ -9,8 +9,10 @@ funding:
99
environment:
1010
sdk: '>=3.7.0 <4.0.0'
1111

12+
resolution: workspace
13+
1214
dependencies:
13-
analyzer: ^8.0.0
15+
analyzer: '>=8.1.0 <10.0.0'
1416
ansicolor: ^2.0.1
1517
build: ^4.0.0
1618
collection: ^1.15.0
@@ -21,7 +23,7 @@ dependencies:
2123
source_gen: ^4.0.0
2224

2325
dev_dependencies:
24-
build_runner: ^2.4.14
26+
build_runner: ^2.10.2
2527
build_test: ^3.3.0
2628
lints: '>=1.0.0 <6.0.0'
2729
test: ^1.25.10

pubspec.yaml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,42 @@ name: dart_mappable_workspace
22
publish_to: none
33

44
environment:
5-
sdk: '>=3.0.0 <4.0.0'
5+
sdk: '>=3.7.0 <4.0.0'
6+
7+
workspace:
8+
- packages/dart_mappable
9+
- packages/dart_mappable_builder
610

711
dev_dependencies:
8-
melos: ^6.2.0
12+
melos: ^7.0.0
13+
14+
melos:
15+
ide:
16+
intellij:
17+
enabled: false
18+
19+
command:
20+
bootstrap:
21+
usePubspecOverrides: true
22+
23+
scripts:
24+
test:
25+
run: melos exec -- 'dart test'
26+
packageFilters:
27+
scope:
28+
- dart_mappable
29+
- package_comparison
30+
coverage:
31+
run: |
32+
melos exec -- 'dart test --coverage=coverage'
33+
melos exec -- 'dart pub global run coverage:format_coverage --check-ignore --packages=.dart_tool/package_config.json --report-on=lib --lcov -o "$MELOS_ROOT_PATH/coverage/lcov.info" -i ./coverage'
34+
packageFilters:
35+
scope: dart_mappable
36+
build:
37+
run: melos exec -- 'dart run build_runner build -d'
38+
packageFilters:
39+
scope:
40+
format:
41+
run: melos exec -- 'dart format . --set-exit-if-changed'
42+
analyze:
43+
run: melos exec -- 'dart analyze . --fatal-infos'

0 commit comments

Comments
 (0)