import { Project } from '@kbn/pm' ; import { Task } from '../lib' ; export const InstallDependencies = { description : 'Installing node_modules, including production builds of packages' , async run ( config , log , build ) { const project = await Project . fromPath ( build . resolvePath ( ) ) ; await project . installDependencies ( { extraArgs : [ '--production' , '--ignore-optional' , '--pure-lockfile' , '--prefer-offline' , '--no-bin-links' , ] , } ) ; } , } ;