Skip to content

Commit 6eb8455

Browse files
committed
add hsm push --watch which will be the new hsm dev
1 parent b0dc375 commit 6eb8455

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bin/hsm.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ switch (commands[0]) {
236236
} else
237237
scripts.push(`*.*`)
238238

239-
if (commands[0] == `push`) {
239+
const watchOption = popOption(`watch`)
240+
241+
if (commands[0] == `push` && !watchOption?.value) {
240242
const dtsPathOption = popOption(`dts-path`)
241243

242244
complainAboutUnrecognisedOptions()
@@ -463,6 +465,8 @@ ${colourN(`--force-quine-cheats`)}
463465
${hackmudPathOption}
464466
${colourN(`--dts-path`)}=${colourB(`<path>`)}
465467
Path to generate a type declaration (.d.ts) file for the scripts
468+
${colourN(`--watch`)}
469+
Watch for changes
466470
467471
${colourA(`Examples:`)}
468472
${colourC(`hsm`)} ${colourL(commands[0])} ${colourV(`src`)}
@@ -553,8 +557,6 @@ ${colourN(`Version`) + colourS(`: `) + colourV(moduleVersion)}
553557
${colourA(`Commands:`)}
554558
${colourL(`push`)}
555559
${pushCommandDescription}
556-
${colourL(`dev`)}
557-
${watchCommandDescription}
558560
${colourL(`minify`)}
559561
${minifyCommandDescription}
560562
${colourL(`emit-dts`)}

0 commit comments

Comments
 (0)