mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 12:54:23 +01:00 
			
		
		
		
	* feat: decouple package deps and introduce yarn workspaces * update root directory * fix * fix scripts * fix lint * update path in scripts * remove yarn.lock files from packages * ignore workspace * dummy * dummy * remove comment check * revert workflow changes * ignore ws when installing gh actions * remove log * update path * fix * fix typo
		
			
				
	
	
		
			25 lines
		
	
	
		
			631 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			631 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { execSync } = require("child_process");
 | 
						|
 | 
						|
const excalidrawDir = `${__dirname}/../packages/excalidraw`;
 | 
						|
const excalidrawPackage = `${excalidrawDir}/package.json`;
 | 
						|
const pkg = require(excalidrawPackage);
 | 
						|
 | 
						|
const publish = () => {
 | 
						|
  try {
 | 
						|
    execSync(`yarn  --frozen-lockfile`);
 | 
						|
    execSync(`yarn --frozen-lockfile`, { cwd: excalidrawDir });
 | 
						|
    execSync(`yarn run build:umd`, { cwd: excalidrawDir });
 | 
						|
    execSync(`yarn --cwd ${excalidrawDir} publish`);
 | 
						|
  } catch (error) {
 | 
						|
    console.error(error);
 | 
						|
    process.exit(1);
 | 
						|
  }
 | 
						|
};
 | 
						|
 | 
						|
const release = () => {
 | 
						|
  publish();
 | 
						|
  console.info(`Published ${pkg.version}!`);
 | 
						|
};
 | 
						|
 | 
						|
release();
 |