diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 161640ec78d..ef74d972717 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -53,12 +53,6 @@ "require": "./dist/cjs/datastore/index.js", "react-native": "./src/datastore/index.ts" }, - "./datastore-storage-adapter": { - "types": "./dist/esm/datastore-storage-adapter/index.d.ts", - "import": "./dist/esm/datastore-storage-adapter/index.mjs", - "require": "./dist/cjs/datastore-storage-adapter/index.js", - "react-native": "./src/datastore-storage-adapter/index.ts" - }, "./auth/cognito": { "types": "./dist/esm/auth/cognito/index.d.ts", "import": "./dist/esm/auth/cognito/index.mjs", diff --git a/packages/datastore-storage-adapter/package.json b/packages/datastore-storage-adapter/package.json index fd86e607121..85807032f36 100644 --- a/packages/datastore-storage-adapter/package.json +++ b/packages/datastore-storage-adapter/package.json @@ -43,5 +43,13 @@ "react-native-sqlite-storage": "5.0.0", "sqlite3": "^5.0.2", "typescript": "5.0.2" + }, + "exports": { + ".": { + "types": "./dist/esm/index.d.ts", + "import": "./dist/esm/index.mjs", + "require": "./dist/cjs/index.js" + }, + "./package.json": "./package.json" } }