Skip to content

Commit bfc02cd

Browse files
fix: export configuration and building
1 parent 0a81de1 commit bfc02cd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

fix-imports.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ async function processFiles(directory) {
2020
const updatedData = data
2121
.split('\n')
2222
.map((line) => {
23-
if (line.trim().startsWith('import')) {
23+
if (
24+
line.trim().startsWith('import') ||
25+
line.trim().startsWith('export')
26+
) {
2427
return line.replace(/\.js"/g, '.mjs"').replace(/\.js'/g, ".mjs'");
2528
}
2629
return line;

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"email": "[email protected]",
1414
"organization": false
1515
},
16+
"exports": {
17+
".": "./dist/index.mjs"
18+
},
1619
"keywords": [
1720
"aws",
1821
"lambda",

0 commit comments

Comments
 (0)