Place version in src too

This commit is contained in:
Kevin van Zonneveld 2016-02-17 12:48:46 +01:00
parent f2823681d0
commit b404c87999

View File

@ -7,7 +7,7 @@
"release:minor": "env SEMANTIC=minor npm run release",
"release:patch": "env SEMANTIC=patch npm run release",
"version:current": "node -e 'console.log(require(\"./package.json\").version)'",
"version:replace": "replace 'Version: \\d+\\.\\d+\\.\\d+' \"Version: $(npm run --silent version:current)\" main.sh",
"version:replace": "replace 'Version: \\d+\\.\\d+\\.\\d+' \"Version: $(npm run --silent version:current)\" main.sh src/*.sh",
"release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && npm run version:replace && git commit main.sh -m 'Update version' && git push && git push --tags && npm publish",
"save:fixtures": "cross-env SAVE_FIXTURES=true npm run test",
"test": "test/acceptance.sh"