Skip to content

Commit

Permalink
update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
tnorling committed Nov 1, 2020
1 parent 75e545b commit 78eac01
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/msal-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"build": "tsdx build --tsconfig ./tsconfig.build.json",
"build:modules:watch": "tsdx watch --verbose",
"test": "tsdx test .*.spec.*",
"lint": "cd ../../ && npm run lint:react",
Expand Down Expand Up @@ -53,7 +53,6 @@
"@types/jest": "^26.0.15",
"@types/react": "^16.9.43",
"@types/react-dom": "^16.9.8",
"@types/testing-library__jest-dom": "^5.9.5",
"babel-loader": "^8.1.0",
"husky": "^4.2.5",
"jest": "^26.6.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import React from "react";
import { render, screen, waitFor } from "@testing-library/react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { testAccount, TEST_CONFIG } from "../TestConstants";
import { MsalProvider } from "../../src/MsalProvider";
import { AuthenticatedTemplate } from "../../src/components/AuthenticatedTemplate";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import React from "react";
import { render, screen, waitFor } from "@testing-library/react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";
import { testAccount, TEST_CONFIG } from "../TestConstants";
import { MsalProvider } from "../../src/MsalProvider";
import { UnauthenticatedTemplate } from "../../src/components/UnauthenticatedTemplate";
Expand Down
7 changes: 7 additions & 0 deletions lib/msal-react/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src"
},
"include": ["src"]
}
4 changes: 2 additions & 2 deletions lib/msal-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"include": ["src", "types"],
"include": ["src", "types", "test"],
"compilerOptions": {
"module": "esnext",
"lib": ["dom", "esnext"],
"importHelpers": true,
"declaration": true,
"sourceMap": true,
"rootDir": "./src",
"rootDir": "./",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down

0 comments on commit 78eac01

Please sign in to comment.