Skip to content

Commit 327413d

Browse files
committed
minimize diff
1 parent 573ef65 commit 327413d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

bricks/dart_frog_prod_server/hooks/pre_gen.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ Future<void> preGen(
2323
Future<void> Function(String from, String to) copyPath = io_expanded.copyPath,
2424
}) async {
2525
final projectDirectory = directory ?? io.Directory.current;
26-
final buildDirectory = io.Directory(
27-
path.join(projectDirectory.path, 'build'),
28-
);
2926
final usesWorkspaces = usesWorkspaceResolution(
3027
context,
3128
workingDirectory: projectDirectory.path,
@@ -40,6 +37,10 @@ Future<void> preGen(
4037
exit: exit,
4138
);
4239

40+
final buildDirectory = io.Directory(
41+
path.join(projectDirectory.path, 'build'),
42+
);
43+
4344
await createBundle(
4445
context: context,
4546
projectDirectory: projectDirectory,

packages/dart_frog_cli/lib/src/commands/build/templates/dart_frog_prod_server_bundle.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)