From a133a70e87d5f972254affbae65d1688f73400ce Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Thu, 1 Aug 2024 20:19:37 +0530 Subject: [PATCH] build: update release script to build esm (#8308) --- scripts/release.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/release.js b/scripts/release.js index 22c6cebc2..21f9f2539 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -6,9 +6,13 @@ const pkg = require(excalidrawPackage); const publish = () => { try { + console.info("Installing the dependencies in root folder..."); execSync(`yarn --frozen-lockfile`); + console.info("Installing the dependencies in excalidraw directory..."); execSync(`yarn --frozen-lockfile`, { cwd: excalidrawDir }); - execSync(`yarn run build:umd`, { cwd: excalidrawDir }); + console.info("Building ESM Package..."); + execSync(`yarn run build:esm`, { cwd: excalidrawDir }); + console.info("Publishing the package..."); execSync(`yarn --cwd ${excalidrawDir} publish`); } catch (error) { console.error(error);