File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import Elements from "@cocreate/elements";
2828import Actions from "@cocreate/actions" ;
2929import { render } from "@cocreate/render" ;
3030import { queryElements } from "@cocreate/utils" ;
31- import "@cocreate/element-prototype" ;
31+ import { setValue } from "@cocreate/element-prototype" ;
3232
3333const inputs = new Map ( ) ;
3434const Files = new Map ( ) ;
Original file line number Diff line number Diff line change @@ -544,15 +544,11 @@ module.exports = async function file(
544544 `module.exports = ${ JSON . stringify ( newConfig , null , 4 ) } ;`
545545 ) ;
546546 }
547-
548- if ( ! match . length ) {
549- console . log ( "upload complete!" ) ;
550-
551- setTimeout ( function ( ) {
552- process . exit ( ) ;
553- } , 2000 ) ;
554- }
555547 }
556548
557549 await run ( ) ;
550+ // Only exit if not in watch mode
551+ if ( ! process . argv . includes ( "--watch" ) && ! process . argv . includes ( "-w" ) ) {
552+ process . exit ( ) ;
553+ }
558554} ;
You can’t perform that action at this time.
0 commit comments