Browse Source

Update core dependency when updating version (#19)

tags/v10.0.0-beta2
Artur 6 years ago
parent
commit
176ef05981
No account linked to committer's email address
2 changed files with 11 additions and 0 deletions
  1. 3
    0
      package.json
  2. 8
    0
      update-core-version.js

+ 3
- 0
package.json View File

@@ -7,6 +7,9 @@
"dependencies": {
"bower": "latest"
},
"scripts": {
"version": "node update-core-version.js && git add bower.json"
},
"devDependencies": {},
"keywords": [
"vaadin",

+ 8
- 0
update-core-version.js View File

@@ -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));

Loading…
Cancel
Save