Skip to content

Commit 52cc3bc

Browse files
committed
chore(parameters): fix esm bundling
1 parent cc171a7 commit 52cc3bc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/parameters/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/parameters#readme",
3232
"license": "MIT-0",
33+
"type": "module",
3334
"exports": {
3435
".": {
3536
"require": {
@@ -197,4 +198,4 @@
197198
"optional": true
198199
}
199200
}
200-
}
201+
}

packages/parameters/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './errors.js';
2-
export * from './constants.js';
1+
export { GetParameterError, TransformParameterError } from './errors.js';
2+
export { Transform } from './constants.js';

packages/parameters/tests/unit/BaseProvider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
GetOptions,
1111
GetMultipleOptions,
1212
} from '../../src/base/index.js';
13-
import { DEFAULT_MAX_AGE_SECS } from '../../src/index.js';
13+
import { DEFAULT_MAX_AGE_SECS } from '../../src/constants.js';
1414
import type { EnvironmentVariablesService } from '../../src/config/EnvironmentVariablesService.js';
1515
import { ExpirableValue } from '../../src/base/ExpirableValue.js';
1616
import {

0 commit comments

Comments
 (0)