Skip to content

Commit 83270eb

Browse files
committed
fix issue if no build param
Signed-off-by: shmck <[email protected]>
1 parent 89d7dd5 commit 83270eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function build(args: string[]) {
2929

3030
try {
3131
// dir - default .
32-
const dir = args[0].match(/^-/) ? "." : args[0];
32+
const dir = !args.length || args[0].match(/^-/) ? "." : args[0];
3333
// -m --markdown - default TUTORIAL.md
3434
const markdown =
3535
getArg(args, { name: "markdown", alias: "m" }) || "TUTORIAL.md";

0 commit comments

Comments
 (0)