Skip to content

Commit 88ae83f

Browse files
authored
test: add tsup/dts and metro bundler compatibility tests (#8122)
* test: add tsup/dts and metro bundler compatibility tests * fix: bump DTS worker memory to 8GB for CI
1 parent 29ee199 commit 88ae83f

36 files changed

Lines changed: 532 additions & 101 deletions

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ bundles: build-s3-browser-bundle build-signature-v4-multi-region-browser-bundle
101101

102102
test-bundlers:
103103
node ./tests/bundlers/bundler-canary.mjs
104+
(cd ./tests/bundler-compat && npm install && node ./run.mjs)
104105

105106
build-s3-browser-bundle:
106107
node ./clients/client-s3/test/browser-build/esbuild

lib/lib-transfer-manager/transfer-manager.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
* Do not edit:
33
* This is a compatibility redirect for contexts that do not understand package.json exports field.
44
*/
5-
declare module "@aws-sdk/lib-transfer-manager/transfer-manager" {
6-
export * from "@aws-sdk/lib-transfer-manager/dist-types/submodules/transfer-manager/index.d";
7-
}
5+
export * from "./dist-types/submodules/transfer-manager/index";
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
2-
/**
3-
* Do not edit:
4-
* This is a compatibility redirect for contexts that do not understand package.json exports field.
5-
*/
6-
declare module "@aws-sdk/lib-transfer-manager/worker" {
7-
export * from "@aws-sdk/lib-transfer-manager/dist-types/submodules/worker/index.d";
8-
}
9-
1+
/**
2+
* Do not edit:
3+
* This is a compatibility redirect for contexts that do not understand package.json exports field.
4+
*/
5+
export * from "./dist-types/submodules/worker/index";

lib/lib-transfer-manager/worker.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
2-
/**
3-
* Do not edit:
4-
* This is a compatibility redirect for contexts that do not understand package.json exports field.
5-
*/
6-
module.exports = require("./dist-cjs/submodules/worker/index.js");
7-
1+
/**
2+
* Do not edit:
3+
* This is a compatibility redirect for contexts that do not understand package.json exports field.
4+
*/
5+
module.exports = require("./dist-cjs/submodules/worker/index.js");

packages-internal/core/account-id-endpoint.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
* Do not edit:
33
* This is a compatibility redirect for contexts that do not understand package.json exports field.
44
*/
5-
declare module "@aws-sdk/core/account-id-endpoint" {
6-
export * from "@aws-sdk/core/dist-types/submodules/account-id-endpoint/index.d";
7-
}
5+
export * from "./dist-types/submodules/account-id-endpoint/index";

packages-internal/core/client.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
* Do not edit:
33
* This is a compatibility redirect for contexts that do not understand package.json exports field.
44
*/
5-
declare module "@aws-sdk/core/client" {
6-
export * from "@aws-sdk/core/dist-types/submodules/client/index.d";
7-
}
5+
export * from "./dist-types/submodules/client/index";

packages-internal/core/httpAuthSchemes.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
* Do not edit:
33
* This is a compatibility redirect for contexts that do not understand package.json exports field.
44
*/
5-
declare module "@aws-sdk/core/httpAuthSchemes" {
6-
export * from "@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d";
7-
}
5+
export * from "./dist-types/submodules/httpAuthSchemes/index";

packages-internal/core/protocols.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
* Do not edit:
33
* This is a compatibility redirect for contexts that do not understand package.json exports field.
44
*/
5-
declare module "@aws-sdk/core/protocols" {
6-
export * from "@aws-sdk/core/dist-types/submodules/protocols/index.d";
7-
}
5+
export * from "./dist-types/submodules/protocols/index";

packages-internal/core/util.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
* Do not edit:
33
* This is a compatibility redirect for contexts that do not understand package.json exports field.
44
*/
5-
declare module "@aws-sdk/core/util" {
6-
export * from "@aws-sdk/core/dist-types/submodules/util/index.d";
7-
}
5+
export * from "./dist-types/submodules/util/index";

packages-internal/middleware-sdk-s3/s3-control.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
* Do not edit:
33
* This is a compatibility redirect for contexts that do not understand package.json exports field.
44
*/
5-
declare module "@aws-sdk/middleware-sdk-s3/s3-control" {
6-
export * from "@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/index.d";
7-
}
5+
export * from "./dist-types/submodules/s3-control/index";

0 commit comments

Comments
 (0)