Skip to content

Commit ea6faee

Browse files
authored
fix(framework): make "yarn start:website" script work with both node 20 and 24 (#11889)
1 parent 1c38b60 commit ea6faee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/website/build-scripts/local-cdn.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ const files = await readdir("local-cdn", {recursive: true, withFileTypes: true})
3131
const filesToDelete = files.filter(f => {
3232
return f.isFile() && !f.name.endsWith(".js") && !f.name.endsWith(".svg") && !f.name.endsWith(".d.ts") && !f.name.endsWith("package.json")
3333
});
34-
filesToDelete.map(f => rm(path.join(f.path, f.name)));
34+
filesToDelete.map(f => rm(path.join(f.path ?? f.parentPath, f.name)));

0 commit comments

Comments
 (0)