BlueWallet/up-build-number.js

7 lines
321 B
JavaScript
Raw Normal View History

2018-05-06 19:12:14 +02:00
let fs = require('fs');
var appjson = require('./app.json');
appjson.expo.ios.buildNumber++;
2018-05-12 22:27:34 +02:00
appjson.expo.ios.buildNumber = appjson.expo.ios.buildNumber + ''; // casting to string
2018-05-20 12:05:50 +02:00
console.log(appjson.expo.version, '(', appjson.expo.ios.buildNumber, ')');
2018-05-06 19:12:14 +02:00
fs.writeFileSync('./app.json', JSON.stringify(appjson, null, 2));