@@ -71,7 +71,6 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
71
71
const path = version . split ( ':' ) [ 1 ] ;
72
72
if ( await access ( path ) . catch ( ( ) => true ) ) continue ;
73
73
const stats = await stat ( path ) ;
74
- console . log ( `Packing file-system dependency on ${ path } for Cloud Functions` ) ;
75
74
if ( stats . isDirectory ( ) ) {
76
75
const result = spawnSync ( Commands . NPM , [ 'pack' , relative ( functionsDist , path ) ] , { cwd : functionsDist } ) ;
77
76
if ( ! result . stdout ) continue ;
@@ -90,7 +89,6 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
90
89
const path = version . split ( ':' ) [ 1 ] ;
91
90
if ( await access ( path ) . catch ( ( ) => true ) ) continue ;
92
91
const stats = await stat ( path ) ;
93
- console . log ( `Packing file-system dependency on ${ path } for Cloud Functions` ) ;
94
92
if ( stats . isDirectory ( ) ) {
95
93
const result = spawnSync ( Commands . NPM , [ 'pack' , relative ( functionsDist , path ) ] , { cwd : functionsDist } ) ;
96
94
if ( ! result . stdout ) continue ;
@@ -119,11 +117,7 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
119
117
120
118
await copyFile ( getProjectPath ( 'package-lock.json' ) , join ( functionsDist , 'package-lock.json' ) ) . catch ( ( ) => { } ) ;
121
119
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 } ) ;
127
121
128
122
if ( bootstrapScript ) {
129
123
await writeFile ( join ( functionsDist , 'bootstrap.js' ) , bootstrapScript ) ;
0 commit comments