chore: remove node script to sync versions in package files

This commit is contained in:
Felix Hamann 2019-06-24 23:04:25 +02:00
parent 117dc8185a
commit db584d5cea
2 changed files with 2 additions and 20 deletions

View File

@ -34,7 +34,7 @@
},
"standard-version": {
"scripts": {
"postbump": "node ./sync-versions.js"
"postbump": "echo add any shell command here..."
},
"skip": {
"tag": true,
@ -64,7 +64,6 @@
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"husky": "^2.4.1",
"jasmine-core": "^3.4.0",
"js-yaml": "^3.13.1",
"karma": "^4.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^2.0.0",
@ -83,8 +82,7 @@
"style-loader": "^0.23.1",
"uglifyjs-webpack-plugin": "^2.1.3",
"webpack": "^4.34.0",
"webpack-cli": "^3.3.4",
"write-yaml-file": "^3.0.1"
"webpack-cli": "^3.3.4"
},
"dependencies": {
"flatpickr": "^4.5.7"

View File

@ -1,16 +0,0 @@
const yaml = require('js-yaml');
const fs = require('fs');
const packageJson = require('./package.json');
const writeYamlFile = require('write-yaml-file')
try {
const packageYaml = yaml.safeLoad(fs.readFileSync('./package.yaml', 'utf8'));
packageYaml.version = packageJson.version;
yaml.safeDump(packageYaml);
console.log(packageJson.version, packageYaml.version);
writeYamlFile('package.yaml', packageYaml).then(() => {
console.log('done');
});
} catch (e) {
console.log(e);
}