mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
Introduce a shared database schema library for Drizzle ORM and configure its TypeScript build settings. Move the canonical schema into libs/shared/database/src/lib/schema.ts and expose strong typing and table definitions for playlists, categories, content, recently_viewed and favorites. Add tsconfig.lib.json to set outDir, declaration output and node types for the shared lib. Keep apps/electron-backend compatibility by re-exporting the schema and types from the new shared library (apps/electron-backend now imports the shared definitions rather than duplicating them). These changes centralize the database schema as a single source of truth, prevent duplication, and enable read-only consumers (e.g. agent-backend) to depend on compiled type declarations.
33 lines
1.2 KiB
JSON
33 lines
1.2 KiB
JSON
{
|
|
"compileOnSave": false,
|
|
"compilerOptions": {
|
|
"rootDir": ".",
|
|
"sourceMap": true,
|
|
"declaration": false,
|
|
"moduleResolution": "node",
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"importHelpers": true,
|
|
"target": "es2015",
|
|
"module": "esnext",
|
|
"lib": ["es2020", "dom"],
|
|
"skipLibCheck": true,
|
|
"skipDefaultLibCheck": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@iptvnator/pipes": ["libs/ui/pipes/src/index.ts"],
|
|
"@package": ["./package.json"],
|
|
"components": ["libs/ui/components/src/index.ts"],
|
|
"m3u-state": ["libs/m3u-state/src/index.ts"],
|
|
"m3u-utils": ["libs/shared/m3u-utils/src/index.ts"],
|
|
"services": ["libs/services/src/index.ts"],
|
|
"shared-interfaces": ["libs/shared/interfaces/src/index.ts"],
|
|
"shared-portals": ["libs/ui/shared-portals/src/index.ts"],
|
|
"remote-control": ["libs/ui/remote-control/src/index.ts"],
|
|
"database": ["libs/shared/database/src/index.ts"]
|
|
}
|
|
},
|
|
"exclude": ["node_modules", "tmp"],
|
|
"files": ["global.d.ts"]
|
|
}
|