Skip to content

Commit 38da2d0

Browse files
committed
fix: npm run open is broken
this PR restores the `codeflare hello` command, and also adds `codeflare explorer`, which both launch the same command handler as the existing `codeflare explore`
1 parent eb37f90 commit 38da2d0

File tree

1 file changed

+8
-6
lines changed
  • plugins/plugin-codeflare/src/controller

1 file changed

+8
-6
lines changed

plugins/plugin-codeflare/src/controller/index.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ export default function registerCodeflareCommands(registrar: Registrar) {
6363
})
6464

6565
// launch our explore guidebook
66-
registrar.listen("/codeflare/explore", (args) => import("./hello").then((_) => _.default(args)), {
67-
needsUI: true,
68-
outputOnly: true,
69-
width,
70-
height,
71-
})
66+
;["explore", "explorer", "hello"].forEach((explore) =>
67+
registrar.listen(`/codeflare/${explore}`, (args) => import("./hello").then((_) => _.default(args)), {
68+
needsUI: true,
69+
outputOnly: true,
70+
width,
71+
height,
72+
})
73+
)
7274

7375
/**
7476
* Launch the gallery with asciinema plays

0 commit comments

Comments
 (0)