import { run , ethers } from 'hardhat' ; async function main ( ) { await run ( "compile" ) ; const accounts = await ethers . getSigners ( ) ; console . log ( `accounts` , accounts . map ( a => a . address ) ) ; } main ( ) . then ( ( ) => process . exit ( 0 ) ) . catch ( ( error ) => { console . error ( error ) ; process . exit ( 1 ) ; } ) ;