import { ToolingLog } from '@kbn/dev-utils' ; import { REPO_ROOT } from '@kbn/utils' ; import { join } from 'path' ; import del from 'del' ; export const clean = async ( { log } ) => { log . info ( 'Cleaning Storybook build folder' ) ; const dir = join ( REPO_ROOT , 'built_assets' , 'storybook' ) ; log . info ( 'Deleting folder:' , dir ) ; await del ( [ join ( dir , '*' ) ] ) ; await del ( [ dir ] ) ; } ;