File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
bricks/dart_frog_prod_server/hooks/test Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -174,12 +174,18 @@ void main() {
174174 File (
175175 path.join (directory.path, 'pubspec.yaml' ),
176176 ).writeAsStringSync (workspaceRoot);
177+ final server = Directory (
178+ path.join (directory.path, 'server' ),
179+ )..createSync ();
180+ File (
181+ path.join (server.path, 'pubspec.yaml' ),
182+ ).writeAsStringSync (workspaceChild);
177183 final exitCalls = < int > [];
178184 await pre_gen.preGen (
179185 context,
180186 buildConfiguration: (_) => configuration,
181187 exit: exitCalls.add,
182- directory: directory ,
188+ directory: server ,
183189 runProcess: successRunProcess,
184190 copyPath: (_, __) async {},
185191 );
Original file line number Diff line number Diff line change @@ -63,8 +63,16 @@ dev_dependencies:
6363const workspaceRoot = '''
6464name: _
6565dependencies:
66- foo :
67- path: packages/foo
66+ server :
67+ path: packages/server
6868workspace:
69- - packages/foo
69+ - packages/server
70+ ''' ;
71+
72+ /// An artificially crafted `pubspec.yaml` file with:
73+ ///
74+ /// * Dart workspaces enabled
75+ const workspaceChild = '''
76+ name: server
77+ resolution: workspace
7078''' ;
You can’t perform that action at this time.
0 commit comments