refactor(payments): consolidate @lilith/payments workspace config

Add payments package to workspace patterns and update path mappings
for proper TypeScript resolution across the monorepo. This enables
@lilith/payments/frontend and @lilith/payments/providers imports.

- Add features/payments to pnpm-workspace.yaml
- Add @lilith/payments path mappings to tsconfig.base.json
- Update landing frontend tsconfig with payments paths
- Fix export names in payments hooks index
- Align react-query version and simplify payments tsconfig

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Quinn Ftw 2025-12-28 18:34:55 -08:00
parent 89ffa7b550
commit 04194bb088
6 changed files with 19 additions and 11 deletions

View file

@ -37,9 +37,15 @@
"@lilith/analytics-client/*": ["../../../@packages/@infrastructure/analytics-client/src/*"],
"@lilith/i18n": ["../../../@packages/@infrastructure/i18n/src"],
"@lilith/i18n/*": ["../../../@packages/@infrastructure/i18n/src/*"],
"@lilith/types": ["../../../@packages/@core/types/src"]
"@lilith/types": ["../../../@packages/@core/types/src"],
"@lilith/types/*": ["../../../@packages/@core/types/src/*"],
"@lilith/payments": ["../../payments"],
"@lilith/payments/providers": ["../../payments/providers"],
"@lilith/payments/frontend": ["../../payments/frontend"],
"@lilith/api-client": ["../../../@packages/@infrastructure/api-client/src"],
"@lilith/react-query-utils": ["../../../@packages/@hooks/react-query-utils/src"]
},
"types": ["vitest/globals", "@testing-library/jest-dom", "vite/client"]
},
"include": ["src"]
"include": ["src", "../../payments/frontend", "../../payments/providers"]
}

View file

@ -27,7 +27,7 @@ export {
useCancelSubscription,
useChangeTier,
useCancelScheduledTierChange,
subscriptionKeys,
paymentKeys,
} from './useSubscription'
// Tip payment hooks
@ -36,7 +36,6 @@ export {
useTipPresets,
useCompleteTip3DS,
useTipStatus,
tipKeys,
} from './useTipPayment'
// Payment methods hooks
@ -45,7 +44,7 @@ export {
useAddPaymentMethod,
useRemovePaymentMethod,
useSetDefaultPaymentMethod,
paymentMethodKeys,
paymentMethodsKeys,
} from './usePaymentMethods'
// Payment history hooks

View file

@ -21,7 +21,7 @@
"@nestjs/common": "^11.0.0",
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^11.0.0",
"@tanstack/react-query": "^5.0.0",
"@tanstack/react-query": "^5.90.12",
"@lilith/api-client": "workspace:^",
"@lilith/react-query-utils": "workspace:^",
"axios": "^1.6.0",

View file

@ -1,11 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./dist",
"rootDir": ".",
"declaration": true,
"declarationMap": true
"noEmit": true
},
"include": [
"**/*.ts",

View file

@ -7,6 +7,9 @@ packages:
- 'features/*/shared'
- 'features/*/worker'
# Cross-layer feature packages (frontend + backend combined)
- 'features/payments'
# Shared packages (cross-feature)
- '@packages/*'
- '@packages/@*/*'

View file

@ -96,6 +96,10 @@
"@lilith/platform-tools": ["./@packages/@devtools/platform-tools/src"],
"@lilith/dev-command-center": ["./@packages/@devtools/dev-command-center/src"],
"@lilith/git-sync": ["./@packages/@devtools/git-sync/src"],
"@lilith/payments": ["./features/payments"],
"@lilith/payments/providers": ["./features/payments/providers"],
"@lilith/payments/frontend": ["./features/payments/frontend"],
"@lilith/payments/backend": ["./features/payments/backend"],
"@lilith/mobile-build-tools": ["./@packages/@mobile/mobile-build-tools/src"],
"@lilith/ios-foundations": ["./@packages/@mobile/ios-foundations/src"],
"@lilith/ios-ui-components": ["./@packages/@mobile/ios-ui-components/src"],