From 8b880a3a6d3835451eb075b491a1204957458603 Mon Sep 17 00:00:00 2001 From: dhruvparekh12 Date: Fri, 21 Feb 2025 14:37:19 +0530 Subject: [PATCH] fix: export the load-data-url-method using commonjs instead of es modules for node 20 compatibility --- README.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- scripts/patch-load-data-url-file.js | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 770db24..0047ded 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ With Launch CLI, you can interact with the Contentstack Launch platform using th * [Launch CLI plugin](#launch-cli-plugin) * [Installation steps](#installation-steps) * [Commands](#commands) +* [How to test Changes Locally?](#how-to-test-changes-locally) +* [Release & SRE Process:-](#release--sre-process-) # Installation steps diff --git a/package-lock.json b/package-lock.json index 98b073d..f0bbd77 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-launch", - "version": "1.5.1", + "version": "1.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@contentstack/cli-launch", - "version": "1.5.1", + "version": "1.5.2", "license": "MIT", "dependencies": { "@apollo/client": "^3.11.8", diff --git a/package.json b/package.json index 749e50c..0b6e63b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-launch", - "version": "1.5.1", + "version": "1.5.2", "description": "Launch related operations", "author": "Contentstack CLI", "bin": { diff --git a/scripts/patch-load-data-url-file.js b/scripts/patch-load-data-url-file.js index c1b56fa..3d422fb 100644 --- a/scripts/patch-load-data-url-file.js +++ b/scripts/patch-load-data-url-file.js @@ -15,7 +15,7 @@ async function transpileTsFileToESM(inputFile, outputFile) { await bundle.write({ file: outputFile, - format: 'esm', + format: 'commonjs', sourcemap: false, }); }