diff options
author | Artur <artur@vaadin.com> | 2018-03-08 23:17:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-08 23:17:03 +0200 |
commit | 176ef059811ca4cbf3a7e3120ddce21363a72561 (patch) | |
tree | c2d36ddc825eb226d947d23b2a339c067b6db31a | |
parent | eb45a14c4695504787c27ab4b4283132c18b832a (diff) | |
download | vaadin-176ef059811ca4cbf3a7e3120ddce21363a72561.tar.gz vaadin-176ef059811ca4cbf3a7e3120ddce21363a72561.zip |
Update core dependency when updating version (#19)
-rw-r--r-- | package.json | 3 | ||||
-rw-r--r-- | update-core-version.js | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/package.json b/package.json index 2347663..2b76d85 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ "dependencies": { "bower": "latest" }, + "scripts": { + "version": "node update-core-version.js && git add bower.json" + }, "devDependencies": {}, "keywords": [ "vaadin", 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)); |