Skip to content

Commit

Permalink
fix(tsbb): Fix fileNames undefined issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 8, 2021
1 parent 4ad97d2 commit 66c614e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tsbb/src/cli.ts
Expand Up @@ -56,8 +56,8 @@ const argv: ArgvArguments = parser(process.argv.slice(2), {
argv.fileNames = Array.from(new Set(argv.fileNames));
}

if (!argv.fileNames && ts.sys.fileExists(argv.entry)) {
argv.fileNames = [argv.entry];
if (!argv.fileNames) {
argv.fileNames = ts.sys.fileExists(argv.entry) ? [argv.entry] : [];
}

if (argv.disableBabel) {
Expand Down

0 comments on commit 66c614e

Please sign in to comment.