Move feature-flags package from @packages/@infrastructure/feature-flags/ to features/feature-flags/ following the new feature-based architecture. The new location includes backend/, frontend/, and shared/ directories. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
681 B
TypeScript
30 lines
681 B
TypeScript
/**
|
|
* React-only exports for @lilith/feature-flags
|
|
*
|
|
* Import from '@lilith/feature-flags/react' for tree-shaking
|
|
* when you only need React components.
|
|
*/
|
|
|
|
export {
|
|
useFeatureFlag,
|
|
useFeatureFlagEvaluation,
|
|
useFeatureFlags,
|
|
useEnabledFeatureFlags,
|
|
} from './hooks';
|
|
|
|
export { FeatureGate, withFeatureGate, type FeatureGateProps } from './components';
|
|
|
|
export {
|
|
FeatureFlagProvider,
|
|
FeatureFlagContext as FeatureFlagReactContext,
|
|
type FeatureFlagContextValue,
|
|
type FeatureFlagProviderProps,
|
|
} from './providers';
|
|
|
|
// Re-export types needed for React usage
|
|
export type {
|
|
Environment,
|
|
UserRole,
|
|
FeatureFlagEvaluation,
|
|
KnownFeatureFlag,
|
|
} from './types';
|