Created
November 20, 2016 16:00
-
-
Save dgmike/133f8cb8cb12fc3b0164bb4baeea6025 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
package = JSON.parse(File.read 'package.json') | |
version = `stepup version --next-release`.strip | |
package['version'] = version | |
puts JSON.generate package, indent: " ", space: " ", object_nl: "\n", array_nl: "\n", max_nesting: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment