aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/blueimp/jquery-file-upload/bower-version-update.js
blob: 09ce3927e4b8c8fe37fdaaeb4abf352e7a4c1c1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env node

'use strict';

var path = require('path');
var packageJSON = require(path.join(__dirname, 'package.json'));
var bowerFile = path.join(__dirname, 'bower.json');
var bowerJSON = require('bower-json').parse(
  require(bowerFile),
  {normalize: true}
);
bowerJSON.version = packageJSON.version;
require('fs').writeFileSync(
  bowerFile,
  JSON.stringify(bowerJSON, null, 2) + '\n'
);