We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c38b60 commit ea6faeeCopy full SHA for ea6faee
packages/website/build-scripts/local-cdn.mjs
@@ -31,4 +31,4 @@ const files = await readdir("local-cdn", {recursive: true, withFileTypes: true})
31
const filesToDelete = files.filter(f => {
32
return f.isFile() && !f.name.endsWith(".js") && !f.name.endsWith(".svg") && !f.name.endsWith(".d.ts") && !f.name.endsWith("package.json")
33
});
34
-filesToDelete.map(f => rm(path.join(f.path, f.name)));
+filesToDelete.map(f => rm(path.join(f.path ?? f.parentPath, f.name)));
0 commit comments