build: update release script to build esm (#8308)
This commit is contained in:
parent
80ea7ca23f
commit
a133a70e87
@ -6,9 +6,13 @@ const pkg = require(excalidrawPackage);
|
|||||||
|
|
||||||
const publish = () => {
|
const publish = () => {
|
||||||
try {
|
try {
|
||||||
|
console.info("Installing the dependencies in root folder...");
|
||||||
execSync(`yarn --frozen-lockfile`);
|
execSync(`yarn --frozen-lockfile`);
|
||||||
|
console.info("Installing the dependencies in excalidraw directory...");
|
||||||
execSync(`yarn --frozen-lockfile`, { cwd: excalidrawDir });
|
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`);
|
execSync(`yarn --cwd ${excalidrawDir} publish`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user