Fix scoped package import for custom view

- Changed component reference from 'payload-feature-flags/views' to '@xtr-dev/payload-feature-flags/views'
- This fixes the "Module not found: Can't resolve 'payload-feature-flags/views'" error
- Bumped version to 0.0.4

The importMap.js was trying to import without the @xtr-dev scope prefix.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-12 16:53:46 +02:00
parent 3f894bd530
commit 5b3cac12c3
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@xtr-dev/payload-feature-flags", "name": "@xtr-dev/payload-feature-flags",
"version": "0.0.3", "version": "0.0.4",
"description": "Feature flags plugin for Payload CMS - manage feature toggles, A/B tests, and gradual rollouts", "description": "Feature flags plugin for Payload CMS - manage feature toggles, A/B tests, and gradual rollouts",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",

View File

@@ -203,7 +203,7 @@ export const payloadFeatureFlags =
// Add custom feature flags overview view // Add custom feature flags overview view
config.admin.components.views['feature-flags-overview'] = { config.admin.components.views['feature-flags-overview'] = {
Component: 'payload-feature-flags/views#FeatureFlagsView', Component: '@xtr-dev/payload-feature-flags/views#FeatureFlagsView',
path: '/feature-flags-overview', path: '/feature-flags-overview',
} }