ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.29k stars 1.01k forks source link

refactor(cli): remove usage of @ionic/utils-fs #7762

Closed jcesarmobile closed 5 days ago

jcesarmobile commented 1 week ago

@ionic/utils-fs is mostly a wrapper around fs-extra and uses a very old version of it.

Replace usages of the @ionic/utils-fs functions that were just wrappers and use the fs-extra original ones.

readdirp was not a wrapper but a @ionic/utils-fs function, so I've created a new simplified readdirp function in utils/fs that does (almost) the same but using node's readdir internally which from node 20 accepts the recursive option.