Skip to content

Commit 37b0271

Browse files
committed
[cdt-177] - issue fixed, for writeFileSync() method
1 parent 8a95e0b commit 37b0271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class Utilities {
4646
else
4747
Logger.warn(thisRef, `File already exists: ${chalk.green(filePath)}, ${chalk.yellow('overriding content')}`) // this will output error and exit command
4848

49-
fs.writeFileSync(filePath, string)
49+
fs.writeFileSync(filePath, string.toString())
5050

5151
if (string !== '') // this condition comes for truncating
5252
Logger.success(thisRef, `output written to file: ${chalk.green(filePath)}`) // this will output error and exit command

0 commit comments

Comments
 (0)