This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import { Log, NoOpLog } from "@miniflare/shared";
3232import { SitesPlugin } from "@miniflare/sites" ;
3333import { WebSocketPlugin } from "@miniflare/web-sockets" ;
3434import sourceMap from "source-map-support" ;
35+ import { startREPL } from "./repl" ;
3536import { VariedStorageFactory } from "./storage" ;
3637
3738// MiniflareCore will ensure CorePlugin is first and BindingsPlugin is last,
@@ -141,6 +142,10 @@ export class Miniflare extends MiniflareCore<Plugins> {
141142 return startScheduler ( this ) ;
142143 }
143144
145+ startREPL ( ) : Promise < void > {
146+ return startREPL ( this ) ;
147+ }
148+
144149 async getOpenURL ( ) : Promise < string | undefined > {
145150 const {
146151 open,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import type { Options } from "@miniflare/shared";
55import { red } from "kleur/colors" ;
66import type { MiniflareOptions } from "miniflare" ;
77import open from "open" ;
8- import { startREPL } from "./repl" ;
98import { updateCheck } from "./updater" ;
109
1110function suppressWarnings ( ) {
@@ -105,7 +104,7 @@ async function main() {
105104 try {
106105 if ( mfOptions . repl ) {
107106 // Start Miniflare REPL
108- await startREPL ( mf ) ;
107+ await mf . startREPL ( ) ;
109108 } else {
110109 // Start Miniflare development server
111110 await mf . startServer ( ) ;
You can’t perform that action at this time.
0 commit comments