Skip to content

Commit

Permalink
feat(@aws-amplify/datastore): Make DataStore available in aws-amplify… (
Browse files Browse the repository at this point in the history
#5202)

* feat(@aws-amplify/datastore): Make DataStore available in aws-amplify package

* Add dependency in aws-amplify
  • Loading branch information
manueliglesias committed Mar 26, 2020
1 parent 1d0b8e1 commit c9c020d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@aws-amplify/auth": "^2.1.7",
"@aws-amplify/cache": "^2.1.7",
"@aws-amplify/core": "^2.2.6",
"@aws-amplify/datastore": "^1.1.0",
"@aws-amplify/interactions": "^2.1.7",
"@aws-amplify/predictions": "^2.1.7",
"@aws-amplify/pubsub": "^2.1.8",
Expand Down
2 changes: 2 additions & 0 deletions packages/aws-amplify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import Interactions, { InteractionsClass } from '@aws-amplify/interactions';
import * as UI from '@aws-amplify/ui';
import XR, { XRClass } from '@aws-amplify/xr';
import Predictions from '@aws-amplify/predictions';
import { DataStore } from '@aws-amplify/datastore';

import Amplify, {
ConsoleLogger as Logger,
Expand All @@ -54,6 +55,7 @@ Amplify.Interactions = Interactions;
Amplify.UI = UI;
Amplify.XR = XR;
Amplify.Predictions = Predictions;
Amplify.DataStore = DataStore;

export {
Auth,
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/Amplify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default class Amplify {
static UI = null;
static XR = null;
static Predictions = null;
static DataStore = null;

static Logger = LoggerClass;
static ServiceWorker = null;
Expand Down

0 comments on commit c9c020d

Please sign in to comment.