From fe0230da8996013ff200fc8fe0b9a4aeb701076d Mon Sep 17 00:00:00 2001 From: HasithDeAlwis Date: Wed, 20 Nov 2024 17:31:17 -0500 Subject: [PATCH] chore(libs/website/config): setup tsconfig --- libs/website/tsconfig.json | 16 ++++++++++++++++ libs/website/tsconfig.lib.json | 25 +++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 libs/website/tsconfig.json create mode 100644 libs/website/tsconfig.lib.json diff --git a/libs/website/tsconfig.json b/libs/website/tsconfig.json new file mode 100644 index 00000000..bd62bac6 --- /dev/null +++ b/libs/website/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "jsx": "react-jsx", + "allowJs": false, + "allowSyntheticDefaultImports": true, + "esModuleInterop": false + }, + "references": [ + { + "path": "./tsconfig.lib.json" + } + ], + "files": [], + "include": [] +} diff --git a/libs/website/tsconfig.lib.json b/libs/website/tsconfig.lib.json new file mode 100644 index 00000000..7081c64a --- /dev/null +++ b/libs/website/tsconfig.lib.json @@ -0,0 +1,25 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "types": [ + "node", + "@nx/react/typings/cssmodule.d.ts", + "@nx/react/typings/image.d.ts" + ], + "outDir": "../../../dist/out-tsc" + }, + "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"], + "exclude": [ + "jest.config.ts", + "src/**/*.spec.ts", + "src/**/*.test.ts", + "src/**/*.spec.tsx", + "src/**/*.test.tsx", + "src/**/*.spec.js", + "src/**/*.test.js", + "src/**/*.spec.jsx", + "src/**/*.test.jsx", + "**/*.stories.ts", + "**/*.stories.js" + ] +}