diff options
-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)); |