File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ export async function build({
5454 }
5555 }
5656
57- if ( config && config . import ) {
57+ if ( config ? .import ) {
5858 for ( const key of Object . keys ( config . import ) ) {
5959 const name = snakeCase ( key ) . toUpperCase ( ) ;
6060 configEnv [ `IMPORT_${ name } ` ] = config . import [ key ] ;
6161 }
6262 }
6363
64- const IMPORT_CACHE = ` ${ distPath } / .import-cache` ;
65- const env = {
64+ const IMPORT_CACHE = join ( distPath , ' .import-cache' ) ;
65+ const env : Env = {
6666 ...process . env ,
6767 ...configEnv ,
6868 PATH : `${ IMPORT_CACHE } /bin:${ process . env . PATH } ` ,
@@ -72,15 +72,13 @@ export async function build({
7272 ENTRYPOINT : entrypoint
7373 } ;
7474
75- const builderPath = join ( __dirname , 'build.sh' ) ;
76-
77- await execa ( builderPath , [ ] , {
75+ await execa ( join ( __dirname , 'build.sh' ) , [ ] , {
7876 env,
7977 cwd : workPath ,
8078 stdio : 'inherit'
8179 } ) ;
8280
83- const lambda = await createLambda ( {
81+ const output = await createLambda ( {
8482 files : await glob ( '**' , distPath ) ,
8583 handler : entrypoint , // not actually used in `bootstrap`
8684 runtime : 'provided' ,
@@ -90,7 +88,5 @@ export async function build({
9088 }
9189 } ) ;
9290
93- return {
94- output : lambda
95- } ;
91+ return { output } ;
9692}
You can’t perform that action at this time.
0 commit comments