Skip to content

Commit 8640bfc

Browse files
committed
add a bunch of aliases for hsm dev's type-declaration-path option
1 parent 5adfeef commit 8640bfc

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
@@ -162,7 +162,7 @@ for (const argument of process.argv.slice(2)) {
162162
watch(commands[1], config.hackmudPath, {
163163
scripts,
164164
onPush: onPushLogger,
165-
typeDeclarationPath: options.get(`type-declaration-path`)?.toString(),
165+
typeDeclarationPath: (options.get(`type-declaration-path`) || options.get(`type-declaration`) || options.get(`dts`) || options.get(`gen-types`))?.toString(),
166166
minify: !options.get(`skip-minify`),
167167
mangleNames: Boolean(options.get(`mangle-names`)),
168168
onReady: () => console.log(`watching`)

0 commit comments

Comments
 (0)