Add missing change

This commit is contained in:
Dave Bartolomeo
2024-01-12 12:44:16 -05:00
parent 61933c34d5
commit 6d308f8688

View File

@@ -8,6 +8,7 @@ export interface QueryPackFS {
fileExists: (name: string) => boolean; fileExists: (name: string) => boolean;
fileContents: (name: string) => Buffer; fileContents: (name: string) => Buffer;
directoryContents: (name: string) => string[]; directoryContents: (name: string) => string[];
allFiles: () => string[];
} }
export async function readBundledPack( export async function readBundledPack(
@@ -82,5 +83,8 @@ export async function readBundledPack(
) )
.map((dir) => dir.substring(name.length + 1)); .map((dir) => dir.substring(name.length + 1));
}, },
allFiles: (): string[] => {
return Object.keys(files);
},
}; };
} }