We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30df8ed commit fba9f9eCopy full SHA for fba9f9e
bricks/dart_frog_prod_server/hooks/lib/src/copy_workspace_pubspec_lock.dart
@@ -19,6 +19,7 @@ void copyWorkspacePubspecLock(
19
);
20
return exit(1);
21
}
22
+
23
final pubspecLockFile = File(path.join(workspaceRoot.path, 'pubspec.lock'));
24
if (!pubspecLockFile.existsSync()) return;
25
bricks/dart_frog_prod_server/hooks/pre_gen.dart
@@ -32,6 +32,14 @@ Future<void> preGen(
32
exit: exit,
33
34
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
43
await createBundle(
44
context: context,
45
projectDirectory: projectDirectory,
0 commit comments