import { deleteAll , Task } from '../../lib' ; export const CleanNodeBuilds = { description : 'Cleaning npm from node' , async run ( config , log , build ) { for ( const platform of config . getNodePlatforms ( ) ) { await deleteAll ( [ build . resolvePathForPlatform ( platform , 'node/lib/node_modules' ) , build . resolvePathForPlatform ( platform , 'node/bin/npm' ) , build . resolvePathForPlatform ( platform , 'node/bin/npx' ) , ] , log ) ; } } , } ;