Skip to content

Commit

Permalink
chore: Set up missing exports & typesVersions specification (#12008)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblanc authored Sep 12, 2023
1 parent bc302ee commit f0dbcf3
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/auth/cognito/server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@aws-amplify/auth/cognito/server",
"main": "../../lib/providers/cognito/apis/server/index.js",
"browser": "../../lib-esm/providers/cognito/apis/server/index.js",
"module": "../../lib-esm/providers/cognito/apis/server/index.js",
"typings": "../../lib-esm/providers/cognito/apis/server/index.d.ts"
}
18 changes: 17 additions & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@
],
"cognito": [
"./lib-esm/providers/cognito/index.d.ts"
],
"cognito/server": [
"./lib-esm/providers/cognito/apis/server/index.d.ts"
],
"server": [
"./lib-esm/server.d.ts"
],
"internals": [
"./lib-esm/lib-esm/internals/index.d.ts"
]
}
},
Expand All @@ -48,6 +57,11 @@
"import": "./lib-esm/providers/cognito/index.js",
"require": "./lib/providers/cognito/index.js"
},
"./cognito/server": {
"types": "./lib-esm/providers/cognito/apis/server/index.d.ts",
"import": "./lib-esm/providers/cognito/apis/server/index.js",
"require": "./lib/providers/cognito/apis/server/index.js"
},
"./server": {
"types": "./lib-esm/server.d.ts",
"import": "./lib-esm/server.js",
Expand All @@ -74,7 +88,9 @@
"lib",
"lib-esm",
"src",
"internals"
"internals",
"cognito",
"server"
],
"dependencies": {
"@smithy/util-base64": "2.0.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/aws-amplify/auth/cognito/server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "aws-amplify/auth/cognito/server",
"main": "../../../lib/auth/cognito/server/index.js",
"browser": "../../../lib-esm/auth/cognito/server/index.js",
"module": "../../../lib-esm/auth/cognito/server/index.js",
"typings": "../../../lib-esm/auth/cognito/server/index.d.ts"
}
20 changes: 20 additions & 0 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"import": "./lib-esm/auth/cognito/index.js",
"require": "./lib/auth/cognito/index.js"
},
"./auth/cognito/server": {
"types": "./lib-esm/auth/cognito/server/index.d.ts",
"import": "./lib-esm/auth/cognito/server/index.js",
"require": "./lib/auth/cognito/server/index.js"
},
"./auth/server": {
"types": "./lib-esm/auth/server.d.ts",
"import": "./lib-esm/auth/server.js",
Expand Down Expand Up @@ -83,6 +88,12 @@
"auth/cognito": [
"./lib-esm/auth/cognito/index.d.ts"
],
"auth/cognito/server": [
"./lib-esm/auth/cognito/server/index.d.ts"
],
"auth/server": [
"./lib-esm/auth/server.d.ts"
],
"analytics": [
"./lib-esm/analytics/index.d.ts"
],
Expand All @@ -94,6 +105,15 @@
],
"storage/s3": [
"./lib-esm/storage/s3/index.d.ts"
],
"storage/server": [
"./lib-esm/storage/server.d.ts"
],
"storage/s3/server": [
"./lib-esm/storage/s3/server.d.ts"
],
"internals/adapter-core": [
"./lib-esm/adapterCore/index.d.ts"
]
}
},
Expand Down
7 changes: 7 additions & 0 deletions packages/aws-amplify/src/auth/cognito/server/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

/*
This file maps exports from `aws-amplify/auth/cognito/server`. It provides access to server-enabled Cognito APIs.
*/
export * from '@aws-amplify/auth/cognito/server';
9 changes: 9 additions & 0 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
],
"s3": [
"./lib-esm/providers/s3/index.d.ts"
],
"server": [
"./lib-esm/server.d.ts"
],
"internals": [
"./lib-esm/lib-esm/internals/index.d.ts"
],
"s3/server": [
"./lib-esm/providers/s3/server.d.ts"
]
}
},
Expand Down

0 comments on commit f0dbcf3

Please sign in to comment.