@@ -71,7 +71,6 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
7171 const path = version . split ( ':' ) [ 1 ] ;
7272 if ( await access ( path ) . catch ( ( ) => true ) ) continue ;
7373 const stats = await stat ( path ) ;
74- console . log ( `Packing file-system dependency on ${ path } for Cloud Functions` ) ;
7574 if ( stats . isDirectory ( ) ) {
7675 const result = spawnSync ( Commands . NPM , [ 'pack' , relative ( functionsDist , path ) ] , { cwd : functionsDist } ) ;
7776 if ( ! result . stdout ) continue ;
@@ -90,7 +89,6 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
9089 const path = version . split ( ':' ) [ 1 ] ;
9190 if ( await access ( path ) . catch ( ( ) => true ) ) continue ;
9291 const stats = await stat ( path ) ;
93- console . log ( `Packing file-system dependency on ${ path } for Cloud Functions` ) ;
9492 if ( stats . isDirectory ( ) ) {
9593 const result = spawnSync ( Commands . NPM , [ 'pack' , relative ( functionsDist , path ) ] , { cwd : functionsDist } ) ;
9694 if ( ! result . stdout ) continue ;
@@ -119,11 +117,7 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
119117
120118 await copyFile ( getProjectPath ( 'package-lock.json' ) , join ( functionsDist , 'package-lock.json' ) ) . catch ( ( ) => { } ) ;
121119
122- await spawn ( Commands . NPM , [ 'i' , '--only' , 'production' , '--no-audit' ] , { cwd : functionsDist } , ( stdoutChunk : any ) => {
123- console . log ( stdoutChunk . toString ( ) ) ;
124- } , ( errChunk : any ) => {
125- console . error ( errChunk . toString ( ) ) ;
126- } ) ;
120+ await spawn ( Commands . NPM , [ 'i' , '--omit' , 'dev' , '--no-audit' ] , { cwd : functionsDist } ) ;
127121
128122 if ( bootstrapScript ) {
129123 await writeFile ( join ( functionsDist , 'bootstrap.js' ) , bootstrapScript ) ;
0 commit comments