full site update
This commit is contained in:
4
node_modules/@astrojs/internal-helpers/dist/fs.js
generated
vendored
4
node_modules/@astrojs/internal-helpers/dist/fs.js
generated
vendored
@@ -26,8 +26,8 @@ async function getFilesFromFolder(dir) {
|
||||
return files;
|
||||
}
|
||||
async function copyFilesToFolder(files, outDir, exclude = []) {
|
||||
const excludeList = exclude.map(fileURLToPath);
|
||||
const fileList = files.map(fileURLToPath).filter((f) => !excludeList.includes(f));
|
||||
const excludeList = exclude.map((url) => fileURLToPath(url));
|
||||
const fileList = files.map((url) => fileURLToPath(url)).filter((f) => !excludeList.includes(f));
|
||||
if (files.length === 0) throw new Error("No files found to copy");
|
||||
let commonAncestor = nodePath.dirname(fileList[0]);
|
||||
for (const file of fileList.slice(1)) {
|
||||
|
Reference in New Issue
Block a user