Skip to content

Commit

Permalink
Fix Admin UI generation to allow files returned from `getAdditionalFi…
Browse files Browse the repository at this point in the history
…les` to overwrite the files generated by Keystone (#5920)

* Fix Admin UI generation to allow files returned from `getAdditionalFiles` to overwrite the files generated by Keystone

* Revert some changes
  • Loading branch information
emmatown committed Jun 17, 2021
1 parent 4e5634b commit 123042b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hot-hotels-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': patch
---

Fixed Admin UI generation to allow files returned from `getAdditionalFiles` to overwrite the files generated by Keystone
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const generateAdminUI = async (
);
await Promise.all(
adminFiles
.filter(x => !uniqueFiles.has(Path.normalize(x.outputPath)))
.filter(x => !uniqueFiles.has(Path.normalize(Path.join(projectAdminPath, x.outputPath))))
.map(file => writeAdminFile(file, projectAdminPath))
);

Expand Down

1 comment on commit 123042b

@vercel
Copy link

@vercel vercel bot commented on 123042b Jun 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.