Skip to content

Commit

Permalink
fixed express(1) --version
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 18, 2011
1 parent a7520ad commit 02cdf0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/express
Expand Up @@ -12,7 +12,7 @@ var fs = require('fs')
* Framework version.
*/

var version = '2.5.0';
var version = '2.5.1';

/**
* Add session support.
Expand Down

4 comments on commit 02cdf0c

@TooTallNate
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var version = JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version;

:)

@tj
Copy link
Member Author

@tj tj commented on 02cdf0c Nov 23, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nooooosss that's uglay haha

@tj
Copy link
Member Author

@tj tj commented on 02cdf0c Nov 23, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that just reminded me that we can just require() json now in 0.6.x too whoop!

@TooTallNate
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yah, true that:

var version = require('../package.json').version;

Muuchhhh better! :)

Please sign in to comment.