@@ -39,6 +39,10 @@ export type GlobalOptions = {
3939
4040const createCommand = new Command < GlobalOptions > ( )
4141 . description ( "Create a new application" )
42+ . option (
43+ "--allow-node-modules" ,
44+ "Allow node_modules directory to be included when uploading" ,
45+ )
4246 . option (
4347 "--org <name:string>" ,
4448 "The name of the organization to create the application for" ,
@@ -58,7 +62,14 @@ const createCommand = new Command<GlobalOptions>()
5862 Deno . exit ( 1 ) ;
5963 }
6064
61- await create ( debug , endpoint , rootPath , configContent , initOrg ) ;
65+ await create (
66+ debug ,
67+ endpoint ,
68+ rootPath ,
69+ configContent ,
70+ options . allowNodeModules ?? false ,
71+ initOrg ,
72+ ) ;
6273 } ,
6374 ) ;
6475
@@ -273,6 +284,10 @@ deploy your local directory to the specified application.`)
273284 . option ( "--org <name:string>" , "The name of the organization" )
274285 . option ( "--app <name:string>" , "The name of the application" )
275286 . option ( "--prod" , "Deploy directly to production" )
287+ . option (
288+ "--allow-node-modules" ,
289+ "Allow node_modules directory to be included when uploading" ,
290+ )
276291 . arguments ( "[root-path:string]" )
277292 . globalAction ( ( options ) => {
278293 const endpoint = Deno . env . get ( "DENO_DEPLOY_ENDPOINT" ) ;
@@ -314,6 +329,7 @@ deploy your local directory to the specified application.`)
314329 options . endpoint as string ,
315330 rootPath ,
316331 configContent ,
332+ options . allowNodeModules ?? false ,
317333 orgAndApp . org ,
318334 ) ;
319335 } else {
@@ -325,6 +341,7 @@ deploy your local directory to the specified application.`)
325341 orgAndApp . org ,
326342 orgAndApp . app ,
327343 options . prod ?? false ,
344+ options . allowNodeModules ?? false ,
328345 ) ;
329346 }
330347 } ,
0 commit comments