From ef6530d246bacaa974e9a27b7284ed77c2ede861 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Wed, 10 Dec 2025 20:16:35 -0800 Subject: [PATCH] Add shared config package and update tsconfig - Add the @sd/config package with base and app TS config and a package.json - Include a base.tsconfig.json and an app.tsconfig.json for TS projects - Update the root tsconfig to remove apps/landing and add packages/config --- packages/config/app.tsconfig.json | 7 +++++++ packages/config/base.tsconfig.json | 20 ++++++++++++++++++++ packages/config/package.json | 8 ++++++++ packages/config/tsconfig.json | 7 +++++++ tsconfig.json | 6 +++--- 5 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 packages/config/app.tsconfig.json create mode 100644 packages/config/base.tsconfig.json create mode 100644 packages/config/package.json create mode 100644 packages/config/tsconfig.json diff --git a/packages/config/app.tsconfig.json b/packages/config/app.tsconfig.json new file mode 100644 index 000000000..e17622d5a --- /dev/null +++ b/packages/config/app.tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "./base.tsconfig.json", + "compilerOptions": { + "noEmit": true, + "emitDeclarationOnly": false + } +} diff --git a/packages/config/base.tsconfig.json b/packages/config/base.tsconfig.json new file mode 100644 index 000000000..f43c27ad2 --- /dev/null +++ b/packages/config/base.tsconfig.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "display": "Base", + "compilerOptions": { + "strict": true, + "jsx": "preserve", + "esModuleInterop": true, + "skipLibCheck": true, + "preserveWatchOutput": true, + "forceConsistentCasingInFileNames": true, + "allowSyntheticDefaultImports": true, + "composite": true, + "declaration": true, + "emitDeclarationOnly": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "module": "ESNext", + "target": "ESNext" + } +} diff --git a/packages/config/package.json b/packages/config/package.json new file mode 100644 index 000000000..86e7747ec --- /dev/null +++ b/packages/config/package.json @@ -0,0 +1,8 @@ +{ + "name": "@sd/config", + "version": "0.0.0", + "private": true, + "exports": { + "./*": "./*" + } +} diff --git a/packages/config/tsconfig.json b/packages/config/tsconfig.json new file mode 100644 index 000000000..93dcddaa5 --- /dev/null +++ b/packages/config/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "./base.tsconfig.json", + "compilerOptions": { + "noEmit": true + }, + "include": ["."] +} diff --git a/tsconfig.json b/tsconfig.json index 5eba856c3..6e42b640d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,14 +4,14 @@ { "path": "apps/tauri" }, - { - "path": "apps/landing" - }, { "path": "apps/api" }, { "path": "packages/ui" + }, + { + "path": "packages/config" } ] }