diff --git a/integration-tests/tests/package.json b/integration-tests/tests/package.json index 727cb284459..15cb9ee3ac8 100644 --- a/integration-tests/tests/package.json +++ b/integration-tests/tests/package.json @@ -20,35 +20,35 @@ "build": { "command": "tsc", "dependencies": [ - "../../packages/realm:bundle", + "../../packages/realm:build:ts", "build-dependencies" ] }, "start": { "command": "mocha --watch", "dependencies": [ - "../../packages/realm:bundle", + "../../packages/realm:build:ts", "build-dependencies" ] }, "test": { "command": "mocha --exit", "dependencies": [ - "../../packages/realm:bundle", + "../../packages/realm:build:ts", "build-dependencies" ] }, "coverage": { "command": "nyc mocha --exit", "dependencies": [ - "../../packages/realm:bundle:coverage", + "../../packages/realm:build:ts:coverage", "build-dependencies" ] }, "ci:coverage": { "command": "nyc --reporter=lcov -- mocha --exit", "dependencies": [ - "../../packages/realm:bundle:coverage", + "../../packages/realm:build:ts:coverage", "build-dependencies" ] }, diff --git a/integration-tests/tests/src/hooks/import-app-before.ts b/integration-tests/tests/src/hooks/import-app-before.ts index e6611564dfa..fd0b785ab76 100644 --- a/integration-tests/tests/src/hooks/import-app-before.ts +++ b/integration-tests/tests/src/hooks/import-app-before.ts @@ -16,7 +16,7 @@ // //////////////////////////////////////////////////////////////////////////// -import { Realm, AppConfiguration } from "realm"; +import Realm, { AppConfiguration } from "realm"; import { importApp } from "../utils/import-app"; import { AppConfig } from "@realm/app-importer"; diff --git a/integration-tests/tests/src/performance-tests/property-reads.ts b/integration-tests/tests/src/performance-tests/property-reads.ts index 58c08152cb6..e9e7e64e202 100644 --- a/integration-tests/tests/src/performance-tests/property-reads.ts +++ b/integration-tests/tests/src/performance-tests/property-reads.ts @@ -16,7 +16,7 @@ // //////////////////////////////////////////////////////////////////////////// -import { Realm } from "realm"; +import Realm from "realm"; import { describePerformance } from "../utils/benchmark"; diff --git a/integration-tests/tests/src/schemas/contact.ts b/integration-tests/tests/src/schemas/contact.ts index 71b38818484..abb128dc443 100644 --- a/integration-tests/tests/src/schemas/contact.ts +++ b/integration-tests/tests/src/schemas/contact.ts @@ -18,7 +18,7 @@ /* tslint:disable max-classes-per-file */ -import { Realm } from "realm"; +import Realm from "realm"; export interface IContact { name: string; diff --git a/integration-tests/tests/src/schemas/person-and-dog-with-object-ids.ts b/integration-tests/tests/src/schemas/person-and-dog-with-object-ids.ts index f321a2f5e50..6a36e4459e4 100755 --- a/integration-tests/tests/src/schemas/person-and-dog-with-object-ids.ts +++ b/integration-tests/tests/src/schemas/person-and-dog-with-object-ids.ts @@ -18,7 +18,7 @@ /* tslint:disable max-classes-per-file */ -import { Realm } from "realm"; +import Realm from "realm"; export interface IPerson { _id: Realm.BSON.ObjectId; diff --git a/integration-tests/tests/src/schemas/person-and-dogs.ts b/integration-tests/tests/src/schemas/person-and-dogs.ts index a00b7a39622..8419bf2d6b4 100644 --- a/integration-tests/tests/src/schemas/person-and-dogs.ts +++ b/integration-tests/tests/src/schemas/person-and-dogs.ts @@ -18,7 +18,7 @@ /* tslint:disable max-classes-per-file */ -import { Realm } from "realm"; +import Realm from "realm"; export interface IPerson { name: string; diff --git a/integration-tests/tests/src/setup-globals.ts b/integration-tests/tests/src/setup-globals.ts index 90dbafbf519..312f87ff20c 100644 --- a/integration-tests/tests/src/setup-globals.ts +++ b/integration-tests/tests/src/setup-globals.ts @@ -63,7 +63,7 @@ describe("Test Harness", function (this: Mocha.Suite) { Context.prototype.longTimeout = longTimeout; }); -import { Realm } from "realm"; +import Realm from "realm"; // Disable the logger to avoid console flooding const { defaultLogLevel = "off" } = environment; diff --git a/integration-tests/tests/src/tests/class-models.ts b/integration-tests/tests/src/tests/class-models.ts index 7af2fed088a..108e5f52d0c 100644 --- a/integration-tests/tests/src/tests/class-models.ts +++ b/integration-tests/tests/src/tests/class-models.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { openRealmBeforeEach } from "../hooks"; diff --git a/integration-tests/tests/src/tests/dynamic-schema-updates.ts b/integration-tests/tests/src/tests/dynamic-schema-updates.ts index ab60e7b85d9..31c7b2b04da 100644 --- a/integration-tests/tests/src/tests/dynamic-schema-updates.ts +++ b/integration-tests/tests/src/tests/dynamic-schema-updates.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { openRealmBeforeEach } from "../hooks"; import { PersonSchema, DogSchema } from "../schemas/person-and-dogs"; diff --git a/integration-tests/tests/src/tests/list.ts b/integration-tests/tests/src/tests/list.ts index 48051b2b1f6..7f8b849eb73 100644 --- a/integration-tests/tests/src/tests/list.ts +++ b/integration-tests/tests/src/tests/list.ts @@ -16,7 +16,7 @@ // //////////////////////////////////////////////////////////////////////////// -import { Realm, BSON } from "realm"; +import Realm, { BSON } from "realm"; import { expectArraysEqual, expectSimilar } from "../utils/comparisons"; import { expect } from "chai"; import { CanonicalObjectSchema } from "realm"; diff --git a/integration-tests/tests/src/tests/listeners.ts b/integration-tests/tests/src/tests/listeners.ts index ff54cbc7189..63945a7eec8 100644 --- a/integration-tests/tests/src/tests/listeners.ts +++ b/integration-tests/tests/src/tests/listeners.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { openRealmBeforeEach } from "../hooks"; import { PersonSchema, DogSchema } from "../schemas/person-and-dogs"; diff --git a/integration-tests/tests/src/tests/objects.ts b/integration-tests/tests/src/tests/objects.ts index 074b07c086a..cbcedf6d713 100644 --- a/integration-tests/tests/src/tests/objects.ts +++ b/integration-tests/tests/src/tests/objects.ts @@ -16,7 +16,7 @@ // //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { IPerson, Person, PersonSchema } from "../schemas/person-and-dogs"; import { diff --git a/integration-tests/tests/src/tests/realm-constructor.ts b/integration-tests/tests/src/tests/realm-constructor.ts index 5e6a1937bd0..ac181212445 100644 --- a/integration-tests/tests/src/tests/realm-constructor.ts +++ b/integration-tests/tests/src/tests/realm-constructor.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { IPerson, PersonSchema, DogSchema } from "../schemas/person-and-dogs"; diff --git a/integration-tests/tests/src/tests/schema.ts b/integration-tests/tests/src/tests/schema.ts index 1c5b538a50f..948907c8ec4 100644 --- a/integration-tests/tests/src/tests/schema.ts +++ b/integration-tests/tests/src/tests/schema.ts @@ -18,7 +18,7 @@ import { expect } from "chai"; import { openRealmBefore } from "../hooks"; -import { Realm } from "realm"; +import Realm from "realm"; interface Test { primary: number; diff --git a/integration-tests/tests/src/tests/serialization.ts b/integration-tests/tests/src/tests/serialization.ts index 25f8480f0af..f97911b4a54 100755 --- a/integration-tests/tests/src/tests/serialization.ts +++ b/integration-tests/tests/src/tests/serialization.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; type DefaultObject = Record; diff --git a/integration-tests/tests/src/tests/set.ts b/integration-tests/tests/src/tests/set.ts index c0f4e6ba944..7c6029f3305 100644 --- a/integration-tests/tests/src/tests/set.ts +++ b/integration-tests/tests/src/tests/set.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { openRealmBefore } from "../hooks"; diff --git a/integration-tests/tests/src/tests/shared-realms.ts b/integration-tests/tests/src/tests/shared-realms.ts index 4746461a93b..aa3c4df5cbe 100644 --- a/integration-tests/tests/src/tests/shared-realms.ts +++ b/integration-tests/tests/src/tests/shared-realms.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm, List } from "realm"; +import Realm, { List } from "realm"; import { openRealmBefore, openRealmBeforeEach } from "../hooks"; import { createLocalConfig } from "../utils/open-realm"; diff --git a/integration-tests/tests/src/tests/sync/mixed.ts b/integration-tests/tests/src/tests/sync/mixed.ts index 6fcf3c4c817..7bdf4c591f4 100644 --- a/integration-tests/tests/src/tests/sync/mixed.ts +++ b/integration-tests/tests/src/tests/sync/mixed.ts @@ -16,7 +16,7 @@ // //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { importAppBefore, authenticateUserBefore, openRealmBefore } from "../../hooks"; diff --git a/integration-tests/tests/src/tests/sync/open.ts b/integration-tests/tests/src/tests/sync/open.ts index 4265cb0d3d1..bdb8f78fd53 100644 --- a/integration-tests/tests/src/tests/sync/open.ts +++ b/integration-tests/tests/src/tests/sync/open.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { authenticateUserBefore, importAppBefore } from "../../hooks"; import { buildAppConfig } from "../../utils/build-app-config"; diff --git a/integration-tests/tests/src/tests/sync/realm-conversions.ts b/integration-tests/tests/src/tests/sync/realm-conversions.ts index d1c52ca7b21..b7cdb9ae2b6 100644 --- a/integration-tests/tests/src/tests/sync/realm-conversions.ts +++ b/integration-tests/tests/src/tests/sync/realm-conversions.ts @@ -16,7 +16,7 @@ // //////////////////////////////////////////////////////////////////////////// -import { Realm, BSON } from "realm"; +import Realm, { BSON } from "realm"; import { expect } from "chai"; import { importAppBefore } from "../../hooks"; import { getRegisteredEmailPassCredentials } from "../../utils/credentials"; diff --git a/integration-tests/tests/src/tests/sync/sync-as-local.ts b/integration-tests/tests/src/tests/sync/sync-as-local.ts index 506ca90cb7e..92a9b45ac99 100644 --- a/integration-tests/tests/src/tests/sync/sync-as-local.ts +++ b/integration-tests/tests/src/tests/sync/sync-as-local.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; import { PersonSchema, IPerson } from "../../schemas/person-and-dog-with-object-ids"; import { authenticateUserBefore, importAppBefore, openRealmBefore } from "../../hooks"; diff --git a/integration-tests/tests/src/tests/sync/sync-session.ts b/integration-tests/tests/src/tests/sync/sync-session.ts index b5436d97926..89395e494b6 100644 --- a/integration-tests/tests/src/tests/sync/sync-session.ts +++ b/integration-tests/tests/src/tests/sync/sync-session.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm, ConnectionState, ObjectSchema, BSON, User, SyncConfiguration } from "realm"; +import Realm, { ConnectionState, ObjectSchema, BSON, User, SyncConfiguration } from "realm"; import { importAppBefore } from "../../hooks"; import { DogSchema } from "../../schemas/person-and-dog-with-object-ids"; import { getRegisteredEmailPassCredentials } from "../../utils/credentials"; diff --git a/integration-tests/tests/src/tests/sync/user.ts b/integration-tests/tests/src/tests/sync/user.ts index c42fb795113..309c077424a 100644 --- a/integration-tests/tests/src/tests/sync/user.ts +++ b/integration-tests/tests/src/tests/sync/user.ts @@ -23,7 +23,7 @@ import { randomVerifiableEmail, } from "../../utils/generators"; import { KJUR } from "jsrsasign"; -import { Realm, UserState } from "realm"; +import Realm, { UserState } from "realm"; import { buildAppConfig } from "../../utils/build-app-config"; diff --git a/integration-tests/tests/src/tests/types.ts b/integration-tests/tests/src/tests/types.ts index f0a407d8b88..3b94c2decbd 100644 --- a/integration-tests/tests/src/tests/types.ts +++ b/integration-tests/tests/src/tests/types.ts @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// import { expect } from "chai"; -import { Realm } from "realm"; +import Realm from "realm"; describe("Realm.Types namespace", () => { // We specify explicit types on the instance so TS will error if the type def is wrong diff --git a/integration-tests/tests/src/utils/open-realm.ts b/integration-tests/tests/src/utils/open-realm.ts index d6aa9a84eb2..6d6f210ec49 100644 --- a/integration-tests/tests/src/utils/open-realm.ts +++ b/integration-tests/tests/src/utils/open-realm.ts @@ -16,7 +16,7 @@ // //////////////////////////////////////////////////////////////////////////// -import { Realm, Configuration, SyncConfiguration, User, BSON } from "realm"; +import Realm, { Configuration, SyncConfiguration, User, BSON } from "realm"; // Either the sync property is left out (local Realm) export type LocalConfiguration = Omit & { sync?: never };