From 196c33ff6f7de7c4f7f5d2c51317f84a82ad0b63 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Tue, 7 Feb 2023 16:30:21 +0100 Subject: [PATCH] chore(react-migration-v8-v9): enable cross project TS path aliases for improved DX --- .../react-migration-v8-v9/package.json | 2 +- .../react-migration-v8-v9/tsconfig.json | 3 ++- .../tsconfig.type-check.json | 19 +++++++++++++++++++ tsconfig.base.all.json | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 packages/react-components/react-migration-v8-v9/tsconfig.type-check.json diff --git a/packages/react-components/react-migration-v8-v9/package.json b/packages/react-components/react-migration-v8-v9/package.json index bd399ea2bbb91d..31d1be77be88b6 100644 --- a/packages/react-components/react-migration-v8-v9/package.json +++ b/packages/react-components/react-migration-v8-v9/package.json @@ -18,7 +18,7 @@ "just": "just-scripts", "lint": "just-scripts lint", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json", + "type-check": "tsc -b tsconfig.type-check.json", "generate-api": "just-scripts generate-api", "storybook": "start-storybook", "start": "yarn storybook" diff --git a/packages/react-components/react-migration-v8-v9/tsconfig.json b/packages/react-components/react-migration-v8-v9/tsconfig.json index 1941a041d46c19..cb0beb41b1488d 100644 --- a/packages/react-components/react-migration-v8-v9/tsconfig.json +++ b/packages/react-components/react-migration-v8-v9/tsconfig.json @@ -1,6 +1,7 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../tsconfig.base.all.json", "compilerOptions": { + "strict": true, "target": "ES2019", "noEmit": true, "isolatedModules": true, diff --git a/packages/react-components/react-migration-v8-v9/tsconfig.type-check.json b/packages/react-components/react-migration-v8-v9/tsconfig.type-check.json new file mode 100644 index 00000000000000..fde4d991642ae9 --- /dev/null +++ b/packages/react-components/react-migration-v8-v9/tsconfig.type-check.json @@ -0,0 +1,19 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": {} + }, + "include": [], + "files": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + }, + { + "path": "./.storybook/tsconfig.json" + } + ] +} diff --git a/tsconfig.base.all.json b/tsconfig.base.all.json index 070df97507612d..46a6c6f4ad8920 100644 --- a/tsconfig.base.all.json +++ b/tsconfig.base.all.json @@ -7,6 +7,7 @@ "typeRoots": ["node_modules/@types", "./typings"], "isolatedModules": true, "preserveConstEnums": true, + "sourceMap": true, "rootDir": ".", "baseUrl": ".", "paths": {