Skip to content

Commit 5871e7e

Browse files
committed
Move setup_web script back to powersync
1 parent a6cc4b8 commit 5871e7e

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

melos.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ scripts:
3333
3434
prepare:demos:
3535
description: Download SQLite3 wasm for demos
36-
run: dart run powersync_core:setup_web --no-worker
36+
run: dart run powersync:setup_web --no-worker
3737
exec:
3838
concurrency: 1
3939
packageFilters:
@@ -46,7 +46,7 @@ scripts:
4646
exec:
4747
concurrency: 1
4848
packageFilters:
49-
scope: powersync_core
49+
scope: powersync
5050

5151
analyze:demos:
5252
description: Analyze Dart code in demos.
File renamed without changes.

scripts/compile_webworker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Future<void> main() async {
1010
/// The monorepo root assets directory
1111
final workerFilename = 'powersync_db.worker.js';
1212
final outputPath =
13-
path.join(repoRoot, 'packages/powersync_core/assets/$workerFilename');
13+
path.join(repoRoot, 'packages/powersync/assets/$workerFilename');
1414

1515
final workerSourcePath = path.join(repoRoot,
1616
'./packages/powersync_core/lib/src/web/powersync_db.worker.dart');

scripts/init_powersync_core_binary.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/// Downloads the powersync dynamic library and copies it to the powersync package directory
2-
/// This is only necessary for running unit tests in the powersync package
1+
/// Downloads the powersync dynamic library and copies it to the powersync_core package directory
2+
/// This is only necessary for running unit tests in the powersync_core package
33
import 'dart:ffi';
44
import 'dart:io';
55

@@ -24,12 +24,9 @@ void main() async {
2424
if (await originalFile.exists()) {
2525
try {
2626
// Rename the original file to the new file name
27-
final renamedFile =
28-
await originalFile.rename("$powersyncPath/$newFileName");
27+
await originalFile.rename("$powersyncPath/$newFileName");
2928
print(
3029
'File renamed successfully from $sqliteCoreFilename to $newFileName');
31-
await renamedFile.copy("$powersyncCipherPath/$newFileName");
32-
print('$newFileName copied to $powersyncCipherPath');
3330
} catch (e) {
3431
throw IOException('Error renaming file: $e');
3532
}

0 commit comments

Comments
 (0)