Skip to content

Commit

Permalink
Fix different versions of fs-extra and fix usage of fs.copy()
Browse files Browse the repository at this point in the history
  • Loading branch information
Roma Koval committed May 21, 2024
1 parent 68b45a9 commit 684fbec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/archive/cli-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"commander": "10.0.0",
"dotenv": "16.0.3",
"fake-indexeddb": "^4.0.1",
"fs-extra": "11.1.0"
"fs-extra": "11.2.0"
},
"devDependencies": {
"@types/fs-extra": "9.0.13",
"@types/fs-extra": "11.0.4",
"@types/rimraf": "4.0.5",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/copy-config/src/CopyConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export class CopyConfig {

// Info: "fs.copy" creates all sub-folders which are needed along the way:
// see https://github.com/jprichardson/node-fs-extra/blob/7.0.1/lib/copy/copy.js#L43
await fs.copy(source, destination, {filter, overwrite: true, recursive: true});
// by default, fs.copy() copies folders recursively
await fs.copy(source, destination, {filter, overwrite: true});

return [destination];
}
Expand Down

0 comments on commit 684fbec

Please sign in to comment.