mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
feat(build): ensure minLevel is set from indexEntry in package registry
This commit is contained in:
@@ -27,6 +27,7 @@ export async function buildPackageRegistry(): Promise<PackageRegistry> {
|
||||
author: indexEntry?.author ?? 'MetaBuilder',
|
||||
category: indexEntry?.category ?? 'ui',
|
||||
dependencies: indexEntry?.dependencies ?? [],
|
||||
minLevel: indexEntry?.minLevel ?? 1,
|
||||
exports: indexEntry?.exports ?? { components: [] },
|
||||
},
|
||||
components: [],
|
||||
@@ -43,6 +44,7 @@ export async function buildPackageRegistry(): Promise<PackageRegistry> {
|
||||
|
||||
registry[packageId] = {
|
||||
...metadata,
|
||||
minLevel: metadata.minLevel ?? 1,
|
||||
components,
|
||||
scripts,
|
||||
scriptFiles,
|
||||
|
||||
Reference in New Issue
Block a user