File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,14 @@ fn get_bundle_command() -> Command {
304
304
. arg (
305
305
arg ! ( --"import-map" <Path >) . help ( "(DEPRECATED) Path to import map file" ) ,
306
306
)
307
+ . arg (
308
+ arg ! ( --"decorator" <TYPE >)
309
+ . help ( concat ! (
310
+ "(DEPRECATED) Type of decorator to use on the main worker and event worker. " ,
311
+ "If not specified, the decorator feature is disabled."
312
+ ) )
313
+ . value_parser ( [ "tc39" , "typescript" , "typescript_with_metadata" ] ) ,
314
+ )
307
315
. arg (
308
316
arg ! ( --"checksum" <KIND >)
309
317
. env ( "EDGE_RUNTIME_BUNDLE_CHECKSUM" )
Original file line number Diff line number Diff line change @@ -272,13 +272,27 @@ fn main() -> Result<ExitCode, anyhow::Error> {
272
272
sub_matches. get_one :: < String > ( "output" ) . cloned ( ) . unwrap ( ) ;
273
273
let import_map_path =
274
274
sub_matches. get_one :: < String > ( "import-map" ) . cloned ( ) ;
275
+ let decorator = sub_matches. get_one :: < String > ( "decorator" ) . cloned ( ) ;
275
276
let static_patterns =
276
277
if let Some ( val_ref) = sub_matches. get_many :: < String > ( "static" ) {
277
278
val_ref. map ( |s| s. as_str ( ) ) . collect :: < Vec < & str > > ( )
278
279
} else {
279
280
vec ! [ ]
280
281
} ;
281
282
283
+ if import_map_path. is_some ( ) {
284
+ warn ! ( concat!(
285
+ "Specifying import_map through flags is no longer supported. " ,
286
+ "Please use deno.json instead."
287
+ ) )
288
+ }
289
+ if decorator. is_some ( ) {
290
+ warn ! ( concat!(
291
+ "Specifying decorator through flags is no longer supported. " ,
292
+ "Please use deno.json instead."
293
+ ) )
294
+ }
295
+
282
296
let entrypoint_script_path = sub_matches
283
297
. get_one :: < String > ( "entrypoint" )
284
298
. cloned ( )
You can’t perform that action at this time.
0 commit comments