Skip to content

Commit 9069e62

Browse files
committed
chore: Add examples to pub workspace
1 parent ccd6cee commit 9069e62

19 files changed

Lines changed: 982 additions & 1893 deletions

.github/workflows/analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
- run: dart pub global activate dpk
1616
- run: dpk get
1717
- name: Generate code in example
18-
run: (cd packages/luthor_generator/example && dart pub get && dart run build_runner build -d)
18+
run: (cd packages/luthor_generator/example && dart run build_runner build -d)
1919
- run: dpk run analyze
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: example
1+
name: luthor_example
22
description: An example package for luthor
33
version: 1.0.0
44
publish_to: none
5+
resolution: workspace
56

67
environment:
7-
sdk: '>=3.0.0 <4.0.0'
8+
sdk: ">=3.8.0 <4.0.0"
89

910
dependencies:
1011
luthor:
11-
path: ..
1212

1313
dev_dependencies:
14-
lints: ^2.0.0
14+
lints: ^4.0.0

packages/luthor_generator/example/lib/another_sample.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import 'package:example/sample.dart';
21
import 'package:freezed_annotation/freezed_annotation.dart';
32
import 'package:luthor/luthor.dart';
3+
import 'package:luthor_generator_example/sample.dart';
44

55
part 'another_sample.freezed.dart';
66

0 commit comments

Comments
 (0)