From 769de1dfe24a18a5ac9d691fd6a94c591e909c30 Mon Sep 17 00:00:00 2001 From: westito Date: Tue, 28 Jun 2022 08:58:24 +0200 Subject: [PATCH] Fix web_worker_example build fail --- examples/web_worker_example/build.yaml | 20 ++++--------------- .../web_worker_example/lib/database.g.dart | 2 -- examples/web_worker_example/pubspec.yaml | 8 ++++---- 3 files changed, 8 insertions(+), 22 deletions(-) diff --git a/examples/web_worker_example/build.yaml b/examples/web_worker_example/build.yaml index 2516d20b..b8e7570d 100644 --- a/examples/web_worker_example/build.yaml +++ b/examples/web_worker_example/build.yaml @@ -1,17 +1,4 @@ targets: - # We use dartdevc by default, but the worker should always be compiled with dart2js - worker: - auto_apply_builders: false - dependencies: [":$default"] - builders: - build_web_compilers|entrypoint: - enabled: true - generate_for: - - web/worker.dart - options: - compiler: dart2js - - $default: builders: drift_dev: @@ -23,7 +10,8 @@ targets: named_parameters: true new_sql_code_generation: true build_web_compilers|entrypoint: + enabled: true generate_for: - # This one is compiled in the other target - exclude: - - "web/worker.dart" + - web/worker.dart + options: + compiler: dart2js diff --git a/examples/web_worker_example/lib/database.g.dart b/examples/web_worker_example/lib/database.g.dart index b34fb658..6b98a84a 100644 --- a/examples/web_worker_example/lib/database.g.dart +++ b/examples/web_worker_example/lib/database.g.dart @@ -166,8 +166,6 @@ class Entries extends Table with TableInfo { @override Set get $primaryKey => {id}; @override - List> get uniqueKeys => []; - @override Entrie map(Map data, {String? tablePrefix}) { return Entrie.fromData(data, prefix: tablePrefix != null ? '$tablePrefix.' : null); diff --git a/examples/web_worker_example/pubspec.yaml b/examples/web_worker_example/pubspec.yaml index 7ee3ff05..4dc820ea 100644 --- a/examples/web_worker_example/pubspec.yaml +++ b/examples/web_worker_example/pubspec.yaml @@ -7,14 +7,14 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - js: ^0.6.3 + js: ^0.6.4 stream_channel: ^2.1.0 drift: dev_dependencies: - build_runner: ^2.0.0 - build_web_compilers: ^3.0.0 - lints: ^1.0.1 + build_runner: ^2.1.11 + build_web_compilers: ^3.2.3 + lints: ^2.0.0 drift_dev: dependency_overrides: