Skip to content

Commit fba9f9e

Browse files
committed
cleanup
1 parent 30df8ed commit fba9f9e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

bricks/dart_frog_prod_server/hooks/lib/src/copy_workspace_pubspec_lock.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ void copyWorkspacePubspecLock(
1919
);
2020
return exit(1);
2121
}
22+
2223
final pubspecLockFile = File(path.join(workspaceRoot.path, 'pubspec.lock'));
2324
if (!pubspecLockFile.existsSync()) return;
2425

bricks/dart_frog_prod_server/hooks/pre_gen.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ Future<void> preGen(
3232
exit: exit,
3333
);
3434

35+
// We need to make sure that the pubspec.lock file is up to date
36+
await dartPubGet(
37+
context,
38+
workingDirectory: projectDirectory.path,
39+
runProcess: runProcess,
40+
exit: exit,
41+
);
42+
3543
await createBundle(
3644
context: context,
3745
projectDirectory: projectDirectory,

0 commit comments

Comments
 (0)