Skip to content

Commit

Permalink
add tsconfig.*.json pattern to the typescript plugin (#261)
Browse files Browse the repository at this point in the history
* add `tsconfig.*.json` pattern to the typescript plugin

* apply prettier

* docs
  • Loading branch information
jgoux authored Sep 24, 2023
1 parent 00c608a commit 2a5504a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ or `devDependencies`:
```json
{
"typescript": {
"config": ["tsconfig.json"]
"config": ["tsconfig.json", "tsconfig.*.json"]
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ENABLERS = ['typescript'];

export const isEnabled: IsPluginEnabledCallback = ({ dependencies }) => hasDependency(dependencies, ENABLERS);

export const CONFIG_FILE_PATTERNS = ['tsconfig.json'];
export const CONFIG_FILE_PATTERNS = ['tsconfig.json', 'tsconfig.*.json'];

const resolveExtensibleConfig = async (configFilePath: string) => {
const config: TsConfigJson = await load(configFilePath);
Expand Down

0 comments on commit 2a5504a

Please sign in to comment.