fix(npmextra.json): update to new format
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user