diff --git a/node_modules/@theorchard/frontend-cli-core/dist/cjs/src/utils/asyncFs.js b/node_modules/@theorchard/frontend-cli-core/dist/cjs/src/utils/asyncFs.js index 2995788..962e8bd 100644 --- a/node_modules/@theorchard/frontend-cli-core/dist/cjs/src/utils/asyncFs.js +++ b/node_modules/@theorchard/frontend-cli-core/dist/cjs/src/utils/asyncFs.js @@ -16,7 +16,11 @@ const readDirAsync = (0, util_1.promisify)(fs_1.default.readdir); const copyFileAsync = (0, util_1.promisify)(fs_1.default.copyFile); const rmAsync = (0, util_1.promisify)(fs_1.default.rm); const rmdirAsync = (0, util_1.promisify)(fs_1.default.rmdir); -const globAsync = (0, util_1.promisify)(glob_1.default); +// glob v10+ removed the default function export; support both old and new API +const _globFn = typeof glob_1.default === 'function' ? glob_1.default : null; +const globAsync = _globFn + ? (0, util_1.promisify)(_globFn) + : (pattern, opts) => Promise.resolve(require("glob").globSync(pattern, opts)); const deleteFileAsync = (0, util_1.promisify)(fs_1.default.unlink); const deleteFileIfExists = async (filePath) => { if (!(await existsAsync(filePath)))