aboutsummaryrefslogtreecommitdiffstats
path: root/update-core-version.js
diff options
context:
space:
mode:
authorArtur <artur@vaadin.com>2018-03-08 23:17:03 +0200
committerGitHub <noreply@github.com>2018-03-08 23:17:03 +0200
commit176ef059811ca4cbf3a7e3120ddce21363a72561 (patch)
treec2d36ddc825eb226d947d23b2a339c067b6db31a /update-core-version.js
parenteb45a14c4695504787c27ab4b4283132c18b832a (diff)
downloadvaadin-176ef059811ca4cbf3a7e3120ddce21363a72561.tar.gz
vaadin-176ef059811ca4cbf3a7e3120ddce21363a72561.zip
Update core dependency when updating version (#19)
Diffstat (limited to 'update-core-version.js')
-rw-r--r--update-core-version.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/update-core-version.js b/update-core-version.js
new file mode 100644
index 0000000..a284e4e
--- /dev/null
+++ b/update-core-version.js
@@ -0,0 +1,8 @@
+var fs = require('fs');
+const fileName = './bower.json';
+var bowerjson = require(fileName);
+
+const version = require('./package.json').version;
+bowerjson.dependencies["vaadin-core"] = version;
+
+fs.writeFileSync(fileName, JSON.stringify(bowerjson, null, 2));