Skip to content

Commit 15837d1

Browse files
committed
build: Use workspace feature
1 parent bc90433 commit 15837d1

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

mcp_examples/pubspec.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: Examples for the Dart MCP package.
33
publish_to: none
44
version: 0.0.1
55

6+
resolution: workspace
67
environment:
78
sdk: ^3.7.0
89

@@ -14,7 +15,3 @@ dependencies:
1415
google_generative_ai: ^0.4.7
1516
path: ^1.9.1
1617
stream_channel: ^2.1.4
17-
18-
dependency_overrides:
19-
dart_mcp:
20-
path: ../pkgs/dart_mcp

pkgs/dart_mcp/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: A package for making MCP servers and clients.
44
repository: https://github.com/dart-lang/ai/tree/main/pkgs/dart_mcp
55
issue_tracker: https://github.com/dart-lang/ai/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Adart_mcp
66

7+
resolution: workspace
78
environment:
89
sdk: ^3.7.0
910

pkgs/dart_mcp_server/pubspec.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: >-
33
An MCP server for Dart projects, exposing various developer tools to AI
44
models.
55
publish_to: none
6+
resolution: workspace
67
environment:
78
sdk: ^3.9.0-163.0.dev
89

@@ -46,7 +47,3 @@ dev_dependencies:
4647
test: ^1.25.15
4748
test_descriptor: ^2.0.2
4849
test_process: ^2.1.1
49-
50-
dependency_overrides:
51-
dart_mcp:
52-
path: ../dart_mcp

pkgs/dart_mcp_server/test_fixtures/counter_app/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: counter_app
22
description: "A new Flutter project."
3-
publish_to: 'none'
3+
publish_to: "none"
44
version: 0.1.0-wip
55

6+
resolution: workspace
67
environment:
78
sdk: ^3.6.1
89

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: example_dart_cli_app
22
publish_to: none
3+
resolution: workspace
34
environment:
45
sdk: ^3.7.0

pubspec.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: _
2+
publish_to: none
3+
4+
environment:
5+
sdk: ^3.6.1
6+
7+
workspace:
8+
- mcp_examples/
9+
- pkgs/dart_mcp/
10+
- pkgs/dart_mcp_server/
11+
- pkgs/dart_mcp_server/test_fixtures/counter_app/
12+
- pkgs/dart_mcp_server/test_fixtures/dart_cli_app/

0 commit comments

Comments
 (0)