From d2e44c8b65c7a56e85eb471193ea6748a0a4889e Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 9 Apr 2026 12:35:40 +0200 Subject: [PATCH] chore(packages): remove 2 zero-consumer config packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Item #21 in the pre-launch audit suggested merging the four config-y packages (shared-config, shared-tsconfig, shared-vite-config, shared-drizzle-config) into a single @mana/build-config with conditional exports. The first reality-check of the item counted package.json declarations and reported 5 total consumer relationships. A second reality-check while implementing — grep over actual .ts / .svelte / .json imports — showed two of the four packages are dead: - packages/shared-config/ (598 LOC, 4 TS files) Declared in apps/mana/apps/web/package.json but never imported anywhere. Stale dep from before the consolidation. - packages/shared-tsconfig/ (5 JSON tsconfig presets) Zero references anywhere. Not extended by any tsconfig.json, not declared in any package.json. Pure Pre-Consolidation leftover. The remaining two packages were left intact: - shared-vite-config (3 real consumers in vite.config.ts files) - shared-drizzle-config (1 real consumer in mana-media) They cover different toolchains (Vite SSR config vs drizzle-kit generator config) — merging them into a single build-config would be cosmetic, not a real reduction in complexity. Audit's "merge to 1" goal was based on the inflated consumer count and is no longer worth doing. Verification: - pnpm install completes cleanly - apps/api type-check still 0 errors - packages/shared-hono type-check still 0 errors Net: 4 → 2 config packages, ~700 LOC dead code removed. Also closes item #26 (non-root pnpm-lock.yaml status) — already done in commit 034a07d16, doc was just out of date. Audit is now 29/29 items fully processed. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/mana/apps/web/package.json | 1 - docs/REFACTORING_AUDIT_2026_04.md | 72 ++++++--- packages/shared-config/package.json | 25 --- packages/shared-config/src/api.ts | 207 ------------------------ packages/shared-config/src/env.ts | 170 ------------------- packages/shared-config/src/features.ts | 173 -------------------- packages/shared-config/src/index.ts | 48 ------ packages/shared-config/tsconfig.json | 19 --- packages/shared-tsconfig/astro.json | 7 - packages/shared-tsconfig/base.json | 11 -- packages/shared-tsconfig/expo.json | 9 -- packages/shared-tsconfig/nestjs.json | 23 --- packages/shared-tsconfig/package.json | 14 -- packages/shared-tsconfig/sveltekit.json | 14 -- 14 files changed, 51 insertions(+), 742 deletions(-) delete mode 100644 packages/shared-config/package.json delete mode 100644 packages/shared-config/src/api.ts delete mode 100644 packages/shared-config/src/env.ts delete mode 100644 packages/shared-config/src/features.ts delete mode 100644 packages/shared-config/src/index.ts delete mode 100644 packages/shared-config/tsconfig.json delete mode 100644 packages/shared-tsconfig/astro.json delete mode 100644 packages/shared-tsconfig/base.json delete mode 100644 packages/shared-tsconfig/expo.json delete mode 100644 packages/shared-tsconfig/nestjs.json delete mode 100644 packages/shared-tsconfig/package.json delete mode 100644 packages/shared-tsconfig/sveltekit.json diff --git a/apps/mana/apps/web/package.json b/apps/mana/apps/web/package.json index ad1e71f09..1f7a48bf9 100644 --- a/apps/mana/apps/web/package.json +++ b/apps/mana/apps/web/package.json @@ -55,7 +55,6 @@ "@mana/shared-auth": "workspace:*", "@mana/shared-auth-ui": "workspace:*", "@mana/shared-branding": "workspace:*", - "@mana/shared-config": "workspace:*", "@mana/shared-error-tracking": "workspace:*", "@mana/shared-i18n": "workspace:*", "@mana/shared-icons": "workspace:*", diff --git a/docs/REFACTORING_AUDIT_2026_04.md b/docs/REFACTORING_AUDIT_2026_04.md index c3e34d9fb..6a5979e1b 100644 --- a/docs/REFACTORING_AUDIT_2026_04.md +++ b/docs/REFACTORING_AUDIT_2026_04.md @@ -495,17 +495,38 @@ Library-Anlage und wird aktiv genutzt. ## 🟢 Phase 4 — Low -### 21. ☐ Config-Packages mergen — REAL (4, nicht 3) +### 21. ⚠️ Config-Packages — Reality-Check war WIEDER ungenau -**Reality-Check (2026-04-09):** Audit nannte 3, übersah einen vierten: -- `packages/shared-config/` (4 TS files, 1 Consumer: mana/web) -- `packages/shared-tsconfig/` (5 JSON configs, 0 explicit Consumer — via tsconfig extends) -- `packages/shared-vite-config/` (1 TS file, 3 Consumer: arcade/web, manavoxel/web, mana/web) -- `packages/shared-drizzle-config/` (1 TS file, 1 Consumer: mana-media/api) ← **vom Audit übersehen** +**Reality-Check #2 (2026-04-09):** Beim tatsächlichen Implementieren +hat sich der Reality-Check #1 (der nur package.json deps zählte) als +falsch herausgestellt. Echte Lage durch grep über alle .ts/.svelte/.json +Files: -**Aktion:** Niedrig-Wert Cleanup. Konsolidierung in `@mana/build-config` -mit Conditional-Exports möglich aber nicht launch-relevant. Skip oder -Post-Launch. +| Package | Behauptete Consumer (Reality-Check #1) | Echte Code-Consumer | +|---------|-----------|--------| +| `shared-config` | 1 (mana/web) | **0** — nur als stale dep deklariert, kein Import | +| `shared-tsconfig` | 0 (via extends) | **0** — null Files extenden es | +| `shared-vite-config` | 3 | 3 (arcade/manavoxel/mana web vite.config.ts) | +| `shared-drizzle-config` | 1 | 1 (mana-media/api drizzle.config.ts) | + +**Was tatsächlich gemacht wurde:** Statt Merge in ein neues +`@mana/build-config` → 2 von 4 Packages waren reines Dead Code, also +gleicher Move wie #29: + +- ✅ `packages/shared-config/` gelöscht (598 LOC, 4 TS-Files) +- ✅ `packages/shared-tsconfig/` gelöscht (5 JSON-Configs) +- ✅ Stale `"@mana/shared-config"` dep aus `apps/mana/apps/web/package.json` + entfernt +- ❌ `shared-vite-config` + `shared-drizzle-config` bleiben getrennt — + decken **unterschiedliche Toolchains** ab (vite vs drizzle-kit), Merge + wäre kosmetisch + +**Verifikation:** `pnpm install` clean, apps/api type-check 0 Errors, +packages/shared-hono type-check 0 Errors. + +**Ergebnis:** 4 → 2 Config-Packages, ~700 LOC Dead Code zusätzlich +entfernt. Das ursprüngliche "1 build-config Package" Ziel war +unrealistisch und unnötig. ### 22. ❌ Encryption-Test-Parität — FALSE @@ -559,19 +580,28 @@ testen unterschiedliche Schichten. **Aktion:** Item geschlossen. -### 26. ⚠️ Non-root `pnpm-lock.yaml` — 67% FALSE +### 26. ✅ Non-root `pnpm-lock.yaml` — erledigt **Reality-Check (2026-04-09):** - ❌ `apps/memoro/pnpm-lock.yaml` — existiert nicht - ❌ `services/mana-events/pnpm-lock.yaml` — existiert nicht -- ✅ `apps/context/pnpm-lock.yaml` — existiert (242 KB), hat eigene - `importers:` Section, scheint **intentional** als separates Workspace +- ✅ `apps/context/pnpm-lock.yaml` — existierte (242 KB), hatte eigene + `pnpm-workspace.yaml` declarierend `apps/*` und `packages/*`. Aber + apps/context/apps/ enthält nur noch `mobile`, was bereits durch das + root-workspace pattern `apps/*/apps/*` abgedeckt ist. Das nested + Workspace war reine Pre-Consolidation-Legacy. - 🆕 `services/mana-media/packages/client/pnpm-lock.yaml` — vom Audit übersehen, echtes Anomaly -**Aktion:** `mana-media/packages/client/pnpm-lock.yaml` löschen -(verhindert Drift). `apps/context/pnpm-lock.yaml` mit User klären -(intentional oder Legacy?). +**Erledigt im Commit `034a07d16` (chore(workspace): remove redundant +nested lockfiles + workspace.yaml):** +- `apps/context/pnpm-lock.yaml` gelöscht +- `apps/context/pnpm-workspace.yaml` gelöscht +- `services/mana-media/packages/client/pnpm-lock.yaml` gelöscht +- Verifiziert: `pnpm install` clean (16s), `apps/context/apps/mobile` + korrekt im root-workspace registriert (per `pnpm list` confirmed) + +Item geschlossen. ### 27. ⚠️ `@mana/shared-errors` einführen — DUPLICATE @@ -708,12 +738,12 @@ Launch-Blocker). | Phase | Items | Status | |-------|-------|--------| -| 🔴 Phase 1 — Critical | 5 | 5/5 (#1 won't-fix) | -| 🟠 Phase 2 — High | 5 | 5/5 (#6 false, #7+#8 overstated) | -| 🟡 Phase 3 — Medium | 10 | 8/10 (4 false/overstated, #12+#14 real-todo) | -| 🟢 Phase 4 — Low | 7 | 4/7 (#22+#24+#25 false, 3 real-low-prio) | -| ➕ Bonus | 2 | 1/2 (#28 done, #29 offen) | -| **Gesamt** | **29** | **23/29** | +| 🔴 Phase 1 — Critical | 5 | 5/5 ✅ | +| 🟠 Phase 2 — High | 5 | 5/5 ✅ | +| 🟡 Phase 3 — Medium | 10 | 10/10 ✅ | +| 🟢 Phase 4 — Low | 7 | 7/7 ✅ | +| ➕ Bonus | 2 | 2/2 ✅ | +| **Gesamt** | **29** | **29/29** ✅ | **Reality-Check Pattern (final):** Von den 24 untersuchten Items haben **~70% (16) substantielle Fehler** im Original-Audit gehabt. Items diff --git a/packages/shared-config/package.json b/packages/shared-config/package.json deleted file mode 100644 index fa774888d..000000000 --- a/packages/shared-config/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@mana/shared-config", - "version": "1.0.0", - "private": true, - "type": "module", - "main": "./src/index.ts", - "types": "./src/index.ts", - "exports": { - ".": "./src/index.ts", - "./env": "./src/env.ts", - "./api": "./src/api.ts", - "./features": "./src/features.ts" - }, - "scripts": { - "type-check": "tsc --noEmit", - "lint": "eslint ." - }, - "dependencies": { - "zod": "^3.24.0" - }, - "devDependencies": { - "@types/node": "^24.10.1", - "typescript": "^5.7.3" - } -} diff --git a/packages/shared-config/src/api.ts b/packages/shared-config/src/api.ts deleted file mode 100644 index 7cbb32b4d..000000000 --- a/packages/shared-config/src/api.ts +++ /dev/null @@ -1,207 +0,0 @@ -/** - * API endpoint construction utilities - */ - -/** - * API configuration - */ -export interface ApiConfig { - /** Base URL for the API */ - baseUrl: string; - /** API version prefix (e.g., 'v1') */ - version?: string; - /** Default timeout in milliseconds */ - timeout?: number; - /** Default headers */ - headers?: Record; -} - -/** - * Create API endpoint URL builder - */ -export function createApiBuilder(config: ApiConfig) { - const { baseUrl, version } = config; - - // Remove trailing slash from base URL - const base = baseUrl.replace(/\/$/, ''); - - // Build base path with optional version - const basePath = version ? `${base}/${version}` : base; - - return { - /** - * Build endpoint URL from path segments - */ - endpoint(...segments: (string | number)[]): string { - const path = segments - .map(String) - .map((s) => s.replace(/^\/+|\/+$/g, '')) // Remove leading/trailing slashes - .filter(Boolean) - .join('/'); - - return `${basePath}/${path}`; - }, - - /** - * Build endpoint URL with query parameters - */ - endpointWithQuery( - path: string | string[], - params?: Record - ): string { - const segments = Array.isArray(path) ? path : [path]; - const url = this.endpoint(...segments); - - if (!params) { - return url; - } - - const searchParams = new URLSearchParams(); - for (const [key, value] of Object.entries(params)) { - if (value !== undefined) { - searchParams.append(key, String(value)); - } - } - - const queryString = searchParams.toString(); - return queryString ? `${url}?${queryString}` : url; - }, - - /** - * Get the base URL - */ - getBaseUrl(): string { - return basePath; - }, - - /** - * Get the config - */ - getConfig(): ApiConfig { - return config; - }, - }; -} - -/** - * Build URL with query parameters - */ -export function buildUrl( - baseUrl: string, - path: string, - params?: Record -): string { - // Ensure single slash between base and path - const base = baseUrl.replace(/\/$/, ''); - const cleanPath = path.replace(/^\//, ''); - const url = `${base}/${cleanPath}`; - - if (!params) { - return url; - } - - const searchParams = new URLSearchParams(); - for (const [key, value] of Object.entries(params)) { - if (value !== undefined) { - searchParams.append(key, String(value)); - } - } - - const queryString = searchParams.toString(); - return queryString ? `${url}?${queryString}` : url; -} - -/** - * Parse URL and extract components - */ -export function parseUrl(url: string): { - protocol: string; - host: string; - port: string; - pathname: string; - search: string; - params: Record; -} { - const urlObj = new URL(url); - - const params: Record = {}; - urlObj.searchParams.forEach((value, key) => { - params[key] = value; - }); - - return { - protocol: urlObj.protocol.replace(':', ''), - host: urlObj.hostname, - port: urlObj.port, - pathname: urlObj.pathname, - search: urlObj.search, - params, - }; -} - -/** - * Join URL path segments - */ -export function joinPath(...segments: string[]): string { - return segments - .map((s) => s.replace(/^\/+|\/+$/g, '')) - .filter(Boolean) - .join('/'); -} - -/** - * Common HTTP methods - */ -export const HTTP_METHODS = { - GET: 'GET', - POST: 'POST', - PUT: 'PUT', - PATCH: 'PATCH', - DELETE: 'DELETE', - HEAD: 'HEAD', - OPTIONS: 'OPTIONS', -} as const; - -export type HttpMethod = (typeof HTTP_METHODS)[keyof typeof HTTP_METHODS]; - -/** - * Common HTTP status codes - */ -export const HTTP_STATUS = { - OK: 200, - CREATED: 201, - NO_CONTENT: 204, - BAD_REQUEST: 400, - UNAUTHORIZED: 401, - FORBIDDEN: 403, - NOT_FOUND: 404, - CONFLICT: 409, - UNPROCESSABLE_ENTITY: 422, - TOO_MANY_REQUESTS: 429, - INTERNAL_SERVER_ERROR: 500, - BAD_GATEWAY: 502, - SERVICE_UNAVAILABLE: 503, -} as const; - -export type HttpStatus = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS]; - -/** - * Check if status code is successful (2xx) - */ -export function isSuccessStatus(status: number): boolean { - return status >= 200 && status < 300; -} - -/** - * Check if status code is client error (4xx) - */ -export function isClientError(status: number): boolean { - return status >= 400 && status < 500; -} - -/** - * Check if status code is server error (5xx) - */ -export function isServerError(status: number): boolean { - return status >= 500 && status < 600; -} diff --git a/packages/shared-config/src/env.ts b/packages/shared-config/src/env.ts deleted file mode 100644 index c1148718f..000000000 --- a/packages/shared-config/src/env.ts +++ /dev/null @@ -1,170 +0,0 @@ -/** - * Environment variable validation utilities - */ - -import { z } from 'zod'; - -/** - * Common environment variable schemas - */ -export const envSchemas = { - /** URL schema */ - url: z.string().url(), - - /** Non-empty string schema */ - nonEmpty: z.string().min(1), - - /** Optional string schema */ - optional: z.string().optional(), - - /** Port number schema */ - port: z.coerce.number().int().min(1).max(65535), - - /** Boolean schema (accepts various formats) */ - boolean: z.preprocess((val) => { - if (typeof val === 'boolean') return val; - if (typeof val === 'string') { - return ['true', '1', 'yes', 'on'].includes(val.toLowerCase()); - } - return false; - }, z.boolean()), - - /** Number schema */ - number: z.coerce.number(), - - /** Positive integer schema */ - positiveInt: z.coerce.number().int().positive(), - - /** Email schema */ - email: z.string().email(), - - /** Node environment schema */ - nodeEnv: z.enum(['development', 'production', 'test']).default('development'), -}; - -/** - * Common Supabase environment schema - */ -export const supabaseEnvSchema = z.object({ - SUPABASE_URL: envSchemas.url, - SUPABASE_ANON_KEY: envSchemas.nonEmpty, - SUPABASE_SERVICE_ROLE_KEY: envSchemas.nonEmpty.optional(), -}); - -/** - * Common app environment schema - */ -export const appEnvSchema = z.object({ - NODE_ENV: envSchemas.nodeEnv, - PORT: envSchemas.port.default(3000), -}); - -/** - * Create an environment config from schema - */ -export function createEnvConfig( - schema: T, - env: NodeJS.ProcessEnv = process.env -): z.infer { - const result = schema.safeParse(env); - - if (!result.success) { - const errors = result.error.errors - .map((err) => ` ${err.path.join('.')}: ${err.message}`) - .join('\n'); - - throw new Error(`Environment validation failed:\n${errors}`); - } - - return result.data; -} - -/** - * Validate environment variables with custom schema - */ -export function validateEnv( - schema: z.ZodObject, - env: NodeJS.ProcessEnv = process.env -): z.infer> { - return createEnvConfig(schema, env); -} - -/** - * Get required environment variable with type safety - */ -export function getRequiredEnv(key: string, env: NodeJS.ProcessEnv = process.env): string { - const value = env[key]; - - if (value === undefined || value === '') { - throw new Error(`Required environment variable "${key}" is not set`); - } - - return value; -} - -/** - * Get optional environment variable with default - */ -export function getEnv( - key: string, - defaultValue: string, - env: NodeJS.ProcessEnv = process.env -): string { - return env[key] ?? defaultValue; -} - -/** - * Get boolean environment variable - */ -export function getBoolEnv( - key: string, - defaultValue = false, - env: NodeJS.ProcessEnv = process.env -): boolean { - const value = env[key]; - - if (value === undefined) { - return defaultValue; - } - - return ['true', '1', 'yes', 'on'].includes(value.toLowerCase()); -} - -/** - * Get number environment variable - */ -export function getNumEnv( - key: string, - defaultValue: number, - env: NodeJS.ProcessEnv = process.env -): number { - const value = env[key]; - - if (value === undefined) { - return defaultValue; - } - - const parsed = Number(value); - return isNaN(parsed) ? defaultValue : parsed; -} - -/** - * Check if running in development - */ -export function isDevelopment(env: NodeJS.ProcessEnv = process.env): boolean { - return env.NODE_ENV === 'development'; -} - -/** - * Check if running in production - */ -export function isProduction(env: NodeJS.ProcessEnv = process.env): boolean { - return env.NODE_ENV === 'production'; -} - -/** - * Check if running in test - */ -export function isTest(env: NodeJS.ProcessEnv = process.env): boolean { - return env.NODE_ENV === 'test'; -} diff --git a/packages/shared-config/src/features.ts b/packages/shared-config/src/features.ts deleted file mode 100644 index 0a0e7ecf3..000000000 --- a/packages/shared-config/src/features.ts +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Feature flag utilities - */ - -/** - * Feature flag configuration - */ -export interface FeatureFlag { - /** Feature key */ - key: string; - /** Default enabled state */ - defaultEnabled: boolean; - /** Description */ - description?: string; - /** Environment variable to override */ - envVar?: string; -} - -/** - * Create a feature flag manager - */ -export function createFeatureFlags>( - flags: T, - env: NodeJS.ProcessEnv = process.env -) { - type FlagKey = keyof T; - - /** - * Check if a feature is enabled - */ - function isEnabled(key: FlagKey): boolean { - const flag = flags[key]; - - if (!flag) { - return false; - } - - // Check environment variable override - if (flag.envVar) { - const envValue = env[flag.envVar]; - if (envValue !== undefined) { - return ['true', '1', 'yes', 'on'].includes(envValue.toLowerCase()); - } - } - - // Check generic feature flag env var - const genericEnvVar = `FEATURE_${String(key).toUpperCase()}`; - const genericValue = env[genericEnvVar]; - if (genericValue !== undefined) { - return ['true', '1', 'yes', 'on'].includes(genericValue.toLowerCase()); - } - - return flag.defaultEnabled; - } - - /** - * Get all enabled features - */ - function getEnabledFeatures(): FlagKey[] { - return (Object.keys(flags) as FlagKey[]).filter(isEnabled); - } - - /** - * Get all disabled features - */ - function getDisabledFeatures(): FlagKey[] { - return (Object.keys(flags) as FlagKey[]).filter((key) => !isEnabled(key)); - } - - /** - * Get feature configuration - */ - function getFlag(key: FlagKey): FeatureFlag | undefined { - return flags[key]; - } - - /** - * Get all flags with their current state - */ - function getAllFlags(): Record { - const result: Record = {}; - for (const key of Object.keys(flags) as FlagKey[]) { - result[String(key)] = isEnabled(key); - } - return result; - } - - return { - isEnabled, - getEnabledFeatures, - getDisabledFeatures, - getFlag, - getAllFlags, - }; -} - -/** - * Simple feature check using environment variable - */ -export function isFeatureEnabled( - featureName: string, - defaultValue = false, - env: NodeJS.ProcessEnv = process.env -): boolean { - const envVar = `FEATURE_${featureName.toUpperCase().replace(/[^A-Z0-9]/g, '_')}`; - const value = env[envVar]; - - if (value === undefined) { - return defaultValue; - } - - return ['true', '1', 'yes', 'on'].includes(value.toLowerCase()); -} - -/** - * App metadata configuration - */ -export interface AppMetadata { - /** App name */ - name: string; - /** App version */ - version: string; - /** App description */ - description?: string; - /** Build number */ - buildNumber?: string; - /** Git commit hash */ - commitHash?: string; - /** Build timestamp */ - buildTime?: string; - /** Environment */ - environment?: string; -} - -/** - * Create app metadata from environment - */ -export function createAppMetadata( - config: { - name: string; - version: string; - description?: string; - }, - env: NodeJS.ProcessEnv = process.env -): AppMetadata { - return { - name: config.name, - version: config.version, - description: config.description, - buildNumber: env.BUILD_NUMBER || env.VITE_BUILD_NUMBER, - commitHash: env.COMMIT_HASH || env.VITE_COMMIT_HASH || env.GIT_COMMIT, - buildTime: env.BUILD_TIME || env.VITE_BUILD_TIME, - environment: env.NODE_ENV || 'development', - }; -} - -/** - * Format version string with build info - */ -export function formatVersion(metadata: AppMetadata): string { - let version = metadata.version; - - if (metadata.buildNumber) { - version += ` (${metadata.buildNumber})`; - } - - if (metadata.commitHash) { - const shortHash = metadata.commitHash.substring(0, 7); - version += ` [${shortHash}]`; - } - - return version; -} diff --git a/packages/shared-config/src/index.ts b/packages/shared-config/src/index.ts deleted file mode 100644 index 2200a7f06..000000000 --- a/packages/shared-config/src/index.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Shared configuration utilities for Mana monorepo - * - * This package provides common configuration utilities including - * environment validation, API endpoint construction, and feature flags. - */ - -// Environment utilities -export { - envSchemas, - supabaseEnvSchema, - appEnvSchema, - createEnvConfig, - validateEnv, - getRequiredEnv, - getEnv, - getBoolEnv, - getNumEnv, - isDevelopment, - isProduction, - isTest, -} from './env'; - -// API utilities -export { - type ApiConfig, - createApiBuilder, - buildUrl, - parseUrl, - joinPath, - HTTP_METHODS, - HTTP_STATUS, - type HttpMethod, - type HttpStatus, - isSuccessStatus, - isClientError, - isServerError, -} from './api'; - -// Feature flag utilities -export { - type FeatureFlag, - createFeatureFlags, - isFeatureEnabled, - type AppMetadata, - createAppMetadata, - formatVersion, -} from './features'; diff --git a/packages/shared-config/tsconfig.json b/packages/shared-config/tsconfig.json deleted file mode 100644 index 783388ce8..000000000 --- a/packages/shared-config/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "module": "ESNext", - "moduleResolution": "bundler", - "lib": ["ES2022", "DOM"], - "types": ["node"], - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "isolatedModules": true, - "verbatimModuleSyntax": true, - "noEmit": true - }, - "include": ["src/**/*"], - "exclude": ["node_modules"] -} diff --git a/packages/shared-tsconfig/astro.json b/packages/shared-tsconfig/astro.json deleted file mode 100644 index ef4b13e27..000000000 --- a/packages/shared-tsconfig/astro.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "astro/tsconfigs/strict", - "compilerOptions": { - "baseUrl": "." - } -} diff --git a/packages/shared-tsconfig/base.json b/packages/shared-tsconfig/base.json deleted file mode 100644 index c83c1c713..000000000 --- a/packages/shared-tsconfig/base.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "compilerOptions": { - "target": "ES2021", - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, - "resolveJsonModule": true, - "sourceMap": true - } -} diff --git a/packages/shared-tsconfig/expo.json b/packages/shared-tsconfig/expo.json deleted file mode 100644 index 783a9a7c3..000000000 --- a/packages/shared-tsconfig/expo.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "expo/tsconfig.base", - "compilerOptions": { - "strict": true, - "jsx": "react-jsx", - "baseUrl": "." - } -} diff --git a/packages/shared-tsconfig/nestjs.json b/packages/shared-tsconfig/nestjs.json deleted file mode 100644 index 5ad4c6ff6..000000000 --- a/packages/shared-tsconfig/nestjs.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "./base.json", - "compilerOptions": { - "module": "commonjs", - "moduleResolution": "node", - "declaration": true, - "removeComments": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "allowSyntheticDefaultImports": true, - "outDir": "./dist", - "baseUrl": "./", - "rootDir": "./src", - "incremental": true, - "strictNullChecks": true, - "noImplicitAny": true, - "strictBindCallApply": true, - "noFallthroughCasesInSwitch": true - }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/shared-tsconfig/package.json b/packages/shared-tsconfig/package.json deleted file mode 100644 index 18fa7be94..000000000 --- a/packages/shared-tsconfig/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@mana/shared-tsconfig", - "version": "1.0.0", - "private": true, - "description": "Shared TypeScript configurations for Mana monorepo", - "exports": { - "./nestjs": "./nestjs.json", - "./sveltekit": "./sveltekit.json", - "./expo": "./expo.json", - "./astro": "./astro.json", - "./base": "./base.json" - }, - "files": ["*.json"] -} diff --git a/packages/shared-tsconfig/sveltekit.json b/packages/shared-tsconfig/sveltekit.json deleted file mode 100644 index e0017a743..000000000 --- a/packages/shared-tsconfig/sveltekit.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "moduleResolution": "bundler" - } -}