From 79658cbe3fbae928971b8f20a86f8c5d4cc817a7 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 15 Jan 2022 18:27:50 +0300 Subject: [PATCH] Update file.js --- scripts/core/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/file.js b/scripts/core/file.js index 2894d4a3..ecb4a040 100644 --- a/scripts/core/file.js +++ b/scripts/core/file.js @@ -40,7 +40,7 @@ file.create = function (filepath, data = '') { return file .createDir(dir) - .then(() => fs.writeFile(filepath, data, { encoding: 'utf8', flag: 'w' })) + .then(() => file.write(filepath, data)) .catch(console.error) }