Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use version information from package.json file #21

Merged
merged 1 commit into from
Jun 23, 2013

Conversation

rlidwka
Copy link
Collaborator

@rlidwka rlidwka commented Jun 23, 2013

There are two version strings in pm2 right now: version of npm package is 0.4.3, and "pm -V" prints out 1.0.3.

I suppose it's unintentional, so I suggest to use version from package.json everywhere.

So we can require package.json and get version information from there. I got this idea from "express" source code:
https://github.com/visionmedia/express/blob/master/bin/express#L10

Too bad that commander module can't just do it automatically. :(

Unitech added a commit that referenced this pull request Jun 23, 2013
use version information from package.json file
@Unitech Unitech merged commit c6b7e96 into Unitech:master Jun 23, 2013
@Unitech
Copy link
Owner

Unitech commented Jun 23, 2013

Grattzzzz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants