File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/powersync_core/test/server Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Future<void> hybridMain(StreamChannel<Object?> channel) async {
24
24
25
25
if (! (await File (workerOutputPath).exists ())) {
26
26
throw AssertionError (
27
- 'powersync_db.worker.js file should be present in the powersync /assets folder' );
27
+ 'powersync_db.worker.js file should be present in the powersync_core /assets folder' );
28
28
}
29
29
30
30
final server = await HttpServer .bind ('localhost' , 0 );
Original file line number Diff line number Diff line change @@ -32,6 +32,13 @@ Future<void> main() async {
32
32
throw Exception ('Could not compile worker: ${process .stdout .toString ()}' );
33
33
}
34
34
35
+ final workerFile = File (outputPath);
36
+
37
+ //Copy worker to powersync_core
38
+ final powersyncCoreAssetsPath =
39
+ path.join (repoRoot, 'packages/powersync_core/assets/$workerFilename ' );
40
+ workerFile.copySync (powersyncCoreAssetsPath);
41
+
35
42
// Copy this to all demo apps web folders
36
43
final demosRoot = path.join (repoRoot, 'demos' );
37
44
final demoDirectories =
@@ -44,6 +51,6 @@ Future<void> main() async {
44
51
continue ;
45
52
}
46
53
final demoOutputPath = path.join (demoWebDir, workerFilename);
47
- File (outputPath) .copySync (demoOutputPath);
54
+ workerFile .copySync (demoOutputPath);
48
55
}
49
56
}
You can’t perform that action at this time.
0 commit comments