import { generateShrinkwrap } from '../lib' ; async function main ( ) { await generateShrinkwrap ( { packageJsonFile : 'package.json' , outputFile : 'npm-shrinkwrap.json' , } ) ; console . error ( 'Generated npm-shrinkwrap.json' ) ; } main ( ) . catch ( e => { console . error ( e ) ; process . exitCode = 1 ; } ) ;