fix(npmextra.json): update to new format

This commit is contained in:
2025-12-13 11:44:03 +00:00
parent 9e6b91b891
commit 5bfe60927e
11 changed files with 1646 additions and 3560 deletions

View File

@@ -145,13 +145,8 @@ export let compileGlobStringObject = async (
// Type safety check for key
if (keyArg && typeof keyArg === 'string' && globStringObjectArg[keyArg]) {
// Get files matching the glob pattern
const fileTreeArray = await plugins.smartfile.fs.listFileTree(cwdArg, keyArg);
// Ensure fileTreeArray contains only strings before transforming
const stringFileTreeArray = Array.isArray(fileTreeArray)
? fileTreeArray.filter((item): item is string => typeof item === 'string')
: [];
// Get files matching the glob pattern using helper function
const stringFileTreeArray = await plugins.listFilesWithGlob(cwdArg, keyArg);
// Transform to absolute paths
const absoluteFilePathArray = plugins.smartpath.transform.toAbsolute(