import { JsPackageManager } from './JsPackageManager' ; export class Yarn1Proxy extends JsPackageManager { readonly type = 'yarn1' ; initPackageJson ( ) { return this . executeCommand ( 'yarn' , [ 'init' , '-y' ] ) ; } getRunEzbCommand ( ) { return `yarn ezb` ; } getRunCommand ( command ) { return `yarn ${ command }` ; } protected runAddDeps ( dependencies , installAsDevDependencies ) { let args = [ '--ignore-workspace-root-check' , ... dependencies ] ; if ( installAsDevDependencies ) { args = [ '-D' , ... args ] ; } this . executeCommand ( 'yarn' , [ 'add' , ... args ] , 'inherit' ) ; } }