mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-11-04 12:52:08 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			374 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			374 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const releaseIt = require('release-it');
 | 
						|
const { execSync } = require('child_process');
 | 
						|
 | 
						|
class VantCliReleasePlugin extends releaseIt.Plugin {
 | 
						|
  async beforeRelease() {
 | 
						|
    // log an empty line
 | 
						|
    console.log('');
 | 
						|
 | 
						|
    execSync('vant-cli build', { stdio: 'inherit' });
 | 
						|
    execSync('vant-cli changelog', { stdio: 'inherit' });
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
module.exports = VantCliReleasePlugin;
 |