refactor: reorganize package exports under namespaced paths
- Prefix feature exports with `features/` (auth, admin, provider) - Prefix shared exports with `shared/` (components, icons, lib, config, logger, rate-limit) - Add new explicit exports for `shared/logger`, `shared/config`, and `shared/rate-limit` - Update internal imports to use package self-referencing (`@zen/core/shared/*`) instead of relative paths
This commit is contained in:
+27
-18
@@ -49,36 +49,39 @@
|
||||
".": {
|
||||
"import": "./dist/index.js"
|
||||
},
|
||||
"./auth": {
|
||||
"./features/auth": {
|
||||
"import": "./dist/features/auth/index.js"
|
||||
},
|
||||
"./auth/actions": {
|
||||
"./features/auth/actions": {
|
||||
"import": "./dist/features/auth/actions.js"
|
||||
},
|
||||
"./auth/pages": {
|
||||
"./features/auth/pages": {
|
||||
"import": "./dist/features/auth/pages.js"
|
||||
},
|
||||
"./auth/page": {
|
||||
"./features/auth/page": {
|
||||
"import": "./dist/features/auth/page.js"
|
||||
},
|
||||
"./auth/components": {
|
||||
"./features/auth/components": {
|
||||
"import": "./dist/features/auth/components/index.js"
|
||||
},
|
||||
"./admin": {
|
||||
"./features/admin": {
|
||||
"import": "./dist/features/admin/index.js"
|
||||
},
|
||||
"./admin/actions": {
|
||||
"./features/admin/actions": {
|
||||
"import": "./dist/features/admin/actions.js"
|
||||
},
|
||||
"./admin/navigation": {
|
||||
"./features/admin/navigation": {
|
||||
"import": "./dist/features/admin/navigation.server.js"
|
||||
},
|
||||
"./admin/pages": {
|
||||
"./features/admin/pages": {
|
||||
"import": "./dist/features/admin/pages.js"
|
||||
},
|
||||
"./admin/page": {
|
||||
"./features/admin/page": {
|
||||
"import": "./dist/features/admin/page.js"
|
||||
},
|
||||
"./features/provider": {
|
||||
"import": "./dist/features/provider/index.js"
|
||||
},
|
||||
"./api": {
|
||||
"import": "./dist/core/api/index.js"
|
||||
},
|
||||
@@ -112,18 +115,24 @@
|
||||
"./toast": {
|
||||
"import": "./dist/core/toast/index.js"
|
||||
},
|
||||
"./provider": {
|
||||
"import": "./dist/features/provider/index.js"
|
||||
},
|
||||
"./lib/metadata": {
|
||||
"import": "./dist/shared/lib/metadata/index.js"
|
||||
},
|
||||
"./components": {
|
||||
"./shared/components": {
|
||||
"import": "./dist/shared/components/index.js"
|
||||
},
|
||||
"./icons": {
|
||||
"./shared/icons": {
|
||||
"import": "./dist/shared/Icons.js"
|
||||
},
|
||||
"./shared/lib/metadata": {
|
||||
"import": "./dist/shared/lib/metadata/index.js"
|
||||
},
|
||||
"./shared/logger": {
|
||||
"import": "./dist/shared/lib/logger.js"
|
||||
},
|
||||
"./shared/config": {
|
||||
"import": "./dist/shared/lib/appConfig.js"
|
||||
},
|
||||
"./shared/rate-limit": {
|
||||
"import": "./dist/shared/lib/rateLimit.js"
|
||||
},
|
||||
"./styles/zen.css": {
|
||||
"default": "./dist/shared/styles/zen.css"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user