Skip to content

Commit e7727b2

Browse files
committed
fix: export the load-data-url-method using commonjs instead of es modules for node 20 compatibility
1 parent e2dbaf9 commit e7727b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-launch",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "Launch related operations",
55
"author": "Contentstack CLI",
66
"bin": {

scripts/patch-load-data-url-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function transpileTsFileToESM(inputFile, outputFile) {
1515

1616
await bundle.write({
1717
file: outputFile,
18-
format: 'esm',
18+
format: 'commonjs',
1919
sourcemap: false,
2020
});
2121
}

0 commit comments

Comments
 (0)