 unless jsonPath
   console.log 'justpub only work on nodejs modules (where there is a package.json file)'
   process.exit(1)
+
+npmwd = path.dirname 'package.json'
 
 isGit = (locateFileSystemEntity dir, '.git') isnt false
 

json.version = newVersion
fs.writeFileSync jsonPath, JSON.stringify json, undefined, 4






commander = require 'commander'
fs = require 'fs'
path = require 'path'
exec = require('child_process').exec

commander.version '0.0.1'
commander.option '-v, --verbose', 'output additional information'
