import { Command } from 'commander' ; import { buildWatch , IBuildWatchCommandOption } from '../commands' ; export const buildWatchCli = ( program ) => { program . command ( 'build-watch [project]' ) . usage ( '[options]' ) . option ( '--only-self' , 'build target project with nothing' ) . option ( '-i, --init' , 'init build beforebuild watch ' ) . description ( 'watch target project and target project’s dependences' ) . action ( async ( targetProjectName , option ) => { await buildWatch ( targetProjectName , option ) ; } ) ; } ;