diff --git a/webapp/playbooks/package.json b/webapp/playbooks/package.json index afb0f922e3..5d9c809868 100644 --- a/webapp/playbooks/package.json +++ b/webapp/playbooks/package.json @@ -126,7 +126,7 @@ "test": "jest --forceExit --detectOpenHandles --verbose", "test:watch": "jest --watch", "test-ci": "jest --forceExit --detectOpenHandles --maxWorkers=2", - "check-types": "tsc", + "check-types": "tsc -b", "extract": "formatjs extract 'src/**/*.{ts,tsx}' --out-file i18n/temp.json --id-interpolation-pattern '[sha512:contenthash:base64:6]' && formatjs compile 'i18n/temp.json' --out-file i18n/en.json && rm i18n/temp.json", "graphql": "graphql-codegen --config graphql_gen.ts", "report-unused-exports": "ts-prune", diff --git a/webapp/playbooks/src/components/backstage/playbook_runs/playbook_run/add_participant_modal.tsx b/webapp/playbooks/src/components/backstage/playbook_runs/playbook_run/add_participant_modal.tsx index ce07f8e8fc..743af208d8 100644 --- a/webapp/playbooks/src/components/backstage/playbook_runs/playbook_run/add_participant_modal.tsx +++ b/webapp/playbooks/src/components/backstage/playbook_runs/playbook_run/add_participant_modal.tsx @@ -7,7 +7,7 @@ import {Modal} from 'react-bootstrap'; import styled from 'styled-components'; import {useDispatch, useSelector} from 'react-redux'; import {searchProfiles} from 'mattermost-redux/actions/users'; -import {UserProfile} from 'mattermost-webapp/packages/types/src/users'; +import {UserProfile} from '@mattermost/types/users'; import {LightningBoltOutlineIcon} from '@mattermost/compass-icons/components'; import {OptionTypeBase, StylesConfig} from 'react-select'; import {General} from 'mattermost-redux/constants'; diff --git a/webapp/playbooks/src/components/backstage/playbook_runs/playbook_run/rhs_participants.tsx b/webapp/playbooks/src/components/backstage/playbook_runs/playbook_run/rhs_participants.tsx index 14b524960e..fa0a95bd58 100644 --- a/webapp/playbooks/src/components/backstage/playbook_runs/playbook_run/rhs_participants.tsx +++ b/webapp/playbooks/src/components/backstage/playbook_runs/playbook_run/rhs_participants.tsx @@ -7,7 +7,7 @@ import styled from 'styled-components'; import {AccountPlusOutlineIcon} from '@mattermost/compass-icons/components'; import {useDispatch, useSelector} from 'react-redux'; import {getProfilesByIds} from 'mattermost-redux/actions/users'; -import {UserProfile} from 'mattermost-webapp/packages/types/src/users'; +import {UserProfile} from '@mattermost/types/users'; import {sortByUsername} from 'mattermost-redux/utils/user_utils'; import {getCurrentUser} from 'mattermost-redux/selectors/entities/users'; diff --git a/webapp/playbooks/tsconfig.json b/webapp/playbooks/tsconfig.json index f27802e776..6fbfd30301 100644 --- a/webapp/playbooks/tsconfig.json +++ b/webapp/playbooks/tsconfig.json @@ -24,9 +24,6 @@ "useUnknownInCatchVariables": false, "paths": { "src": ["src"], - "@mattermost/types/*": ["../platform/packages/types/src/*"], - "@mattermost/client": ["../platform/client/src"], - "@mattermost/components": ["../platform/components/src"], "mattermost-redux/*": ["../channels/src/packages/mattermost-redux/src/*"], "reselect": ["../channels/src/packages/reselect/src"] } @@ -34,8 +31,9 @@ "include": [ "./**/*" ], - "exclude": [ - "dist", - "!node_modules/@types" + "references": [ + {"path": "../platform/client"}, + {"path": "../platform/components"}, + {"path": "../platform/types"} ] }