Skip to content

fix: undefined configPath now falls back to default#1346

Merged
johnnyreilly merged 2 commits intomainfrom
bugfix/options_configfile
Jul 24, 2021
Merged

fix: undefined configPath now falls back to default#1346
johnnyreilly merged 2 commits intomainfrom
bugfix/options_configfile

Conversation

@johnnyreilly
Copy link
Copy Markdown
Member

@johnnyreilly johnnyreilly commented Jul 24, 2021

Fixes #1345 by ensuring that configPath is set to the default value if undefined is supplied.

There's some prettier reformatting in this that makes the PR a little noisier - but this effectively comes down to a 2 line change.

Comment thread src/index.ts
options.ignoreDiagnostics = arrify(options.ignoreDiagnostics).map(Number);
options.logLevel = options.logLevel.toUpperCase() as LogLevel;
options.instance = instanceName;
options.configFile = options.configFile || 'tsconfig.json';
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line here (and the deletion of 270) is the essential fix

@johnnyreilly johnnyreilly merged commit 55d2a85 into main Jul 24, 2021
@johnnyreilly johnnyreilly deleted the bugfix/options_configfile branch July 24, 2021 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow options.configFile to be undefined

1 participant