diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2022-12-09 22:18:26 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2022-12-09 22:18:26 +0100 |
| commit | d3f282a164e44f54678cdb45aad7a09c8a92b89e (patch) | |
| tree | 215aa2018e3e931971fee2210d18d4a48872d7d6 /lib/remote.js | |
| parent | f91c2b4feb85933bc190712b45788d2f24fe851d (diff) | |
Remove force rms and dependency on ncp
Diffstat (limited to 'lib/remote.js')
| -rw-r--r-- | lib/remote.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/remote.js b/lib/remote.js index 8b29c4e..373958f 100644 --- a/lib/remote.js +++ b/lib/remote.js @@ -1,4 +1,5 @@ -const { readFile, rm, writeFile } = require('fs/promises'); +const { readFile, writeFile } = require('fs/promises'); +const { rmIfExists } = require('./utils'); const internals = { strings: { @@ -17,7 +18,7 @@ module.exports = { async remove(remoteConfig) { - await rm(remoteConfig, { force: true }) + await rmIfExists(remoteConfig); }, async syncUp(remoteConfig, blogDirectory) { |