Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Hubs Cloud admin panel deploy by replacing ncp with fs-extra copy #5365

Merged
merged 1 commit into from
May 9, 2022

Conversation

brianpeiris
Copy link
Contributor

As reported in #4208, the ncp dependency we used to copy admin build files did not actually wait for the copy operations to complete, which caused the admin panel to break after the deploy. ncp has also been unmaintained for a while. This PR replaces ncp with fs-extra which is relatively lightweight, maintained, battle-tested, and has a copy function that is a drop-in replacement for ncp.

@FarhadG
Copy link

FarhadG commented Apr 17, 2022

Confirmed this resolved my issue and removed the hack workaround on my end. Thank you, @brianpeiris

@brianpeiris
Copy link
Contributor Author

Thanks for verifying it!

@keianhzo keianhzo self-assigned this May 6, 2022
@keianhzo keianhzo self-requested a review May 6, 2022 13:31
Copy link
Contributor

@keianhzo keianhzo left a comment

Choose a reason for hiding this comment

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

LGTM

Not critical but we still have ncp along with a number of hubs client dependencies locked in the admin package-lock.json that are outdated. We could probably work on aligning versions on both modules. I'll open an issue for that.

@brianpeiris brianpeiris merged commit 239ff6a into master May 9, 2022
@brianpeiris brianpeiris deleted the fix-admin-build-copy branch May 9, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants