import { makeExecutable , shell } from './os' ; import { CDKBuildOptions , CompilerOverrides , currentPackageJson , packageCompiler } from './package-info' ; import { Timers } from './timer' ; /**
 * Run the compiler on the current package
 */ export async function compileCurrentPackage ( options , timers , compilers = { } ) { const env = options . env ; await shell ( packageCompiler ( compilers , options ) , { timers , env } ) ; const scripts = currentPackageJson ( ) . bin || { } ; for ( const script of Object . values ( scripts ) as any ) { await makeExecutable ( script ) ; } }