Skip to content

Commit c4f2e12

Browse files
committed
fix deprecation warning for --type-declaration, --dts, --gen-types showing when it's not supposed to
1 parent e9d5c54 commit c4f2e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/hsm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ ${colourN(`--hackmud-path`)}=${colourB(`<path>`)} option or ${colourN(`HSM_HACKM
300300
const dtsPathOption =
301301
popOption(`dts-path`, `type-declaration-path`, `type-declaration`, `dts`, `gen-types`)
302302

303-
if (dtsPathOption && dtsPathOption.name != `emit-dts` && dtsPathOption.name != `gen-dts`) {
303+
if (dtsPathOption && dtsPathOption.name != `dts-path` && dtsPathOption.name != `type-declaration-path`) {
304304
console.warn(colourF(`\
305305
Warning: ${colourN(dtsPathOption.name)} is being deprecated and will be removed in the
306306
next minor release of HSM

0 commit comments

Comments
 (0)