Skip to content

fix(cli): replace copydir workaround with node cp#1655

Open
KaiPrince wants to merge 1 commit intoProjectEvergreen:masterfrom
KaiPrince:fix/issue-823-replace-workaround-for-directory-copy
Open

fix(cli): replace copydir workaround with node cp#1655
KaiPrince wants to merge 1 commit intoProjectEvergreen:masterfrom
KaiPrince:fix/issue-823-replace-workaround-for-directory-copy

Conversation

@KaiPrince
Copy link
Copy Markdown
Contributor

Better implementation of 7ba828a. Uses node's cp function, which behaves like the OS' cp command. It should benefit from the parallelism used by the host OS. I don't know if this will actually make a performance difference, but it is surely much simpler.

Preservation of behaviour is confirmed by the existing test: https://github.com/ProjectEvergreen/greenwood/blob/master/packages/cli/test/cases/build.default.static-asset-bundling/build.default.static-asset-bundling.spec.js

Related Issue

Issue: #823 , Follow-up to #1558

Documentation

No documentation changes.

Summary of Changes

  1. Replace body of copyDirectory with node fs.cp.
  2. Deleted now unused rreaddir function, and cleaned up imports.

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.

1 participant