theme-bump
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -68,2 +68,3 @@ const increment = require('semver').inc; | ||
themePaths.forEach((themePath) => { | ||
const res = {}; | ||
const info = getThemeInfo(themePath); | ||
@@ -76,2 +77,4 @@ const path = resolve(themePath, themeInfoName); | ||
info.version = info.version.replace(/-/g, '.'); | ||
res.old = info.version; | ||
res.title = info.title; | ||
@@ -82,4 +85,5 @@ const bumped = (!~version.indexOf('.')) ? increment(info.version, version) : version; | ||
info.version = bumped.replace(/\./g, '-'); | ||
res.new = info.version; | ||
themes[themePath] = info; | ||
themes[themePath] = res; | ||
@@ -86,0 +90,0 @@ writeFileSync(path, JSON.stringify(info, null, 2)); |
{ | ||
"name": "theme-bump", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Bump the version of Zen Garden themes in Creative Exchange", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/mateuszluczak/theme-bump.git", |
5722
105