We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a95e0b commit 37b0271Copy full SHA for 37b0271
src/utilities/utilities.ts
@@ -46,7 +46,7 @@ export default class Utilities {
46
else
47
Logger.warn(thisRef, `File already exists: ${chalk.green(filePath)}, ${chalk.yellow('overriding content')}`) // this will output error and exit command
48
49
- fs.writeFileSync(filePath, string)
+ fs.writeFileSync(filePath, string.toString())
50
51
if (string !== '') // this condition comes for truncating
52
Logger.success(thisRef, `output written to file: ${chalk.green(filePath)}`) // this will output error and exit command
0 commit comments