We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb05eb4 commit 9233731Copy full SHA for 9233731
1 file changed
lib/ionic/bower.js
@@ -35,10 +35,7 @@ exports.IonicBower = {
35
saveData: function(bowerData) {
36
try {
37
var bowerFilePath = path.resolve('bower.json');
38
-
39
- var file = fs.createWriteStream(bowerFilePath);
40
- file.write( JSON.stringify(bowerData, null, 2) );
41
- file.close();
+ fs.writeFileSync( bowerFilePath, JSON.stringify(bowerData, null, 2) );
42
} catch(e) {
43
console.log( ('Error saving ' + bowerFilePath + ': ' + e).error.bold );
44
}
0 commit comments