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

Diff for: packages/parameters/package.json

+2-1
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+
}

Diff for: packages/parameters/src/index.ts

+2-2
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';

Diff for: packages/parameters/tests/unit/BaseProvider.test.ts

+1-1
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)