소스 검색

build: update release script to build esm (#8308)

Aakansha Doshi 11 달 전
부모
커밋
a133a70e87
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      scripts/release.js

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