mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
- Add `@sofa/tsconfig` package with a shared `base.json` (target, lib, strict, moduleResolution, etc.) and migrate all packages/apps to `"extends": "@sofa/tsconfig/base.json"` to eliminate duplicated compiler options - Move `display-status.ts` (and its `DisplayStatus` type + `getDisplayStatus` fn) from `@sofa/api` to `@sofa/core`; remove the `./display-status` export from `@sofa/api` and update all import sites in `discovery.ts` and `tracking.ts` - Add `packages/core/test/display-status.test.ts`: 15 tests covering `ONGOING_TMDB_STATUSES` and all `getDisplayStatus` branches (movie, TV watchlist/in_progress/caught_up/completed, edge cases) - Add `packages/i18n/vitest.config.ts` and two new test files: `date-buckets.test.ts` and `format.test.ts` covering date bucketing and locale formatting utilities
60 lines
1.8 KiB
JSON
60 lines
1.8 KiB
JSON
{
|
|
"name": "@sofa/core",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
"./availability": "./src/availability.ts",
|
|
"./backup": "./src/backup.ts",
|
|
"./cache": "./src/cache.ts",
|
|
"./colors": "./src/colors.ts",
|
|
"./credits": "./src/credits.ts",
|
|
"./cron": "./src/cron.ts",
|
|
"./discovery": "./src/discovery.ts",
|
|
"./display-status": "./src/display-status.ts",
|
|
"./export": "./src/export.ts",
|
|
"./image-cache": "./src/image-cache.ts",
|
|
"./imports": "./src/imports/index.ts",
|
|
"./imports/parsers": "./src/imports/parsers.ts",
|
|
"./integrations": "./src/integrations.ts",
|
|
"./lists": "./src/lists.ts",
|
|
"./metadata": "./src/metadata.ts",
|
|
"./person": "./src/person.ts",
|
|
"./providers": "./src/providers.ts",
|
|
"./settings": "./src/settings.ts",
|
|
"./system-health": "./src/system-health.ts",
|
|
"./telemetry": "./src/telemetry.ts",
|
|
"./thumbhash": "./src/thumbhash.ts",
|
|
"./tracking": "./src/tracking.ts",
|
|
"./update-check": "./src/update-check.ts",
|
|
"./webhooks": "./src/webhooks.ts"
|
|
},
|
|
"scripts": {
|
|
"lint": "oxlint",
|
|
"format": "oxfmt --config ../../.oxfmtrc.json",
|
|
"format:check": "oxfmt --check --config ../../.oxfmtrc.json",
|
|
"check-types": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@orpc/server": "catalog:",
|
|
"@sofa/api": "workspace:*",
|
|
"@sofa/config": "workspace:*",
|
|
"@sofa/db": "workspace:*",
|
|
"@sofa/logger": "workspace:*",
|
|
"@sofa/tmdb": "workspace:*",
|
|
"adm-zip": "0.5.16",
|
|
"node-vibrant": "4.0.4",
|
|
"sharp": "0.34.5",
|
|
"thumbhash": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@sofa/tsconfig": "workspace:*",
|
|
"@types/adm-zip": "0.5.8",
|
|
"@types/bun": "catalog:",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:"
|
|
}
|
|
}
|