Replace fs-extra.copy
by recursively creating directories and files
#81
Labels
fs-extra.copy
by recursively creating directories and files
#81
Summary
As of Node v20.8.0,
fs.promises.cp
is considered Experimental withStability: 1
. For this reason, we're instead usingfs-extra.copy
. But this dependency adds a lot of extra code to the compiled bundle. Oncefs.promises.cp
stabilizes, let's switch over.fs.cp()
,fs.cpSync()
,fsPromises.cp()
methods nodejs/node#44598Benefit
fs-extra.copy
: 54.1kbfs-extra.copy
: 4.7kbAcceptance criteria
fs.promises.cp
is used instead offs-extra.copy
,npm run compile
,fs-extra
dependency is not included in the compiled bundleThe text was updated successfully, but these errors were encountered: