import * as path from 'path' ; import * as program from 'commander' ; param { program . ICommand } prog returns export function getCLIOptions ( prog ) { let opts = { package : prog [ 'package' ] , modules : prog [ 'modules' ] , renderer : prog [ 'renderer' ] , strict : typeof prog [ 'strict' ] === 'boolean' ? prog [ 'strict' ] : false } ; return opts ; } ; param { ICLIOpts } opts returns export function makeVetPaths ( opts ) { let paths = { packagePath : path . resolve ( process . cwd ( ) , opts . package , 'package.json' ) , modulesPath : path . resolve ( process . cwd ( ) , opts . modules , 'node_modules' ) } ; return paths ; } ;