4949# (3) MIGRATING A NON-WORKSPACE PACKAGE TO USING THE WORKSPACE
5050# ------------------------------------------------------------------------------
5151# Many packages in this repo are still using a pre-workspace style pubspec.yaml,
52- # either with manuallu declared `dependency_overrides` (much of ./tools) or by
52+ # either with manually declared `dependency_overrides` (much of ./tools) or by
5353# using pub (./web_sdk, ./lib/web_ui). To migrate a package to the workspace:
5454#
5555# A. Add the `resolution: workspace` field to the pubspec.yaml.
@@ -96,30 +96,17 @@ workspace:
9696# package is not important, as it is managed by the `DEPS` file. In other
9797# words, "if the test pass, ship it".
9898#
99- # 3. The `path` field is used to indicate the location of the package in the
100- # local repository itself. This is to *only* be used for local packages that
101- # are part of the workspace. Third party dependencies are managed by the
102- # `DEPS` file: they get a "any" version constraint and are overridden in the
103- # `dependency_overrides` section below.
104- #
10599# While not enforced by tooling, try to keep this list in alphabetical order.
100+ # TODO(matanlurey): https://dart.dev/tools/linter-rules/sort_pub_dependencies.
106101dependencies :
107102 args : any
108103 async_helper : any
109- engine_build_configs :
110- path : ./tools/pkg/engine_build_configs
111- engine_repo_tools :
112- path : ./tools/pkg/engine_repo_tools
113104 expect : any
114105 file : any
115- litetest :
116- path : ./testing/litetest
117106 logging : any
118107 meta : any
119108 path : any
120109 platform : any
121- process_fakes :
122- path : ./tools/pkg/process_fakes
123110 process_runner : any
124111 smith : any
125112
@@ -152,10 +139,16 @@ dependency_overrides:
152139 path : ./third_party/dart/pkg/async_helper
153140 collection :
154141 path : ./third_party/dart/third_party/pkg/collection
142+ engine_build_configs :
143+ path : ./tools/pkg/engine_build_configs
144+ engine_repo_tools :
145+ path : ./tools/pkg/engine_repo_tools
155146 expect :
156147 path : ./third_party/dart/pkg/expect
157148 file :
158149 path : ./third_party/dart/third_party/pkg/file/packages/file
150+ litetest :
151+ path : ./testing/litetest
159152 logging :
160153 path : ./third_party/dart/third_party/pkg/logging
161154 meta :
@@ -166,6 +159,8 @@ dependency_overrides:
166159 path : ./third_party/pkg/platform
167160 process :
168161 path : ./third_party/pkg/process
162+ process_fakes :
163+ path : ./tools/pkg/process_fakes
169164 process_runner :
170165 path : ./third_party/pkg/process_runner
171166 smith :
0 commit comments