CLI v1.1.0+ doesn't read tsconfig.json
when --project
is not specified
#102
Labels
bug
Something isn't working
tsconfig.json
when --project
is not specified
#102
Current behavior
Initialize my repository for reproduce:
When running
tsr
without--project
: Incorrect output, doesn't read tsconfig.jsonWhen running
tsr
with--project
: Correct outputRoot Cause
--project
's default value is''
, notundefined
or'tsconfig.json'
.tsr/lib/cli.ts
Lines 8 to 15 in 83a7f3b
'tsconfig.json'
is set as the default value for theconfigFile
parameter in thetsr
function, it is not used when''
is passed.tsr/lib/cli.ts
Line 104 in 83a7f3b
tsr/lib/tsr.ts
Line 41 in 83a7f3b
configPath
, causingts.readConfigFile()
to fail.The text was updated successfully, but these errors were encountered: