Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a1ebe0

Browse files
authored
Merge pull request#27 from coderoad/fix/no-build-param
fix issue if no build param
2 parents89d7dd5 +83270eb commit7a1ebe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/build.ts

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp