-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(azure-react): updates app insights web version and ts config (#106)
[5471](https://dev.azure.com/amido-dev/Amido-Stacks/_workitems/edit/5471) - bump app insights web patch version to resolve linting - microsoft/applicationinsights-react-js#32 - update ts config to resolve linting
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/azure-react/src/generators/app-insights-web/utils/tsconfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { updateJson, Tree } from '@nrwl/devkit'; | ||
|
||
const updateTsConfig = (tree: Tree, filePath: string) => { | ||
updateJson(tree, filePath, tsconfig => { | ||
const update = tsconfig; | ||
|
||
const compiler: any = { | ||
composite: true, | ||
declaration: true, | ||
}; | ||
|
||
update.compilerOptions = { | ||
...update.compilerOptions, | ||
...compiler, | ||
}; | ||
|
||
update.include = [...new Set([...(update.include || []), '**/*.tsx'])]; | ||
return update; | ||
}); | ||
}; | ||
|
||
export default updateTsConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export const appInsightsWebVersion = '2.8.9'; | ||
export const appInsightsWebVersion = '2.8.10'; | ||
export const appInsightsReactVersion = '3.4.0'; |