mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
ci: introduce bundle size for package @excalidraw/excalidraw (#6785)
* ci: update bundle size limit * change the size script to track bundle size on the package excalidraw * fix build command * fix * remove * fix * update script * fix
This commit is contained in:
parent
a80ac4c748
commit
9fc15d81a0
3 changed files with 21 additions and 7 deletions
16
scripts/buildPackageExcalidraw.js
Normal file
16
scripts/buildPackageExcalidraw.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
const { execSync } = require("child_process");
|
||||
|
||||
const excalidrawDir = `${__dirname}/../src/packages/excalidraw`;
|
||||
|
||||
const build = () => {
|
||||
try {
|
||||
execSync(`yarn --frozen-lockfile`);
|
||||
execSync(`yarn --frozen-lockfile`, { cwd: excalidrawDir });
|
||||
execSync(`yarn run build:umd`, { cwd: excalidrawDir });
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
build();
|
Loading…
Add table
Add a link
Reference in a new issue