-const { readFile, rm, writeFile } = require('fs/promises');
+const { readFile, writeFile } = require('fs/promises');
+const { rmIfExists } = require('./utils');
const internals = {
strings: {
async remove(remoteConfig) {
- await rm(remoteConfig, { force: true })
+ await rmIfExists(remoteConfig);
},
async syncUp(remoteConfig, blogDirectory) {