import { pri } from '../../../node' ; import text from '../../../utils/text' ; import { IOpts } from './interface' ; pri . commands . registerCommand ( { name : [ 'bundle' ] , description : text . commander . bundle . description , options : { skipLint : { description : 'Skip lint' , } , dev : { description : 'Is for development' , } , publicPath : { alias : 'p' , description : 'Rewrite publicPath' , } , } , action : async ( opts ? ) => { const commandBundleModule = await import ( './command-bundle' ) ; await commandBundleModule . prepareBundle ( opts ) ; await commandBundleModule . commandBundle ( opts ) ; } , } ) ;